2019-12-19 04:17:38 +00:00
|
|
|
cpu: CPU.VexRiscv @ sysbus
|
|
|
|
timeProvider: cpu_timer
|
|
|
|
cpuType: "rv32imac"
|
|
|
|
privilegeArchitecture: PrivilegeArchitecture.Priv1_10
|
|
|
|
|
2019-12-18 01:53:11 +00:00
|
|
|
uart: UART.LiteX_UART @ {
|
|
|
|
sysbus 0x60001800;
|
|
|
|
sysbus 0xE0001800 // shadow
|
|
|
|
}
|
2019-12-19 04:17:38 +00:00
|
|
|
-> cpu@2
|
2019-12-18 01:53:11 +00:00
|
|
|
|
|
|
|
rom: Memory.MappedMemory @ {
|
|
|
|
sysbus 0x00000000;
|
|
|
|
sysbus 0x80000000 // shadow
|
|
|
|
}
|
|
|
|
size: 0x00002000
|
|
|
|
|
|
|
|
sram: Memory.MappedMemory @ {
|
2019-12-19 04:17:38 +00:00
|
|
|
sysbus 0x40000000;
|
|
|
|
sysbus 0xc0000000 // shadow
|
2019-12-18 01:53:11 +00:00
|
|
|
}
|
2019-12-19 04:17:38 +00:00
|
|
|
size: 16777216
|
2019-12-18 01:53:11 +00:00
|
|
|
|
|
|
|
cpu_timer: Timers.LiteX_CPUTimer @ sysbus 0xf0000800
|
|
|
|
frequency: 66000000
|
|
|
|
// IRQ #100 is Machine Timer Interrupt
|
|
|
|
-> cpu@100
|
|
|
|
|
|
|
|
timer0: Timers.LiteX_Timer @ {
|
|
|
|
sysbus 0x60002800;
|
|
|
|
sysbus 0xE0002800 // shadow
|
|
|
|
}
|
|
|
|
frequency: 12000000
|
|
|
|
-> cpu@0
|
|
|
|
|
|
|
|
spi: SPI.PicoRV_SPI @ {
|
|
|
|
sysbus 0x60005000;
|
|
|
|
sysbus 0xe0005000 // shadow
|
|
|
|
}
|
|
|
|
|
|
|
|
flash: SPI.Micron_MT25Q @ spi
|
|
|
|
underlyingMemory: flash_mem
|
|
|
|
|
|
|
|
flash_mem: Memory.MappedMemory @ {
|
|
|
|
sysbus 0x20000000;
|
|
|
|
sysbus 0xA0000000 // shadow
|
|
|
|
}
|
|
|
|
size: 0x4000000
|
|
|
|
|
|
|
|
sysbus:
|
|
|
|
init:
|
|
|
|
Tag <0xe0000000 0x800> "CTRL"
|
|
|
|
Tag <0xE0006000 0x800> "REBOOT"
|
|
|
|
Tag <0xE0006800 0x800> "RGB"
|
2019-12-19 04:17:38 +00:00
|
|
|
Tag <0xE0007000 0x800> "VERSION"
|