Vivado Tutorial
Vivado Tutorial
Vivado Tutorial
In this tutorial we are designing, simulating and implementing a 4-bit binary adder.
Four full adders are used to build the 4-bit parallel adder.
Cin
Full Adder
Cout
y3
y2
x3
C3
Cout
s3
y1
x2
C2
s2
y0
x1
x2
s1
x0
C1
Cin
s0
Start Vivado
Click on create new project
Click Next
Toma Sacco, Ph.D.
Click Next
Click Next
Toma Sacco, Ph.D.
Click Next
Enter the Family, Package, and speed grade and the select the device from the list
and click Next
Click Finish
Then save it. If you have any syntax error you will get a message alerting you to
that
Click on the PA module to enter its code
Simulation:
Click on Add Sources in the Project Manager
Click Finish
Click Yes
Click on Sim_PA module to open it. Then enter the simulation code.
Toma Sacco, Ph.D.
Save it
To display the results in decimal select the signal and right click on it then from
radix select unsigned.
Clicking on Elaborated Design will give you the block diagram of your design
Implementation:
Pin Assignment:
Nexys4_Master.xdc contain all the resources of Nexys4 board commented. Open this
file and uncomment the resources used in the project. Make sure to use the project
signals for each pin.
Switch 3 dowto 0 are used for input x , switches 7 downto 4 are used for input y,
and swich 8 is used for input Cin
LEDs 3 downto 0 are used to display the output s and LED 4 is used to display
output Cout
Toma Sacco, Ph.D.
After making all the necessary pin connections save the file
Select Generate Bitstream and connect your board to the computer. Then Click OK
After making sure the correct bit file is selected click program
Change the inputs and observe the results. For this example all the inputs are
1s(15+15+1) and the result is 31.