-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathmcu_cfg.hjson
203 lines (194 loc) · 6.01 KB
/
mcu_cfg.hjson
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// Copyright 2020 ETH Zurich and University of Bologna.
// Solderpad Hardware License, Version 0.51, see LICENSE for details.
// SPDX-License-Identifier: SHL-0.51
// Derived from Occamy: https://github.com/pulp-platform/snitch/blob/master/hw/system/occamy/src/occamy_cfg.hjson
// Peripherals configuration for core-v-mini-mcu.
{
cpu_type: cv32e20
linker_script: {
stack_size: 0x800
heap_size: 0x800
}
debug: {
address: 0x10000000
length: 0x00100000
}
ao_peripherals: {
address: 0x20000000
length: 0x00100000
soc_ctrl: {
offset: 0x00000000
length: 0x00010000
path: "./hw/ip/soc_ctrl/data/soc_ctrl.hjson"
}
bootrom: {
offset: 0x00010000
length: 0x00010000
}
spi_flash: {
offset: 0x00020000
length: 0x00008000
}
spi_memio: {
offset: 0x00028000
length: 0x00008000
}
dma: {
offset: 0x00030000
length: 0x00010000
ch_length: 0x100
num_channels: 0x1
num_master_ports: 0x1
num_channels_per_master_port: 0x1
path: "./hw/ip/dma/data/dma.hjson"
}
power_manager: {
offset: 0x00040000
length: 0x00010000
path: "./hw/ip/power_manager/data/power_manager.hjson"
}
rv_timer_ao: {
offset: 0x00050000
length: 0x00010000
}
fast_intr_ctrl: {
offset: 0x00060000
length: 0x00010000
path: "./hw/ip/fast_intr_ctrl/data/fast_intr_ctrl.hjson"
}
ext_peripheral: {
offset: 0x00070000
length: 0x00010000
}
pad_control: {
offset: 0x00080000
length: 0x00010000
}
gpio_ao: {
offset: 0x00090000
length: 0x00010000
}
uart: {
offset: 0x000A0000
length: 0x00010000
path: "./hw/vendor/lowrisc_opentitan/hw/ip/uart/data/uart.hjson"
}
}
peripherals: {
address: 0x30000000
length: 0x00100000
rv_plic: {
offset: 0x00000000
length: 0x00010000
is_included: "yes"
path: "./hw/vendor/lowrisc_opentitan/hw/ip/rv_plic/data/rv_plic.hjson"
}
spi_host: {
offset: 0x00010000
length: 0x00010000
is_included: "yes"
path: "./hw/vendor/lowrisc_opentitan_spi_host/data/spi_host.hjson"
}
gpio: {
offset: 0x00020000
length: 0x00010000
is_included: "yes"
path: "./hw/vendor/pulp_platform_gpio/gpio_regs.hjson"
}
i2c: {
offset: 0x00030000
length: 0x00010000
is_included: "yes"
path: "./hw/vendor/lowrisc_opentitan/hw/ip/i2c/data/i2c.hjson"
}
rv_timer: {
offset: 0x00040000
length: 0x00010000
is_included: "yes"
path: "./hw/vendor/lowrisc_opentitan/hw/ip/rv_timer/data/rv_timer.hjson"
}
spi2: {
offset: 0x00050000
length: 0x00010000
is_included: "yes"
}
pdm2pcm: {
offset: 0x00060000
length: 0x00010000
is_included: "no"
path: "./hw/ip/pdm2pcm/data/pdm2pcm.hjson"
}
i2s: {
offset: 0x00070000
length: 0x00010000
is_included: "yes"
path: "./hw/ip/i2s/data/i2s.hjson"
}
}
flash_mem: {
address: 0x40000000
length: 0x01000000
}
ext_slaves: {
address: 0xF0000000
length: 0x01000000
}
interrupts: {
number: 64 // Do not change this number!
list: {
// First one is always zero
null_intr: 0
uart_intr_tx_watermark: 1
uart_intr_rx_watermark: 2
uart_intr_tx_empty: 3
uart_intr_rx_overflow: 4
uart_intr_rx_frame_err: 5
uart_intr_rx_break_err: 6
uart_intr_rx_timeout: 7
uart_intr_rx_parity_err: 8
gpio_intr_8: 9
gpio_intr_9: 10
gpio_intr_10: 11
gpio_intr_11: 12
gpio_intr_12: 13
gpio_intr_13: 14
gpio_intr_14: 15
gpio_intr_15: 16
gpio_intr_16: 17
gpio_intr_17: 18
gpio_intr_18: 19
gpio_intr_19: 20
gpio_intr_20: 21
gpio_intr_21: 22
gpio_intr_22: 23
gpio_intr_23: 24
gpio_intr_24: 25
gpio_intr_25: 26
gpio_intr_26: 27
gpio_intr_27: 28
gpio_intr_28: 29
gpio_intr_29: 30
gpio_intr_30: 31
gpio_intr_31: 32
intr_fmt_watermark: 33
intr_rx_watermark: 34
intr_fmt_overflow: 35
intr_rx_overflow: 36
intr_nak: 37
intr_scl_interference: 38
intr_sda_interference: 39
intr_stretch_timeout: 40
intr_sda_unstable: 41
intr_trans_complete: 42
intr_tx_empty: 43
intr_tx_nonempty: 44
intr_tx_overflow: 45
intr_acq_overflow: 46
intr_ack_stop: 47
intr_host_timeout: 48
spi2_intr_event: 49
i2s_intr_event: 50
dma_window_intr: 51
}
}
}