-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiverilog.bat
More file actions
29 lines (29 loc) · 826 Bytes
/
Copy pathiverilog.bat
File metadata and controls
29 lines (29 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo off
:: make file for Icarus Verilog simulator
if not [%1]==[] (
if not defined IVERILOG (
set IVERILOG=%1
set PATH=%PATH%;%1\bin;%1\lib
)
)
if not defined IVERILOG (
echo Run batch file with path to Icarus Verilog simulator installed directory
echo as first argument. "VCD" argument is optional afterwards for defining
echo GTK_WAVE to generate VCD file. Other argument skips vvp execution.
goto :END
)
if exist .\bin rmdir /Q/S bin
if not exist .\bin mkdir bin
cd .\bin
if [%1]==[] (
iverilog.exe -o uart_tb.out -I .. ..\uart.v ..\uart_io.v ..\uart_tb.sv
) else (
if "%1"=="VCD" (
iverilog.exe -DGTK_WAVE -o uart_tb.out -I .. ..\uart.v ..\uart_io.v ..\uart_tb.sv
) else (
iverilog.exe -I .. ..\uart.v ..\uart_io.v ..\uart_tb.sv
)
)
if exist uart_tb.out vvp.exe uart_tb.out
cd ..
:END