OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [verilator/] [sim/] [verilator/] [run_verilator_bench] - Blame information for rev 159

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 140 rfajardo
#!/bin/bash
2
 
3
set -o errexit
4
set -o nounset
5
set -o pipefail
6
set -o posix    # Make command substitution subshells inherit the errexit option.
7
                # Otherwise, the 'command' in this example will not fail for non-zero exit codes:  echo "$(command)"
8
 
9
VERILATOR_OUTPUT_DIR="verilator_output"
10
 
11
# A word count should always deliver the number of bytes in the hex file,
12
# regardless of the number of hex bytes per line.
13
FIRMWARE_SIZE_IN_BYTES="$(wc -w <"$1")"
14
 
15
time "$VERILATOR_OUTPUT_DIR/minsoc_bench_core.exe" "+file_name=$1" +firmware_size="$FIRMWARE_SIZE_IN_BYTES"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.