URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
Compare Revisions
- This comparison shows the changes necessary to convert path
/minsoc/trunk/sim
- from Rev 141 to Rev 104
- ↔ Reverse comparison
Rev 141 → Rev 104
/run/run_bench
1,13 → 1,2
#!/bin/bash |
|
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")" |
|
vvp -M ../../bench/verilog/vpi/ -mjp-io-vpi minsoc_bench +file_name="$1" +firmware_size="$FIRMWARE_SIZE_IN_BYTES" |
#!/bin/sh |
vvp -M ../../bench/verilog/vpi/ -mjp-io-vpi minsoc_bench +file_name=$1 |
modelsim/compile_design.bat
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: modelsim/run_sim.bat
===================================================================
--- modelsim/run_sim.bat (revision 141)
+++ modelsim/run_sim.bat (revision 104)
@@ -1,13 +1,8 @@
@echo off
-set /p target_firmware=Input the target firmware hex file along with its path. Ex: "..\..\sw\uart\uart.hex":
-
-for /f "tokens=*" %%i in ('find /c /v "NOTTHISSTRING" %target_firmware%') do set line_output=%%i
-for /f "tokens=1,2 delims=:" %%a in ("%line_output%") do set firmware_size=%%b
-set firmware_size=%firmware_size: =%
-
+set /p target_firmware=Input the target firmware hex file along with its path. Ex: "..\..\sw\uart\uart-nocache.hex":
if EXIST %target_firmware% (
-vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.dll +file_name=%target_firmware% +firmware_size=%firmware_size%
+vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.dll +file_name=%target_firmware%
) else (
echo %target_firmware% could not be found.
set /p exit=Press ENTER to close this window...
-)
+)
\ No newline at end of file
modelsim/run_sim.bat
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: modelsim/prepare_modelsim.bat
===================================================================
--- modelsim/prepare_modelsim.bat (revision 141)
+++ modelsim/prepare_modelsim.bat (revision 104)
@@ -2,4 +2,4 @@
vlib minsoc
vmap minsoc ./minsoc
echo Finished...
-set /p exit=Press ENTER to close this window...
+set /p exit=Press ENTER to close this window...
\ No newline at end of file
modelsim/prepare_modelsim.bat
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: modelsim/run_sim.sh
===================================================================
--- modelsim/run_sim.sh (revision 141)
+++ modelsim/run_sim.sh (revision 104)
@@ -1,13 +1,3 @@
#!/bin/bash
-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"
+vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.so +file_name=$1