Created
October 19, 2017 18:09
-
-
Save KennethWilke/73e58452b5e02b7d24c99dec03892845 to your computer and use it in GitHub Desktop.
Vivado SystemVerilog Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XVLOG_FILES=xvlog.log xvlog.pb xsim.dir/ | |
XELAB_FILES=webtalk*.log webtalk*.jou xelab.log xelab.pb .Xil/ | |
XSIM_FILES=xsim*.log xsim*.jou work.top.wdb | |
all: xsim.dir/ | |
xsim.dir/: *.sv | |
@echo "Parsing HDL" | |
@xvlog --sv *.sv | |
@echo "Elaborating design" | |
@xelab top -debug all | |
test: xsim.dir/ | |
@echo "Starting simulation" | |
@xsim -R top | |
test-gui: xsim.dir/ | |
@echo "Starting simulation" | |
@xsim -g top | |
clean: | |
rm -rf $(XVLOG_FILES) $(XELAB_FILES) $(XSIM_FILES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment