mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 13:47:33 -04:00
minor edits
This commit is contained in:
parent
faecb6c31a
commit
9d70f5017a
2 changed files with 10 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
# Abort if any command returns != 0
|
||||
set -e
|
||||
|
||||
# Simulation config
|
||||
# Default simulation configuration
|
||||
SIM_CONFIG=--stop-time=5ms
|
||||
|
||||
# Project home folder
|
||||
|
@ -14,12 +14,14 @@ homedir=$homedir/../..
|
|||
srcdir_core=$homedir/rtl/core
|
||||
srcdir_sim=$homedir/sim
|
||||
|
||||
# Simulation time define by user?
|
||||
if [ -z ${1} ]; then echo "Using default simulation config: $SIM_CONFIG"; else SIM_CONFIG=$1; echo "Using user simulation config: $SIM_CONFIG"; fi
|
||||
|
||||
# Show GHDL version
|
||||
ghdl -v
|
||||
|
||||
# Simulation time define by user?
|
||||
echo ""
|
||||
if [ -z ${1} ]; then echo "Using default simulation config: $SIM_CONFIG"; else SIM_CONFIG=$1; echo "Using user simulation config: $SIM_CONFIG"; fi
|
||||
echo ""
|
||||
|
||||
# List files
|
||||
echo "Simulation source files:"
|
||||
ls -al $srcdir_core
|
||||
|
@ -71,4 +73,4 @@ chmod 777 neorv32.devnull.data.out
|
|||
|
||||
# Run simulation
|
||||
ghdl -e --work=neorv32 neorv32_tb
|
||||
ghdl -r --work=neorv32 neorv32_tb --ieee-asserts=disable --assert-level=error $SIM_CONFIG
|
||||
ghdl -r --work=neorv32 neorv32_tb --max-stack-alloc=1048576 --ieee-asserts=disable --assert-level=error $SIM_CONFIG
|
||||
|
|
|
@ -156,7 +156,9 @@ void portable_fini(core_portable *p)
|
|||
exe_time.uint64 = (uint64_t)elapsed_cycles;
|
||||
exe_instructions.uint64 = neorv32_cpu_get_instret();
|
||||
|
||||
neorv32_uart_printf("\nNEORV32: Executed instructions 0x%x_%x\n", (uint32_t)exe_instructions.uint32[1], (uint32_t)exe_instructions.uint32[0]);
|
||||
neorv32_uart_printf("\nNEORV32: All reported numbers only show the integer results.\n\n");
|
||||
|
||||
neorv32_uart_printf("NEORV32: Executed instructions 0x%x_%x\n", (uint32_t)exe_instructions.uint32[1], (uint32_t)exe_instructions.uint32[0]);
|
||||
neorv32_uart_printf("NEORV32: CoreMark core clock cycles 0x%x_%x\n", (uint32_t)exe_time.uint32[1], (uint32_t)exe_time.uint32[0]);
|
||||
|
||||
uint64_t average_cpi = exe_time.uint64 / exe_instructions.uint64;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue