Xilinx ISE Step-by-Step Tutorial using ‘and Gate’

This tutorial intends a step-by-step guide to simulate an AND Gate using ISE 10.1i It is understood that the tutorial is not generous enough in terms of picking a design as simple as, an and gate is singled out, nevertheless, it is just an illustration and the reader has to try his/her own design. It is left with you guys to try the designs of Half Adder Full Adder Multiplexer De-multiplexer Encoder Counter Go on-fold your vision and unleash your imagination.

Getting Started:

On a Windows platform, it is as easy as double clicking

and off you fly. Couldn’t be easier,

just double click the ISE icon on the desktop. On, Linux, it is bit of a work-out so bear with it. On Linux platform, open the ‘terminal’ by ‘right click’ anywhere on the blank desktop area and choose ‘terminal’. Now you have to type some commands on the prompt to launch the ISE application. Let’s first of all see how you are going to create your directory in ‘btech’. In terminal ‘$’ type as follows $ cd /home/btech/btech_proj0609 $ mkdir ‘your_directory’ //replace ‘your_directory’ by your NAME

Now you have made a directory with your name in /home/btech/btech_proj0609 This is where you are going to work and save all your work and projects…Any other place and your work will be deleted One more thing, you will find a file named ‘nit.cshrc’. DON’T DELETE this.

sh $ export DISPLAY=:0 $ ise This will open ISE in gui as shown in the following fig and now onwards.Let’s resume with ISE Close the terminal and Start with a fresh ‘terminal’ Commands to run ISE in Linux are: $ cd /cad/xilinx10/ISE/ $ source settings64. the rest is the same for both Windows and Linux. . Fig 1.

say for instance.Close the ‘Tips of the Day’ bit and carry on. and_gate2 in the Project Name field and browse the directory you created by your name in the Project Location field and hit next. You will be asked for the device properties. Here. File>New Project to open fig3 Fig2 Enter the project name. select as shown in Fig4 and hit next. . 1. New Project with Project Wizard: You use project wizard through the Project Manager.

Fig3 .

enter them and hit next. and_gate2 and hit next (it could be different than the project name as it will be the name of the module. hit ‘new source’ to open a pop-up where you will click on ‘verilog module’ to highlight it and then you can use the same file name here ie. Fig4 You will be asked for input and outputs. .Next. mostly it is different because bigger projects normally have sub modules).

. You should see something like this…….Fig5 Finally hit ‘Finish’ tab..

b). So you might like to change above to this: Fill the `timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Create Date: // Module Name: 02:05:36 06/01/2009 and_gate2 // Design Name: gate level // Project Name: and_gate ////////////////////////////////////////////////////////////////////////////////// module and_gate2(input a. and a1(c. endmodule .a.b.Fig6 Now write the body of the design by altering already available information and/or altering some of them. Notice that the lines starting with // are comments and wont effect your design in actual.output c).

Click the ‘+’ of ‘synthesize XST’ to see extended fields and hit ‘check syntax’. Fig7 Mine is a success YAY! Not a big deal it was just a tiny design anyways ‘and gate’ hah. .what are you waiting for? Save the project! Now note that when you select your design from the ‘source pan’ (make sure implementation is current option) to highlight it. Processing it will take. Checking the Syntax: Now you would like to check whether what you coded actually is correct or not. Now you are all set to do variety of stuff and play around. the processes pan will show extended processes that are available to you. leads you to either successful or unsuccessful message (Check the console at the bottom-every information is reflected here).

Pull down the Project menu and select New Source. Fig8 Click Next twice. simulating the design. and Finish to enter the Initial Timing and Clock Wizard. Simulate the design: This is what we have been up to.2. You will create a ‘test bench’ using the Waveform Generator. . Select TestBench Waveform as source. Fig8. and enter file name ‘and_gate2_tb’. Change the default parameters to those shown in Fig9.

.Fig9 You are good to hit ‘Finish’ now.

I have done it so Fig10 Having done so. you are ready for a taste of your. first simulation in ISE so hold on tight. Clicking on any of the inputs. perhaps.You will land this window. Make sure that ‘behavioral Simulation’ is the current source in the Source pane. here select the . set the waveform and SAVE (make sure the source pan has the ‘Behavioral Simulation selected’ as the source.tbw . a or b around the shaded areas should toggle the waveform.

that’s it and it’s your turn to try some other designs so take off. Fig 11 We will try something else next time. -OJ .Finally. double click on the ‘Simulate Behavioral Model’ from the ‘processes pane’ to see something like this. For now.