Skip to content

Instantly share code, notes, and snippets.

@KennethWilke
Created October 19, 2017 18:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KennethWilke/73e58452b5e02b7d24c99dec03892845 to your computer and use it in GitHub Desktop.
Save KennethWilke/73e58452b5e02b7d24c99dec03892845 to your computer and use it in GitHub Desktop.
Vivado SystemVerilog Makefile
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