Getting Started with Vivado Design Suite for EDGE Artix 7 FPGA kit

This tutorial explains the step by step procedure to create a Vivado project, create source files, synthesize the design, Implement the design and finally verify the functionality in FPGA using the EDGE Artix 7 board.

Step 1: Open Vivado design Suite by selecting

Start > All Programs > Xilinx Design Tools > Vivado 2018.1 > Vivado 2018.1

Step 2: Click Create New Project and click next to open new project wizard.

Step 3: Select Project directory and mention new project name.

Step 4: Select RTL Project and check Do not specify sources at this time.

Step 5: Click Boards and select edgeA7 in Part Selection window or select Part XC7A35TFTG256-1 from the list of parts available.

Step 6: Now the New Project summary display with project details selected.

Step 7: Now the Vivado tool opens with Flow Navigator on left and Project Manager on right. Flow Navigator display the list of process involved from HDL input creation to bit file output generation. Project manager consist of Source, Workspace and Report Window.

Source Window displays Design Sources (VHDL, Verilog), Constraints (XDC) and Simulation sources. Workspace Window is used to create and view HDL/XDC files. Report Window consist of TCL console, Messages, Logs, Reports and Design Rules

Step 8: Now click Add source and select Add create design sources

Step 9: Click create file and select file type and file name as bcd_7seg

Step 10: Double click on the bcd_7seg.vhd at source window to open on the right side.

Step 11: Copy the following BCD to 7 seven segment VHDL code and paste on the text editor opened.

- – the code get BCD input from 4 slide switches SW3, SW4, SW5, SW6 and<br>
- – display the output in seven segment display from 0 - 9.<br>
library IEEE;<br>
use IEEE.STD_LOGIC_1164.ALL;</p>
<p>entity bcd_7segment is<br>
Port (<br>
BCDin : in STD_LOGIC_VECTOR (3 downto 0); – Slide Switch<br>
digit : out STD_LOGIC_VECTOR (3 downto 0); – Enable 4 digit<br>
Seven_Segment : out STD_LOGIC_VECTOR (7 downto 0)); – 7 Segments and Dot LEDs<br>
end bcd_7segment;</p>
<p>architecture Behavioral of bcd_7segment is</p>
<p>digit &lt;= "1111"; process(BCDin) begin case BCDin is when "0000" =&gt;<br>
Seven_Segment &lt;= "00000011"; – -0<br>
when "0001" =&gt;<br>
Seven_Segment &lt;= "10011111"; – -1<br>
when "0010" =&gt;<br>
Seven_Segment &lt;= "00100101"; – -2<br>
when "0011" =&gt;<br>
Seven_Segment &lt;= "00001101"; – -3<br>
when "0100" =&gt;<br>
Seven_Segment &lt;= "10011001"; – -4<br>
when "0101" =&gt;<br>
Seven_Segment &lt;= "01001001"; – -5<br>
when "0110" =&gt;<br>
Seven_Segment &lt;= "01000001"; – -6<br>
when "0111" =&gt;<br>
Seven_Segment &lt;= "00011111"; – -7<br>
when "1000" =&gt;<br>
Seven_Segment &lt;= "00000001"; – -8<br>
when "1001" =&gt;<br>
Seven_Segment &lt;= "00001001"; – -9<br>
when others =&gt;<br>
Seven_Segment &lt;= "11111111"; – -null<br>
end case;</p>
<p>end process;</p>
<p>end Behavioral;

Step 12: Now again select the Add Source and select Add or create constraints

Step 13: Click create file and mention file type and file name

Step 14: Copy the following XDC File and paste it on the XDC editor window created. Refer EDGE Artix 7 XDC File for more details.

<p>set_property IOSTANDARD LVCMOS33 [get_ports {BCDin[*]}]<br>
set_property IOSTANDARD LVCMOS33 [get_ports {digit[*]}]<br>
set_property IOSTANDARD LVCMOS33 [get_ports {Seven_Segment[*]}]<br>
set_property PACKAGE_PIN L5 [get_ports {BCDin[0]}]<br>
set_property PACKAGE_PIN L4 [get_ports {BCDin[1]}]<br>
set_property PACKAGE_PIN M4 [get_ports {BCDin[2]}]<br>
set_property PACKAGE_PIN M2 [get_ports {BCDin[3]}]<br>
set_property PACKAGE_PIN F2 [get_ports {digit[0]}]<br>
set_property PACKAGE_PIN E1 [get_ports {digit[1]}]<br>
set_property PACKAGE_PIN G5 [get_ports {digit[2]}]<br>
set_property PACKAGE_PIN G4 [get_ports {digit[3]}]</p>
<p>set_property PACKAGE_PIN H1 [get_ports {Seven_Segment[0]}]#DP<br>
set_property PACKAGE_PIN H2 [get_ports {Seven_Segment[1]}]#G<br>
set_property PACKAGE_PIN J4 [get_ports {Seven_Segment[2]}]#F<br>
set_property PACKAGE_PIN J5 [get_ports {Seven_Segment[3]}]#E<br>
set_property PACKAGE_PIN H4 [get_ports {Seven_Segment[4]}]#D<br>
set_property PACKAGE_PIN H5 [get_ports {Seven_Segment[5]}]#C<br>
set_property PACKAGE_PIN G1 [get_ports {Seven_Segment[6]}]#B<br>
set_property PACKAGE_PIN G2 [get_ports {Seven_Segment[7]}]#A</p>

Step 15: Save bcd_7seg.vhd and bcd_7seg.xdc file created and perform synthesis, Implementation and generate bitstream by click them one by one in Flow Navigator

Step 16: Click Open Hardware Manager in Flow Navigator to program the bit file.

Step 17: Connect EDGE Artix 7 FPGA Kit to PC through USB cable and Turn On the kit. Open device manager to verify drivers are installed as shown below. Otherwise install USB Programmer drivers by referring kit user manual driver installation section.

Step 18: To detect FPGA, Do Hardware Manager -> Open Target -> Auto Connect

Step 19: If the device is detected successfully, then select Program Device by right click on the target device xc7a35t_0 as shown below

Step 20: Browse the Bit file need to be downloaded to the Artix 7 FPGA and click Program.

Step 21: Once the Program Succeeds, Done LED D1 light up on EDGE Artix 7 FPGA kit. The BCD to 7 Segment Converter get BCD input from 4 slide switches SW3, SW4, SW5, SW6 and display the corresponding  output in seven segment display from 0 – 9.