blob: 85ab557a9de8047ecde2d0f4053d099819637e79 [file] [log] [blame]
Wojciech Mellerc662e912023-12-08 14:39:48 +01001nvic: IRQControllers.NVIC @ sysbus 0xE000E000
2 systickFrequency: 120000000
3 IRQ -> cpu@0
4
5cpu: CPU.CortexM @ sysbus
Nikodem Rabulińskia7e2f4c2024-01-07 22:37:08 +01006 cpuType: "cortex-m4f"
Wojciech Mellerc662e912023-12-08 14:39:48 +01007 nvic: nvic
8
9code_flash: Memory.MappedMemory @ sysbus 0x0
10 size: 0x40000
11
12data_flash: Memory.MappedMemory @ sysbus 0x40100000
13 size: 0x2000
14
15sram: Memory.MappedMemory @ sysbus 0x20000000
16 size: 0x8000
17
Marcin Witkowskid8219732023-12-13 14:40:07 +010018icu: IRQControllers.RenesasRA_ICU @ sysbus 0x40006000
19 nvic: nvic
20
Wojciech Mellerc662e912023-12-08 14:39:48 +010021gpt: Timers.RenesasRA_GPT @ sysbus 0x40078000
22 numberOf32BitChannels: 2
23 numberOf16BitChannels: 6
24 commonRegistersOffset: 0xff0
Nikodem Rabulińskia7e2f4c2024-01-07 22:37:08 +010025 peripheralClockDFrequency: 24000000
Nikodem Rabulińskif548caf2024-01-07 22:37:59 +010026 [0x00-0x07] -> icu@[0x57-0x5E]
27 // GPT0_PC is not connected
28 [0x09-0x10] -> icu@[0x5F-0x66]
29 // GPT1_PC is not connected
30 [0x12-0x19] -> icu@[0x67-0x6E]
31 // GPT2_PC is not connected
32 [0x1B-0x22] -> icu@[0x6F-0x76]
33 // GPT3_PC is not connected
34 [0x24-0x2B] -> icu@[0x77-0x7E]
35 // GPT4_PC is not connected
36 [0x2D-0x34] -> icu@[0x7F-0x86]
37 // GPT5_PC is not connected
38 [0x36-0x3D] -> icu@[0x87-0x8E]
39 // GPT6_PC is not connected
40 [0x3F-0x46] -> icu@[0x8F-0x96]
41 // GPT7_PC is not connected
Wojciech Mellerc662e912023-12-08 14:39:48 +010042
Wojciech Meller5763a5b2023-12-13 17:01:58 +010043agt0: Timers.RenesasRA_AGT @ sysbus 0x40084000
44 lowSpeedOnChipOscillatorFrequency: 32768
45 subClockOscillatorFrequency: 32768
46 peripheralClockBFrequency: 32000000
47 IRQ -> icu@0x01E
48 CompareMatchA -> icu@0x01F
49 CompareMatchB -> icu@0x020
50
51agt1: Timers.RenesasRA_AGT @ sysbus 0x40084100
52 lowSpeedOnChipOscillatorFrequency: 32768
53 subClockOscillatorFrequency: 32768
54 peripheralClockBFrequency: 32000000
55 IRQ -> icu@0x021
56 CompareMatchA -> icu@0x022
57 CompareMatchB -> icu@0x023
Wojciech Mellerc662e912023-12-08 14:39:48 +010058
Michał Szprejdacf6057f2024-01-22 12:44:14 +010059sci0: SCI.RenesasRA6M5_SCI @ sysbus 0x40070000
60 frequency: 50000000
61 enableManchesterMode: false
62 enableFIFO: true
Jakub Jatczak93979ec2024-02-05 13:53:22 +010063 fullModel: false
Michał Szprejdacf6057f2024-01-22 12:44:14 +010064 ReceiveIRQ -> icu@0x98
65 TransmitIRQ -> icu@0x99
66 TransmitEndIRQ -> icu@0x9A
Wojciech Mellerc662e912023-12-08 14:39:48 +010067
Michał Szprejdacf6057f2024-01-22 12:44:14 +010068sci1: SCI.RenesasRA6M5_SCI @ sysbus 0x40070020
69 frequency: 50000000
70 enableManchesterMode: false
71 enableFIFO: true
Jakub Jatczak93979ec2024-02-05 13:53:22 +010072 fullModel: false
Michał Szprejdacf6057f2024-01-22 12:44:14 +010073 ReceiveIRQ -> icu@0x9E
74 TransmitIRQ -> icu@0x9F
75 TransmitEndIRQ -> icu@0xA0
76
77sci2: SCI.RenesasRA6M5_SCI @ sysbus 0x40070040
78 frequency: 50000000
79 enableManchesterMode: false
80 enableFIFO: false
Jakub Jatczak93979ec2024-02-05 13:53:22 +010081 fullModel: false
Michał Szprejdacf6057f2024-01-22 12:44:14 +010082 ReceiveIRQ -> icu@0xA3
83 TransmitIRQ -> icu@0xA4
84 TransmitEndIRQ -> icu@0xA5
85
86sci9: SCI.RenesasRA6M5_SCI @ sysbus 0x40070120
87 frequency: 50000000
88 enableManchesterMode: false
89 enableFIFO: false
Jakub Jatczak93979ec2024-02-05 13:53:22 +010090 fullModel: false
Michał Szprejdacf6057f2024-01-22 12:44:14 +010091 ReceiveIRQ -> icu@0xA8
92 TransmitIRQ -> icu@0xA9
93 TransmitEndIRQ -> icu@0xAA
Wojciech Mellerc662e912023-12-08 14:39:48 +010094
Marcin Witkowski8554b3d2023-12-29 16:34:08 +010095portMisc: GPIOPort.RenesasRA_GPIOMisc @ sysbus 0x40040D00
96
Marcin Witkowskic26a01f2024-02-07 16:44:41 +010097port0: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +010098 sysbus 0x40040000;
99 sysbus new Bus.BusMultiRegistration { address: 0x40040800; size: 0x40; region: "pinConfiguration" }
100 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100101 portNumber: 0x0
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100102 numberOfConnections: 15
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100103 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100104
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100105 IRQ0 -> icu@1
106 IRQ1 -> icu@2
107 IRQ2 -> icu@3
108 IRQ3 -> icu@4
109 IRQ4 -> icu@5
110 IRQ5 -> icu@6
111 IRQ6 -> icu@7
112 IRQ7 -> icu@8
113 IRQ8 -> icu@9
114 IRQ9 -> icu@10
115 IRQ10 -> icu@11
116 IRQ11 -> icu@12
117 IRQ12 -> icu@13
118 IRQ13 -> icu@14
119 IRQ14 -> icu@15
120 IRQ15 -> icu@16
121
122port1: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100123 sysbus 0x40040020;
124 sysbus new Bus.BusMultiRegistration { address: 0x40040840; size: 0x40; region: "pinConfiguration" }
125 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100126 portNumber: 0x1
Wojciech Mellerc662e912023-12-08 14:39:48 +0100127 numberOfConnections: 16
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100128 pfsMisc: portMisc
Wojciech Mellerc662e912023-12-08 14:39:48 +0100129
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100130 IRQ0 -> icu@1
131 IRQ1 -> icu@2
132 IRQ2 -> icu@3
133 IRQ3 -> icu@4
134 IRQ4 -> icu@5
135 IRQ5 -> icu@6
136 IRQ6 -> icu@7
137 IRQ7 -> icu@8
138 IRQ8 -> icu@9
139 IRQ9 -> icu@10
140 IRQ10 -> icu@11
141 IRQ11 -> icu@12
142 IRQ12 -> icu@13
143 IRQ13 -> icu@14
144 IRQ14 -> icu@15
145 IRQ15 -> icu@16
146
147port2: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100148 sysbus 0x40040040;
149 sysbus new Bus.BusMultiRegistration { address: 0x40040880; size: 0x40; region: "pinConfiguration" }
150 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100151 portNumber: 0x2
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100152 numberOfConnections: 11
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100153 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100154
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100155 IRQ0 -> icu@1
156 IRQ1 -> icu@2
157 IRQ2 -> icu@3
158 IRQ3 -> icu@4
159 IRQ4 -> icu@5
160 IRQ5 -> icu@6
161 IRQ6 -> icu@7
162 IRQ7 -> icu@8
163 IRQ8 -> icu@9
164 IRQ9 -> icu@10
165 IRQ10 -> icu@11
166 IRQ11 -> icu@12
167 IRQ12 -> icu@13
168 IRQ13 -> icu@14
169 IRQ14 -> icu@15
170 IRQ15 -> icu@16
171
172port3: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100173 sysbus 0x40040060;
174 sysbus new Bus.BusMultiRegistration { address: 0x400408C0; size: 0x40; region: "pinConfiguration" }
175 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100176 portNumber: 0x3
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100177 numberOfConnections: 8
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100178 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100179
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100180 IRQ0 -> icu@1
181 IRQ1 -> icu@2
182 IRQ2 -> icu@3
183 IRQ3 -> icu@4
184 IRQ4 -> icu@5
185 IRQ5 -> icu@6
186 IRQ6 -> icu@7
187 IRQ7 -> icu@8
188 IRQ8 -> icu@9
189 IRQ9 -> icu@10
190 IRQ10 -> icu@11
191 IRQ11 -> icu@12
192 IRQ12 -> icu@13
193 IRQ13 -> icu@14
194 IRQ14 -> icu@15
195 IRQ15 -> icu@16
196
197port4: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100198 sysbus 0x40040080;
199 sysbus new Bus.BusMultiRegistration { address: 0x40040900; size: 0x40; region: "pinConfiguration" }
200 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100201 portNumber: 0x4
Wojciech Mellerc662e912023-12-08 14:39:48 +0100202 numberOfConnections: 16
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100203 pfsMisc: portMisc
Wojciech Mellerc662e912023-12-08 14:39:48 +0100204
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100205 IRQ0 -> icu@1
206 IRQ1 -> icu@2
207 IRQ2 -> icu@3
208 IRQ3 -> icu@4
209 IRQ4 -> icu@5
210 IRQ5 -> icu@6
211 IRQ6 -> icu@7
212 IRQ7 -> icu@8
213 IRQ8 -> icu@9
214 IRQ9 -> icu@10
215 IRQ10 -> icu@11
216 IRQ11 -> icu@12
217 IRQ12 -> icu@13
218 IRQ13 -> icu@14
219 IRQ14 -> icu@15
220 IRQ15 -> icu@16
221
222port5: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100223 sysbus 0x400400A0;
224 sysbus new Bus.BusMultiRegistration { address: 0x40040940; size: 0x40; region: "pinConfiguration" }
225 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100226 portNumber: 0x5
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100227 numberOfConnections: 6
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100228 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100229
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100230 IRQ0 -> icu@1
231 IRQ1 -> icu@2
232 IRQ2 -> icu@3
233 IRQ3 -> icu@4
234 IRQ4 -> icu@5
235 IRQ5 -> icu@6
236 IRQ6 -> icu@7
237 IRQ7 -> icu@8
238 IRQ8 -> icu@9
239 IRQ9 -> icu@10
240 IRQ10 -> icu@11
241 IRQ11 -> icu@12
242 IRQ12 -> icu@13
243 IRQ13 -> icu@14
244 IRQ14 -> icu@15
245 IRQ15 -> icu@16
246
247port6: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100248 sysbus 0x400400C0;
249 sysbus new Bus.BusMultiRegistration { address: 0x40040980; size: 0x40; region: "pinConfiguration" }
250 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100251 portNumber: 0x6
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100252 numberOfConnections: 7
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100253 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100254
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100255 IRQ0 -> icu@1
256 IRQ1 -> icu@2
257 IRQ2 -> icu@3
258 IRQ3 -> icu@4
259 IRQ4 -> icu@5
260 IRQ5 -> icu@6
261 IRQ6 -> icu@7
262 IRQ7 -> icu@8
263 IRQ8 -> icu@9
264 IRQ9 -> icu@10
265 IRQ10 -> icu@11
266 IRQ11 -> icu@12
267 IRQ12 -> icu@13
268 IRQ13 -> icu@14
269 IRQ14 -> icu@15
270 IRQ15 -> icu@16
271
272port7: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100273 sysbus 0x400400E0;
274 sysbus new Bus.BusMultiRegistration { address: 0x400409C0; size: 0x40; region: "pinConfiguration" }
275 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100276 portNumber: 0x7
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100277 numberOfConnections: 1
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100278 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100279
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100280 IRQ0 -> icu@1
281 IRQ1 -> icu@2
282 IRQ2 -> icu@3
283 IRQ3 -> icu@4
284 IRQ4 -> icu@5
285 IRQ5 -> icu@6
286 IRQ6 -> icu@7
287 IRQ7 -> icu@8
288 IRQ8 -> icu@9
289 IRQ9 -> icu@10
290 IRQ10 -> icu@11
291 IRQ11 -> icu@12
292 IRQ12 -> icu@13
293 IRQ13 -> icu@14
294 IRQ14 -> icu@15
295 IRQ15 -> icu@16
296
297port8: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100298 sysbus 0x40040100;
299 sysbus new Bus.BusMultiRegistration { address: 0x40040A00; size: 0x40; region: "pinConfiguration" }
300 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100301 portNumber: 0x8
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100302 numberOfConnections: 2
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100303 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100304
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100305 IRQ0 -> icu@1
306 IRQ1 -> icu@2
307 IRQ2 -> icu@3
308 IRQ3 -> icu@4
309 IRQ4 -> icu@5
310 IRQ5 -> icu@6
311 IRQ6 -> icu@7
312 IRQ7 -> icu@8
313 IRQ8 -> icu@9
314 IRQ9 -> icu@10
315 IRQ10 -> icu@11
316 IRQ11 -> icu@12
317 IRQ12 -> icu@13
318 IRQ13 -> icu@14
319 IRQ14 -> icu@15
320 IRQ15 -> icu@16
321
322port9: GPIOPort.RenesasRA4_GPIO @ {
Wojciech Mellere497d492023-12-18 15:50:48 +0100323 sysbus 0x40040120;
324 sysbus new Bus.BusMultiRegistration { address: 0x40040A40; size: 0x40; region: "pinConfiguration" }
325 }
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100326 portNumber: 0x9
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100327 numberOfConnections: 2
Marcin Witkowski8554b3d2023-12-29 16:34:08 +0100328 pfsMisc: portMisc
Marcin Witkowskibd99dbc2023-12-13 15:50:41 +0100329
Marcin Witkowskic26a01f2024-02-07 16:44:41 +0100330 IRQ0 -> icu@1
331 IRQ1 -> icu@2
332 IRQ2 -> icu@3
333 IRQ3 -> icu@4
334 IRQ4 -> icu@5
335 IRQ5 -> icu@6
336 IRQ6 -> icu@7
337 IRQ7 -> icu@8
338 IRQ8 -> icu@9
339 IRQ9 -> icu@10
340 IRQ10 -> icu@11
341 IRQ11 -> icu@12
342 IRQ12 -> icu@13
343 IRQ13 -> icu@14
344 IRQ14 -> icu@15
345 IRQ15 -> icu@16
346
Nikodem Rabulińskia7e2f4c2024-01-07 22:37:08 +0100347sysc_oscsf: Python.PythonPeripheral @ sysbus 0x4001E03C
348 size: 0x4
349 initable: true
350 script: "request.value = 0xFF"
351
352sysc_vbtsr: Python.PythonPeripheral @ sysbus 0x4001E4B1
353 size: 0x4
354 initable: true
355 script: "request.value = 0x10"
356
Jan Malek1568d702024-05-06 10:19:45 +0200357iic0: I2C.RenesasRA_IIC @ sysbus 0x40053000
358 ReceiveIRQ -> icu@0x035
359 TransmitIRQ -> icu@0x036
360 TransmitEndIRQ -> icu@0x037
361 ErrorOrEventIRQ -> icu@0x038
362
363iic1: I2C.RenesasRA_IIC @ sysbus 0x40053100
364 ReceiveIRQ -> icu@0x03A
365 TransmitIRQ -> icu@0x03B
366 TransmitEndIRQ -> icu@0x03C
367 ErrorOrEventIRQ -> icu@0x03D
368
Wojciech Mellerc662e912023-12-08 14:39:48 +0100369sysbus:
370 init:
Michał Szprejdacf6057f2024-01-22 12:44:14 +0100371 Tag <0x4001e03c 0x4> "SYSTEM_STATUS_REGISTER" 0xFF
Wojciech Mellerc662e912023-12-08 14:39:48 +0100372 Tag <0x40003000,0x4000486b> "BUS" // BUS Control
373 Tag <0x40044600,0x4004460f> "CAC" // Clock Frequency Accuracy Measurement Circuit
374 Tag <0x40050000,0x40050877> "CAN0" // CAN0 Module
375 Tag <0x4001b000,0x4001b027> "DBG" // Debug Function
376 Tag <0x40074000,0x4007400f> "CRC" // CRC Calculator
377 Tag <0x40081000,0x40081033> "CTSU" // Capacitive Touch Sensing Unit
378 Tag <0x4005e000,0x4005e00b> "DAC12" // 12-bit D/A converter
379 Tag <0x4009e000,0x4009e007> "DAC8" // 8-bit D/A converter
380 Tag <0x40005000,0x4000501f> "DMAC0" // Direct memory access controller 0
381 Tag <0x40005200,0x40005203> "DMA" // DMAC Module Activation
382 Tag <0x40054100,0x40054107> "DOC" // Data Operation Circuit
383 Tag <0x40005400,0x40005413> "DTC" // Data Transfer Controller
384 Tag <0x40041000,0x4004106b> "ELC" // Event Link Controller
385 Tag <0x4001c000,0x4001c11f> "FCACHE" // Flash Cache
386 Tag <0x40040800,0x40040a83> "PFS" // Pmn Pin Function Control Register
387 Tag <0x40040d00,0x40040d07> "PMISC" // Miscellaneous Port Control Register
Wojciech Mellerc662e912023-12-08 14:39:48 +0100388 Tag <0x40044400,0x40044407> "IWDT" // Independent Watchdog Timer
389 Tag <0x40080000,0x4008000b> "KINT" // Key Interrupt Function
390 Tag <0x40047000,0x40047013> "MSTP" // Module Stop Control B,C,D
391 Tag <0x40000000,0x4000045f> "MMPU" // Bus Master MPU
392 Tag <0x40000c00,0x40000c3b> "SMPU" // Bus Slave MPU
393 Tag <0x40000d00,0x40000d27> "SPMON" // CPU Stack Pointer Monitor
394 Tag <0x40086000,0x4008600f> "OPAMP" // OperationalAmplifier
395 Tag <0x40042000,0x40042513> "POEG" // Port Output Enable Module for GPT
396 Tag <0x40002000,0x400020db> "SRAM" // SRAM Control
397 Tag <0x40044000,0x400440a7> "RTC" // Realtime Clock
398 Tag <0x40082000,0x4008213b> "SLCDC" // Segment LCD Controller/Driver
399 Tag <0x40072000,0x4007201b> "SPI0" // Serial Peripheral Interface 0
400 Tag <0x40072100,0x4007211b> "SPI1" // Serial Peripheral Interface 1
401 Tag <0x4004e000,0x4004e037> "SSIE0" // Serial Sound Interface Ver.2.0
402 Tag <0x407ec000,0x407ec22b> "TSN" // Temperature Sensor
403 Tag <0x40090000,0x400900e3> "USBFS" // USB 2.0 FS Module
404 Tag <0x40044200,0x4004420b> "WDT" // Watchdog Timer
405 Tag <0x40085e00,0x40085e07> "ACMPLP" // Low-Power Analog Comparator
406 Tag <0x4005c000,0x4005c1e3> "ADC140" // 14bit A/D Converter