diff options
Diffstat (limited to 'src/tools/debug/simics/sbe_startupAxone.simics')
-rw-r--r-- | src/tools/debug/simics/sbe_startupAxone.simics | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/tools/debug/simics/sbe_startupAxone.simics b/src/tools/debug/simics/sbe_startupAxone.simics new file mode 100644 index 00000000..03dc26a9 --- /dev/null +++ b/src/tools/debug/simics/sbe_startupAxone.simics @@ -0,0 +1,53 @@ +####################################### +#Declare simics environment variables +####################################### +decl { + group "sbe_ci" + + param sbe_scripts_path : string or nil = NIL + ! SBE scripts_path at time 0 + result sbe_scripts_path : string or nil + + param sbe_ci : bool = FALSE + ! is sbe-ci TRUE + result sbe_ci : bool + + param sbe_ci_script : string or nil = NIL + ! SBE ci script to run at time 0 + result sbe_ci_script : string or nil +} +if $sbe_scripts_path != NIL { + add-directory $sbe_scripts_path +} +if $sbe_ci_script != NIL { + $sbe_ci_script = (lookup-file $sbe_ci_script) +} + +################################### +#Enable SBE +################################### +echo "Enable the SBE" + +(get-master-cec-chips)[0].invoke parallel_store SCOM 0x5003A "90000000_00000000" 64 +# Set security enabled bit +(get-master-cec-chips)[0].invoke parallel_store SCOM 0x00050001 "0C000002_00000000" 64 + +echo "Attempting to register SBE Tools" +# Load SBE debug tools. +try { + run-python-file (lookup-file "%script%/simics-debug-framework.py") + +} except { echo "ERROR: Failed to load SBE debug tools." } + + +#If we are running CI, run the test cases +if $sbe_ci == TRUE { + try { + run-command-file $sbe_ci_script + } except{ + echo " Debug ::SBE CI Script error" + q 1 + } + #Kill runsim if any test case fails. + q 0 +} |