URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
[/] [minsoc/] [branches/] [verilator/] [sim/] [verilator/] [run_verilator_bench] - Rev 140
Compare with Previous | Blame | View Log
#!/bin/bashset -o errexitset -o nounsetset -o pipefailset -o posix # Make command substitution subshells inherit the errexit option.# Otherwise, the 'command' in this example will not fail for non-zero exit codes: echo "$(command)"VERILATOR_OUTPUT_DIR="verilator_output"# A word count should always deliver the number of bytes in the hex file,# regardless of the number of hex bytes per line.FIRMWARE_SIZE_IN_BYTES="$(wc -w <"$1")"time "$VERILATOR_OUTPUT_DIR/minsoc_bench_core.exe" "+file_name=$1" +firmware_size="$FIRMWARE_SIZE_IN_BYTES"
