-
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.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
*** Variables *** | ||
${MACH_SCRIPT} ${CURDIR}/../resc/1_hpc.resc | ||
${BUILD_SCRIPT} ${CURDIR}/../../examples/hpc/test-memory-maps/build.sh | ||
${CPU} sysbus.cpu_hpc0 | ||
${UART} sysbus.apb_uart_0 | ||
${BIN} ${CURDIR}/../../examples/hpc/test-memory-maps/target/riscv64imac-unknown-none-elf/test-memory-maps | ||
|
||
*** Settings *** | ||
Suite Setup Setup | ||
Suite Teardown Teardown | ||
Test Teardown Test Teardown | ||
Resource ${RENODEKEYWORDS} | ||
|
||
*** Keywords *** | ||
Create Machine | ||
Execute Script ${MACH_SCRIPT} | ||
|
||
*** Test Cases *** | ||
APB UART0 is read | ||
Create Machine | ||
Create Terminal Tester ${UART} | ||
|
||
${DEVICE} apb_uart0 | ||
Execute Script ${BUILD_SCRIPT} | ||
Execute Command set bin @${BIN} | ||
Execute Command sysbus LoadELF $bin false true ${CPU} | ||
Start Emulation | ||
|
||
Wait For Line On Uart [PASS] |