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

Subversion Repositories minsoc

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

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

Line No. Rev Author Line
1 72 rfajardo
@echo off
2 134 rfajardo
set /p target_firmware=Input the target firmware hex file along with its path. Ex: "..\..\sw\uart\uart.hex":
3
 
4
for /f "tokens=*" %%i in ('find /c /v "NOTTHISSTRING" %target_firmware%') do set line_output=%%i
5
for /f "tokens=1,2 delims=:" %%a in ("%line_output%") do set firmware_size=%%b
6
set firmware_size=%firmware_size: =%
7
 
8 73 rfajardo
if EXIST %target_firmware% (
9 133 rfajardo
vsim -lib minsoc minsoc_bench -pli ../../bench/verilog/vpi/jp-io-vpi.dll +file_name=%target_firmware% +firmware_size=%firmware_size%
10 73 rfajardo
) else (
11
echo %target_firmware% could not be found.
12
set /p exit=Press ENTER to close this window...
13 119 rfajardo
)

powered by: WebSVN 2.1.0

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