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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [sim/] [modelsim/] [run_sim.bat] - Diff between revs 133 and 134

Show entire file | Details | Blame | View Log

Rev 133 Rev 134
Line 1... Line 1...
@echo off
@echo off
set /p target_firmware=Input the target firmware hex file along with its path. Ex: "..\..\sw\uart\uart-nocache.hex":
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: =%
 
 
if EXIST %target_firmware% (
if EXIST %target_firmware% (
set firmware_size=find /c /v "NOTTHISSTRING"
 
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% +firmware_size=%firmware_size%
) else (
) else (
echo %target_firmware% could not be found.
echo %target_firmware% could not be found.
set /p exit=Press ENTER to close this window...
set /p exit=Press ENTER to close this window...
)
)

powered by: WebSVN 2.1.0

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