From 14e8de92c7843b1ae0535c14e702212e68bbe4ef Mon Sep 17 00:00:00 2001 From: Robert Winkler Date: Mon, 30 Nov 2020 11:46:40 +0100 Subject: [PATCH] readme: Add a200T package installation Signed-off-by: Robert Winkler readme: Add instructions for counter on Nexys Video Signed-off-by: Robert Winkler xc: Add counter example for Nexys Video Signed-off-by: Robert Winkler --- docs/collect_readmes.py | 1 + xc7/counter_test/Makefile | 5 +++++ xc7/counter_test/README.rst | 6 ++++++ xc7/counter_test/nexys_video.xdc | 16 ++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 xc7/counter_test/nexys_video.xdc diff --git a/docs/collect_readmes.py b/docs/collect_readmes.py index 997a95d..cb989cc 100644 --- a/docs/collect_readmes.py +++ b/docs/collect_readmes.py @@ -8,6 +8,7 @@ full_name_lut = { 'basys3': 'Basys 3', 'eos_s3': 'EOS S3', 'zybo': 'Zybo Z7', + 'nexys_video': 'Nexys Video', } families = ('xc7', 'eos-s3') inlines = ('literal', 'strong', 'reference') diff --git a/xc7/counter_test/Makefile b/xc7/counter_test/Makefile index 1c3cbb6..103ae33 100644 --- a/xc7/counter_test/Makefile +++ b/xc7/counter_test/Makefile @@ -22,6 +22,11 @@ else ifeq ($(TARGET),zybo) BITSTREAM_DEVICE:= zynq7 BOARD_BUILDDIR := ${BUILDDIR}/zybo VERILOG:=${current_dir}/counter_zynq.v +else ifeq ($(TARGET),nexys_video) + PARTNAME:= xc7a200tsbg484-1 + XDC:=${current_dir}/nexys_video.xdc + DEVICE:= xc7a200t_test + BOARD_BUILDDIR := ${BUILDDIR}/nexys_video else PARTNAME:= xc7a35tcpg236-1 XDC:=${current_dir}/basys3.xdc diff --git a/xc7/counter_test/README.rst b/xc7/counter_test/README.rst index 80e766d..d65d88b 100644 --- a/xc7/counter_test/README.rst +++ b/xc7/counter_test/README.rst @@ -22,6 +22,12 @@ counter example, depending on your hardware, run: TARGET="basys3" make -C counter_test +.. code-block:: bash + :name: example-counter-nexys_video-group + + TARGET="nexys_video" make -C counter_test + + .. code-block:: bash :name: example-counter-zybo-group diff --git a/xc7/counter_test/nexys_video.xdc b/xc7/counter_test/nexys_video.xdc new file mode 100644 index 0000000..db9432b --- /dev/null +++ b/xc7/counter_test/nexys_video.xdc @@ -0,0 +1,16 @@ +# Clock pin +set_property LOC R4 [get_ports {clk}] +set_property IOSTANDARD LVCMOS33 [get_ports {clk}] + +# LEDs +set_property LOC T14 [get_ports {led[0]}] +set_property LOC T15 [get_ports {led[1]}] +set_property LOC T16 [get_ports {led[2]}] +set_property LOC U16 [get_ports {led[3]}] +set_property IOSTANDARD LVCMOS33 [get_ports {led[0]}] +set_property IOSTANDARD LVCMOS33 [get_ports {led[1]}] +set_property IOSTANDARD LVCMOS33 [get_ports {led[2]}] +set_property IOSTANDARD LVCMOS33 [get_ports {led[3]}] + +# Clock constraints +create_clock -period 8.0 [get_ports {clk}]