-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.sv
55 lines (39 loc) · 2.37 KB
/
constants.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* Copyright (c) 2024 Tobias Scheipel, David Beikircher, Florian Riedl
* Embedded Architectures & Systems Group, Graz University of Technology
* SPDX-License-Identifier: MIT
* ---------------------------------------------------------------------
* File: constants.sv
*/
/*verilator lint_off UNUSED*/
package constants;
// --------------------------------------------------------------------------------------------
// | Wishbone Constants |
// --------------------------------------------------------------------------------------------
localparam bit [31:0] MEMORY_START = 32'h0001_0000;
localparam bit [31:0] MEMORY_SIZE = 32'h0000_2000;
localparam bit [31:0] LEDS_START = 32'h0008_0000;
localparam bit [31:0] LEDS_SIZE = 32'h0000_0001;
localparam bit [31:0] BUTTONS_START = 32'h0008_1000;
localparam bit [31:0] BUTTONS_SIZE = 32'h0000_0001;
localparam bit [31:0] SWITCHES_START = 32'h0008_2000;
localparam bit [31:0] SWITCHES_SIZE = 32'h0000_0001;
localparam bit [31:0] SEGMENTS_START = 32'h0008_3000;
localparam bit [31:0] SEGMENTS_SIZE = 32'h0000_0001;
localparam bit [31:0] UART_START = 32'h0008_4000;
localparam bit [31:0] UART_SIZE = 32'h0000_0001;
localparam bit [31:0] TIMER_START = 32'h0008_5000;
localparam bit [31:0] TIMER_SIZE = 32'h0000_0005;
localparam bit [31:0] VGA_START = 32'h0009_0000;
localparam bit [31:0] VGA_SIZE = 32'h0000_9600; // 640 * 480 pixel with 4 bit color depth
localparam bit [31:0] TEST_START = 32'h0012_0000;
localparam bit [31:0] TEST_SIZE = 32'h0000_0005;
// --------------------------------------------------------------------------------------------
// | Address Constants |
// --------------------------------------------------------------------------------------------
localparam bit [31:0] RESET_ADDRESS = MEMORY_START << 2;
// --------------------------------------------------------------------------------------------
// | Instruction Constants |
// --------------------------------------------------------------------------------------------
localparam bit [31:0] NOP = 32'h00000013;
endpackage
/*verilator lint_on UNUSED*/