仿真平台内核初版 -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,34 @@
*** Settings ***
Library Collections
Library OperatingSystem
Library Process
*** Variables ***
${RDL_DIR} ${CURDIR}/rdl/
${REFERENCE_DIR} ${CURDIR}/reference/
${GENERATED_DIR} ${CURDIR}/generated/
${RENODE_DIR} ${CURDIR}/renode/
*** Test Cases ***
Compare Generated Files To References
Create Directory ${GENERATED_DIR}
Execute Command include @${CURDIR}/renode/EmptyPeripheral.cs
${files} List Files In Directory ${RDL_DIR}
FOR ${file} IN @{files}
${pathToRdl} = Join Path ${RDL_DIR} ${file}
${baseName} ${extension} = Split Extension ${file}
${replFileName} Catenate SEPARATOR= ${baseName} .repl
${pathToRef} = Join Path ${REFERENCE_DIR} ${replFileName}
${pathToGen} = Join Path ${GENERATED_DIR} ${replFileName}
${pathToRen} = Join Path ${RENODE_DIR} ${baseName}_parent.repl
Run Process peakrdl renode-repl ${pathToRdl} -o ${pathToGen}
${ref} = Get File ${pathToRef}
${gen} = Get File ${pathToGen}
Should Be Equal As Strings ${ref} ${gen}
Execute Command mach create
Execute Command include @${pathToRen}
Execute Command mach clear
END