Introduction to the Xilinx Foundation Tools
Introduction to the Xilinx Foundation System -
Schematic entry and Functional Simulation
Purpose:
The purpose of this lab is to get familiar with the Xilinx Foundation Tools for designing, and simulating a logic circuit.
Pre-lab readings and assignment:
Before coming to the lab read the pre-lab section and answer all the questions. Write the answers down in your lab notebook. See guidelines on keeping a notebook.
You will be implementing a simple digital circuit, called a half adder (HA). This circuit adds two bits together and gives a sum, S, and carry, Co, output, shown below in the following examples.A 1 1The first example adds 1+0, resulting in a sum S=1 and carry C=0. The second example adds 1+1 resulting in a Carry=1 and a Sum=0. This can be accomplished with a few logic gates, shown in the figure below.
+B +0 +1
---- ---- ----
C S 01 10
Figure 1: Schematic of a half adder circuit (HA)
This circuit consists of three AND gates, two inverters and one OR gate. You can easily verify for yourself that this circuit performs the desired function by applying an input to the gate and checking what the output is. Do this for all four possible combinations of the input signals A and B: AB=00, 01, 10 and 11 and fill out the table below.
Table for a half adder
Inputs . . A B Sum Co 0 0 . . 0 1 . . 1 0 . . 1 1 . .
In-lab assignment: F. Ketterer Lab, 204 Moore
A. Parts and Equipment:
Read the instructions carefully before doing the lab
You will enter the schematic and simulate the Sum and Carry-out function of the Half Adder circuit using the Xilinx Foundation Tools. This will be done by the procedure explained in the tutorial web pages.
While doing the experiments write down in your lab notebook what you did and any observations and results. You can also sketch the schematics you implement and note down the signal names. For an example of a notebook entry, click on "Notebook Entry Example"
2. Start with the tutorial "Creating a new Project: Schematic Entry" on the Tutorial web pages.
3. Proceed with the schematic entry of the half adder (Fig. 1) as explained in the tutorial (TOOLS -> DESIGN ENTRY -> SCHEMATIC ENTRY; or click on the Schematic Entry icon). It is a good idea to specify the page size before drawing the schematic otherwise the schematic may print too small. Go to FILE -> PAGE set up in the Schematic Editor window. Specify A size (8"x11").
- Launch the Xilinx Foundation Software by clicking on the Xilinx Foundation Project Manager Icon on the desktop.
- Open a new project and give it the name, MYHA (Don't give it the name of EasyProj). This project should be created in your folder (directory) that you just created: c:\users\your_name\). Use the Browse button to locate your directory (folder) on the C: drive.
- Under the flow, select Schematic.
- For Type, fill select F2.1i
- For family select from the pull-down menu "Spartan XL" (when using the Digilab board).
- For Part use S10PC84. This refers to the target device you will later use to actually implement your design. You can change this at a later time.
- For speed, select grade 4 (can be changed later during the implementation process)
Start drawing the schematic.
When finished save the schematic. Put your name in the little table
at the bottom right hand side of the sheet. This can be done by going to
the FILE -> TABLE SETUP menu item (type in your and your partners name,
Lab 1, Lab Title).
4. Next, you will do a functional simulation in order to check that the logic circuit gives you the required function. Follow the tutorial on Functional Simulation for the Sum and Carry signals.
Do the Functional Simulation. Make sure that the "Functional" appears in the pull down menu at the bottom of the simulator window.
Check that your circuit works as expected and compare it with the table given in the pre-lab. Verify each entry. If the circuit does not work properly, check your schematic and correct it. Read also the section on "Common Mistakes". When you modify your schematic you should update the simulator. When the schematic has been modified save it and go to the OPTIONS menu -> EXPORT NETLIST and UPDATE SIMULATION in order to ensure that the simulator will use the latest schematic.
5. If the circuit works as expected:
Hand-in (at the start of next lab)
You have to hand in a short lab report that contains the following (see also Guidelines of Lab Report):
th visitor since 7/26/99