URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
[/] [minsoc/] [trunk/] [sim/] [modelsim/] [run_sim.sh] - Diff between revs 70 and 141
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 70 |
Rev 141 |
Line 1... |
Line 1... |
#!/bin/bash
|
#!/bin/bash
|
|
|
vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.so +file_name=$1
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
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)"
|
|
|
|
# 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")"
|
|
|
|
vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.so +file_name=$1 +firmware_size="$FIRMWARE_SIZE_IN_BYTES"
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.