Skip to content

Instantly share code, notes, and snippets.

@elvircrn
Created March 4, 2018 10:53
Show Gist options
  • Save elvircrn/cf819b49a9c1ba701e2d09a0b7c0880f to your computer and use it in GitHub Desktop.
Save elvircrn/cf819b49a9c1ba701e2d09a0b7c0880f to your computer and use it in GitHub Desktop.
@echo off
ghdl --clean --workdir=isim\work
ghdl --remove --workdir=isim\work
ghdl --clean --workdir=work
ghdl --remove --workdir=work
mkdir work
for /r %%i in (*.vhd) do ghdl -a --ieee=synopsys --workdir=work %%~ni.vhd
ghdl -e --ieee=synopsys --workdir=work tb_%1
ghdl -r --ieee=synopsys --workdir=work tb_%1 --vcd=%1.vcd
C:\gtkwave\bin\gtkwave %1.vcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment