+ All Categories
Home > Documents > kxc104/class/cmpen270/10s/hw/hw5/hw5.doc · Web viewOr capture the Simulator window with Alt-Print...

kxc104/class/cmpen270/10s/hw/hw5/hw5.doc · Web viewOr capture the Simulator window with Alt-Print...

Date post: 19-Mar-2018
Category:
Upload: ngodan
View: 214 times
Download: 0 times
Share this document with a friend
19
CMPEN 270 Penn State University 9/24/2008 Kyusun Choi Homework 5 Guide One can check the Xilinx ISE 9 Tutorial at the following link: http://www.xilinx.com/support/techsup/tutorials/tutorials9.htm Reading the documentation may save your time. Before starting the homework, you will need to create a folder first. From the Start menu, click 'My Computer' and create C:\cmpen270 folder and collect all your homework projects in this folder.
Transcript

CMPEN 270 Penn State University 9/24/2008 Kyusun Choi

Homework 5 GuideOne can check the Xilinx ISE 9 Tutorial at the following link:

http://www.xilinx.com/support/techsup/tutorials/tutorials9.htm

Reading the documentation may save your time.

Before starting the homework, you will need to create a folder first.

From the Start menu, click 'My Computer' and create C:\cmpen270 folder and collect all your homework projects in this folder.

Start the ISE Project Navigator.

Under the File pull down menu, select the New Project…

Before typing the Project Name, you MUST specify Project Location. Specify C:\cmpen270 folder that was just created.

Now type the project name. In this case, you will be creating the Homework 5 project and you will be turning in your project as your homework, so you must name the project with your last name. Make the project name as your last name after "hw5_". For example, my project name will be 'hw5_choi'. Keeping this project/folder name convention is important, for you to get full credit of your work. When I name my project hw5_choi, the ISE program will create a sub-folder C:\cmpen270\ hw5_choi and collects all the project files in it. If your last name is longer than 8 characters, use only the first 8 character of your last name.

Select the following properties into the homework 5 project wizard window. These same properties will be used for all the homework.

Family => Spartan3 Top-Level Source Type => HDLDevice => XC3S200 Synthesis Tool => XST (VHDL/Verilog)Package => VQ100 Simulator => ISE Simulator (VHDL/Verilog)Speed => -5 Preferred Language => VHDL

Click Next on the subsequent window.

Again click Next on the subsequent window.

Check the properties and click Next on the subsequent window.

You will see the similar ISE project navigator window shown below. Right click the device xc3s200-5vq100 and select the New Source… option.

Now select the Schematic on the left and type the file name. In this case, you will be creating a file with an AND gate. Also, ALL file names must contain your initials in the beginning. For example, my file name with 2-input AND gate circuit will be 'kcand2' for my first name initial "k" and my last name initial "c" is added to the beginning of the file name. Keeping this file name convention is important, for you to get full credit of your work.

Once you see the ISE project navigator window similar to the one below, click on the kcand2.sch tab on lower middle left (next to Design Summary tab).

And Maximize the ISE window as shown below.

Click on the bottom of “Symbols” window and drag down to enlarge the “Symbols” window as shown below.

Scroll the Symbols window list on the left and click the and2 item.

Move the cursor to the right, on the kcand2.sch window and click. Center the 2 input AND gate symbol and click zoom in. The AND gate symbol will follow the cursor, hit Esc key on your keyboard to end the Insert Symbol mode.

Click Add Wire button and add wires to AND2 gate symbol. Simply click at the symbol’s signal wire end, then drag to add the wire.

Add wires to all of AND2 gate input and output. Then, click on Add I/O Maker button and click on the wire ends to put I/O to wires.

Double click on the I/O, and change I/O names to ‘a’, ‘b’, and ‘z’.

Click Save button to save the schematic file just created. Then click Sources tab and Processes tab on the left side of the ISE window.

Double click Synthesize – XST on the left Processes window.

Then double click “Implement Design” on the left Processes window.

You must see the green check marks, otherwise check the error message and correct your schematic design. WARNING on the Console window can be ignored.

Now right click on the kcand2 in the left Sources window and select New Source… option.And type the file name, name with TBW – Test Bench WaveForm – to test your design.

Zoom in and click the blue tic marks to create your own input signals. Then click Save button.

Now go to Sources for: box selection on the upper left (above Sources window) and select Post-Route Simulation option.

Then double click Simulate Post-Place & Route Model under the Xilinx ISE Simulator in the Processes window.

Then enter 10000 ns for simulation time and click on the “Run for Specified Time” button.

Then click on the “Zoom to Full View” button.

Make an observation and check to see if the output signal ‘z’ is correct. Try left click, right click, and other button click to explore the simulation window features and be familiar with the tool. You may print the ISE Simulator output wave. Or capture the Simulator window with Alt-Print Screen key and paste it on a MS Word file.

Materials to submit:

1. Create the Homework 5 report file 'hw5_yourname.pdf' or 'hw5_yourname.doc' file and place it into your project folder. Make the Homework 5 report file in .pdf or .doc format. The Homework 5 report file must contain the cover page and the captured screen shots of the AND gate simulation waveform results along with good explanations. Type the homework cover page with your name, date, CMPEN270 Homework 5, SPRING 2010, etc.

2. Cleanup project files before ZIPping. The "Cleanup Project Files" command menu selection is under the the "Project" menu in ISE Project Navigator.

3. ZIP your homework 5 folder with all the files in it and the folder name as your last name. Make the ZIP file name as your last name after "hw5_". For example, my file name will be hw5_choi.zip.

4. Turn-in your project zip file through Penn State ANGEL. Deposit your source code zip file into the Homework 5 DropBox under CLASS tab in CMPEN270 Course.

5. Turnin your homework file before 11:30pm on the due date.


Recommended