-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize repls into hpc & sysctrl trees and add Robot based CI test…
…ing (#6) * Reorganize repls into hpc & sysctrl trees * Add Renode Robot testcase for DLA * Run Robot in CI * Upload snapshots of failing tests * renode.sh: fix script path
- Loading branch information
Showing
19 changed files
with
143 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using sysbus | ||
|
||
mach create "headsail" | ||
|
||
machine LoadPlatformDescription $ORIGIN/../vp/devel/common.repl | ||
|
||
emulation CreateUartPtyTerminal "term0" "/tmp/uart0" True | ||
emulation CreateUartPtyTerminal "term1" "/tmp/uart1" True | ||
connector Connect sysbus.apb_uart_0 term0 | ||
connector Connect sysbus.apb_uart_1 term1 | ||
|
||
:showAnalyzer sysbus.apb_uart_0 | ||
:showAnalyzer sysbus.apb_uart_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include $ORIGIN/0_mach_create.resc | ||
|
||
machine LoadPlatformDescription $ORIGIN/../vp/devel/hpc.repl | ||
|
||
machine StartGdbServer 3335 true sysbus.cpu_hpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include $ORIGIN/0_mach_create.resc | ||
|
||
machine LoadPlatformDescription $ORIGIN/../vp/devel/sysctrl.repl | ||
|
||
machine StartGdbServer 3333 true sysbus.cpu_sysctrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include $ORIGIN/1_hpc.resc | ||
|
||
macro reset | ||
""" | ||
sysbus LoadELF $bin false true sysbus.cpu_hpc | ||
""" | ||
|
||
runMacro $reset; | ||
start; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include $ORIGIN/1_sysctrl.resc | ||
|
||
macro reset | ||
""" | ||
sysbus LoadELF $bin false true sysbus.cpu_sysctrl | ||
""" | ||
|
||
runMacro $reset; | ||
start; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
*** Variables *** | ||
${SCRIPT} ${CURDIR}/../1_hpc.resc | ||
${CPU} sysbus.cpu_hpc | ||
${UART} sysbus.apb_uart_0 | ||
${BIN} ${CURDIR}/../../examples/hello-dla/target/riscv64imac-unknown-none-elf/debug/examples/dla | ||
|
||
*** Settings *** | ||
Suite Setup Setup | ||
Suite Teardown Teardown | ||
Test Teardown Test Teardown | ||
Resource ${RENODEKEYWORDS} | ||
|
||
*** Keywords *** | ||
Create Machine | ||
Execute Script ${SCRIPT} | ||
|
||
*** Test Cases *** | ||
Hello DLA works | ||
Create Machine | ||
Create Terminal Tester ${UART} | ||
|
||
Execute Command set bin @${BIN} | ||
Execute Command sysbus LoadELF $bin false true ${CPU} | ||
Start Emulation | ||
|
||
Wait For Line On Uart Hello world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*** Settings *** | ||
Suite Setup Setup | ||
Suite Teardown Teardown | ||
Test Teardown Test Teardown | ||
Resource ${RENODEKEYWORDS} | ||
|
||
*** Test Cases *** | ||
Should Print Help | ||
${x}= Execute Command help | ||
Should Contain ${x} Available commands: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cpu_hpc: CPU.RiscV64 @ sysbus | ||
cpuType: "rv64imac" | ||
hartId: 0 | ||
timeProvider: empty | ||
|
||
sdram: Memory.MappedMemory @ sysbus 0x10000000 | ||
size: 0x70000000 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cpu_sysctrl: CPU.IbexRiscV32 @ sysbus | ||
// CPU ISA is actually rv32em but SW & VP support for that is sketchy | ||
cpuType: "rv32imc" | ||
timeProvider: empty | ||
allowUnalignedAccesses: false | ||
|
||
sysctrl_bank_0: Memory.MappedMemory @ sysbus 0x1c000000 | ||
size: 0x8000 | ||
|
||
sysctrl_bank_1: Memory.MappedMemory @ sysbus 0x1c008000 | ||
size: 0x8000 |