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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [sim/] [run/] [run_bench] - Diff between revs 133 and 147

Only display areas with differences | Details | Blame | View Log

Rev 133 Rev 147
#!/bin/bash
#!/bin/bash
set -o errexit
set -o errexit
set -o nounset
set -o nounset
set -o pipefail
set -o pipefail
set -o posix    # Make command substitution subshells inherit the errexit option.
set -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)"
                # Otherwise, the 'command' in this example will not fail for non-zero exit codes:  echo "$(command)"
# A word count should always deliver the number of bytes in the hex file,
# A word count should always deliver the number of bytes in the hex file,
# regardless of the number of hex bytes per line.
# regardless of the number of hex bytes per line.
FIRMWARE_SIZE_IN_BYTES="$(wc -w <"$1")"
FIRMWARE_SIZE_IN_BYTES="$(wc -w <"$1")"
 
 
vvp -M ../../bench/verilog/vpi/ -mjp-io-vpi minsoc_bench +file_name="$1" +firmware_size="$FIRMWARE_SIZE_IN_BYTES"
vvp -M ../../bench/verilog/vpi/ -mjp-io-vpi minsoc_bench +file_name="$1" +firmware_size="$FIRMWARE_SIZE_IN_BYTES" -lxt2
 
 

powered by: WebSVN 2.1.0

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