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.

Fig 1.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.sh $ export DISPLAY=:0 $ ise This will open ISE in gui as shown in the following fig and now onwards.

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

Fig3 .

enter them and hit next.Next. Fig4 You will be asked for input and outputs. 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. and_gate2 and hit next (it could be different than the project name as it will be the name of the module. . mostly it is different because bigger projects normally have sub modules).

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

endmodule . Notice that the lines starting with // are comments and wont effect your design in actual.Fig6 Now write the body of the design by altering already available information and/or altering some of them. and a1(c.b.b).a. 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.output c).

leads you to either successful or unsuccessful message (Check the console at the bottom-every information is reflected here). Now you are all set to do variety of stuff and play around. Checking the Syntax: Now you would like to check whether what you coded actually is correct or not. . Fig7 Mine is a success YAY! Not a big deal it was just a tiny design anyways ‘and gate’ hah. Click the ‘+’ of ‘synthesize XST’ to see extended fields and hit ‘check syntax’. the processes pan will show extended processes that are available to you. Processing it will take.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.

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

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

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

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