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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sim/] [modelsim/] [run_sim.bat] - Diff between revs 73 and 141

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 73 Rev 141
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% (
vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.dll +file_name=%target_firmware%
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...
)
)
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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