diff options
author | bryan newbold <bnewbold@leaflabs.com> | 2013-10-08 22:05:21 -0400 |
---|---|---|
committer | bryan newbold <bnewbold@leaflabs.com> | 2013-10-08 22:05:21 -0400 |
commit | b31c07157b7b8ca7e8823749e140fcab24b787d2 (patch) | |
tree | f03d74eb53c316d0ef30962c39f447434432ce45 /contrib | |
parent | 06bb61d1163f3cac14a6a4b26dd64f3cfb105c97 (diff) | |
download | basic-hdl-template-b31c07157b7b8ca7e8823749e140fcab24b787d2.tar.gz basic-hdl-template-b31c07157b7b8ca7e8823749e140fcab24b787d2.zip |
working xula2 sim/syn/prog system
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/xilinx.mk | 4 | ||||
-rw-r--r-- | contrib/xula2.mk | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/contrib/xilinx.mk b/contrib/xilinx.mk index 458d73e..aae76a2 100644 --- a/contrib/xilinx.mk +++ b/contrib/xilinx.mk @@ -129,9 +129,9 @@ programming_files: build/$(project).bit build/$(project).mcs build/$(project).mcs: build/$(project).bit @bash -c "$(xil_env); promgen -w -data_width $(mcs_datawidth) -s $(flashsize) -p mcs -o $(project).mcs -u 0 $(project).bit" -build/$(project).bit: build/$(project)_par.ncd build/$(project)_post_par.twr +build/$(project).bit: build/$(project)_par.ncd build/$(project)_post_par.twr $(board).bitconf @bash -c "$(xil_env); \ - bitgen $(intstyle) -g Binary:yes -g DriveDone:yes -g StartupClk:Cclk -w $(project)_par.ncd $(project).bit" + bitgen $(intstyle) -f ../$(board).bitconf -w $(project)_par.ncd $(project).bit" build/$(project)_par.ncd: build/$(project).ncd build/$(project)_post_map.twr diff --git a/contrib/xula2.mk b/contrib/xula2.mk new file mode 100644 index 0000000..9c06b3b --- /dev/null +++ b/contrib/xula2.mk @@ -0,0 +1,9 @@ +# xula2 device-specific make targets + +.PHONY: prog + +prog: build/$(project).bit + @xsload.py --fpga build/$(project).bit + +prog_flash: build/$(project).bit + @xsload.py --flash build/$(project).bit |