URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
[/] [minsoc/] [trunk/] [sim/] [run/] [run_bench] - Blame information for rev 149
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
141 |
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 |
|
|
# 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 |
149 |
rfajardo |
vvp -M ../../bench/verilog/vpi/ -mjp-io-vpi minsoc_bench +file_name="$1" +firmware_size="$FIRMWARE_SIZE_IN_BYTES" -lxt2
|
© copyright 1999-2026
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.