仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>

This commit is contained in:
liuwb
2026-02-07 20:43:43 +08:00
parent de61f9e2b0
commit b3117648be
9748 changed files with 4309137 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
*** Keywords ***
Create Machine
Execute Command mach create
Execute Command machine LoadPlatformDescriptionFromString "cpu: CPU.VexRiscv @ sysbus { cpuType: \\"rv32gc\\"; timeProvider: empty }"
Execute Command machine LoadPlatformDescriptionFromString "mem: Memory.MappedMemory @ sysbus 0x80000000 { size: 0x1000 }"
# Disable UART buffering for compatibility with older firmware
Execute Command machine LoadPlatformDescriptionFromString "uart: UART.LiteX_UART @ sysbus 0x40008000 { txFifoCapacity: 0 }"
Execute Command sysbus LoadELF @https://dl.antmicro.com/projects/renode/riscv32--ebreak_custom_test.elf-s_5760-4db0870a69de9bba7ccda18908832c5b72cff35e
*** Test Cases ***
Should Generate Ebreak
Create Machine
Create Terminal Tester sysbus.uart
Start Emulation
Wait For Line On Uart !starting test...
Wait For Line On Uart ecall instruction from machine mode
Wait For Line On Uart ebreak instruction
Wait For Line On Uart ecall instruction from machine mode
Wait For Line On Uart ebreak instruction
Wait For Line On Uart finished test