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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [sim/] [modelsim/] [run_sim.sh] - Blame information for rev 147

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

Line No. Rev Author Line
1 70 rfajardo
#!/bin/bash
2
 
3 133 rfajardo
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
# A word count should always deliver the number of bytes in the hex file,
10
# regardless of the number of hex bytes per line.
11
FIRMWARE_SIZE_IN_BYTES="$(wc -w <"$1")"
12
 
13
vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.so +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.