Upload
yesu-aggarwal
View
251
Download
0
Embed Size (px)
Citation preview
8/3/2019 Verilog Xilinx Tutorial
1/22
1. Start Xilinx Project Navigator
2. Create a new project
Click on File, then chooseNew Projecton the drop down menu Enter your project name, in this case the project is called MUX2to1 Choose your project location, this project is stored at C:\Projects\ MUX2to1 ChooseHDL as the source type from the Top-Level Source Type menu. ClickNextbutton
8/3/2019 Verilog Xilinx Tutorial
2/22
3. You will be asked to select the hardware and design flow for this project.
For Family, choose Spartan3 For Simulator, chooseISE Simulator (VHDL/Verilog) ClickNextbutton
8/3/2019 Verilog Xilinx Tutorial
3/22
4. A project summary will appear. Click on the Finish button.
8/3/2019 Verilog Xilinx Tutorial
4/22
5. Now we want to add a new file to our project.
Click on Project, chooseNew Source
8/3/2019 Verilog Xilinx Tutorial
5/22
6. Choose Verilog Module as the file type
In the File name: box enter the desired file name, in this case the file is namedmux2to1.v
Click on theNextbutton
8/3/2019 Verilog Xilinx Tutorial
6/22
7. You will be asked for the modules port names/types. You can skip this step
and click on theNextbutton.
8/3/2019 Verilog Xilinx Tutorial
7/22
8. A project summary will appear. Click on the Finish button.
8/3/2019 Verilog Xilinx Tutorial
8/22
9. The mux2to1.v file has been added to your project.
The mux2to1.v file has
been added to the
project.
8/3/2019 Verilog Xilinx Tutorial
9/22
10. Write the verilog code for the required functionality in the workspace.
8/3/2019 Verilog Xilinx Tutorial
10/22
11. After coding is done, select Simulation by clicking the radio button.
8/3/2019 Verilog Xilinx Tutorial
11/22
12. Click on the mux2to1.v file
In the Processes tab below, ISim
Simulator option appears. Expand it
and double click on the Behavioral
check Syntax
8/3/2019 Verilog Xilinx Tutorial
12/22
13. Any syntax errors would be displayed here. If Check Syntax is done
completely, then double click on the Simulate Behavioural model
Any Errors after Behavioural Check
Syntax would be shown here.
8/3/2019 Verilog Xilinx Tutorial
13/22
14. After double clicking on the Simulate Behavioural model, a new simulation
window opens up. (ISim M.63c)
In the ISim window, the Input and
Output signals along with their
values appear.
8/3/2019 Verilog Xilinx Tutorial
14/22
15. Assign the values to the inputs by right clicking on the value and selecting
Force Constant.
8/3/2019 Verilog Xilinx Tutorial
15/22
16. After selecting Force Constant, a dialog box appears and the value to be
forced is given in the Force to Value field. Leave the other fields as it is. After
entering the Force to value, click on Apply and the OK buttons. Repeat thesame process only for the inputs.
8/3/2019 Verilog Xilinx Tutorial
16/22
17. After selecting the Force to value for all the inputs, click on the run button.
RUN button
8/3/2019 Verilog Xilinx Tutorial
17/22
Synthesis:
18. For Synthesis, go back to the Project Navigator window and select the
Implementation radio button.
8/3/2019 Verilog Xilinx Tutorial
18/22
19. If there are multiple verilog files in the same project click on the module
you want to synthesise and right click on it and select Set as Top Module. After
that a dialog box appears, click YES. If there is only one file to synthesize youcan skip this step.
8/3/2019 Verilog Xilinx Tutorial
19/22
20. In the Processes tab below, expand Synthesize - XST and then double click
Check Syntax.
8/3/2019 Verilog Xilinx Tutorial
20/22
21. After the Syntax is checked successfully, double click the View RTL
Scehmatic. Then Set RTL/Techviewer starupmode window appers. Choose the
first radio button and click OK.
8/3/2019 Verilog Xilinx Tutorial
21/22
22. Then the Create RTL Schematic Window Appears. In this window, select
the project mux2to1 and then click ADD. The project gets added to the Selected
Elements list and then click the Create Schematic button at the right bottom.
8/3/2019 Verilog Xilinx Tutorial
22/22
23. After clicking the Create Schematic button, the synthesised multiplexer
appears
24. Double click on the mux2to1 box that is being shown. The gate level
realisation of the multiplexer is shown