Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment