mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-26 09:52:39 +00:00
Connect the EC to the SoC. This allows for emulating both the EC and SoC in tandem. Messages flow via a 16-bit bus. When data is not available, `0xdddd` is returned. There is a HOLD line that goes from the EC to the SoC. This is tied to the inverse of presence of data in the EC FIFO -- when it's empty, HOLD is `1`, and when there is data it's `0`. Signed-off-by: Sean Cross <sean@xobs.io>
54 lines
1.1 KiB
Text
54 lines
1.1 KiB
Text
cpu: CPU.VexRiscv @ sysbus
|
|
cpuType: "rv32i"
|
|
PerformanceInMips: 6
|
|
|
|
uart: UART.LiteX_UART @ {
|
|
sysbus 0xE0003800
|
|
}
|
|
-> cpu@1001
|
|
|
|
timer0: Timers.LiteX_Timer_32 @ {
|
|
sysbus 0xe0001000
|
|
}
|
|
frequency: 100000000
|
|
-> cpu@1000
|
|
|
|
i2c: I2C.BetrustedEcI2C @ sysbus 0xE0004800
|
|
-> cpu @ 1002
|
|
|
|
ticktimer: Timers.TickTimer @ sysbus 0xe0005000
|
|
-> cpu @ 1003
|
|
|
|
com: SPI.BetrustedEcCom @ sysbus 0xe0005800
|
|
memAddr: 0xD0000000
|
|
memSize: 0x1000
|
|
|
|
sram: Memory.MappedMemory @ {
|
|
sysbus 0x10000000;
|
|
sysbus 0x90000000 // shadow
|
|
}
|
|
size: 0x00020000
|
|
|
|
power: Miscellaneous.EcPower @ sysbus 0xE0002800
|
|
|
|
rom: Memory.MappedMemory @ {
|
|
sysbus 0x00000000;
|
|
sysbus 0x80000000 // shadow
|
|
}
|
|
size: 0x00002000
|
|
|
|
flash_mem: Memory.MappedMemory @ {
|
|
sysbus 0x20000000;
|
|
sysbus 0xA0000000 // shadow
|
|
}
|
|
size: 0x00100000
|
|
|
|
lm3509: Mocks.LM3509 @ i2c 0x36
|
|
tusb320lai: Mocks.TUSB320LAI @ i2c 0x47
|
|
bq27421: Sensors.BQ27421 @ i2c 0x55
|
|
bq24157: Mocks.BQ24157 @ i2c 0x6a
|
|
lsm6ds3: Mocks.LSM6DS3 @ i2c 0x6b
|
|
|
|
sysbus:
|
|
init:
|
|
ApplySVD @ec/soc.svd
|