Copyright © 2007 by Pearson Education 1 UNIT 6A COMBINATIONAL CIRCUIT DESIGN WITH VHDL by Gregory L. Moss Click hyperlink below to select: Tutorial for.

Slides:



Advertisements
Similar presentations
Step-by-Step: Add a Graphical Hyperlink USE the Special Events Final presentation that is still open from the previous exercise. 1.Go to slide 4, and click.
Advertisements

Benchmark Series Microsoft Access 2010 Level 1
Chapter 3 Creating a Business Letter with a Letterhead and Table
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
Chapter 5 Multitable Forms
Advanced Digital Circuits ECET 146 Week 4 Professor Iskandar Hack ET 221B,
XP New Perspectives on Microsoft Access 2002 Tutorial 61 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Managing Grades with Excel Viewing Help To view Help 1.Open Excel on your computer. 2.In the top right hand corner of the Excel Screen type in the.
ECE – 329 Fall 2007 Lab Manual for Xilinx Example: Design and simulation of a Half Adder Instructor: Dr.Botros.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
How to use the VHDL and schematic design entry tools.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Altera’s Quartus II Installation, usage and tutorials Gopi Tummala Lab/Office Hours : Friday 2:00 PM to.
Lab 5 Multiplexer and 7-Segment Display Module M7.3.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Use Quartus II Design Procedure. Use Quartus II Create Project.
BoardMaker Ver 6 Creating Interactive Activities for the Classroom.
Printing and Page Formatting ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
Introduction to FPGA Design Illustrating the FPGA design process using Quartus II design software and the Cyclone II FPGA Starter Board. Physics 536 –
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 4 Reports, Forms, and Combo Boxes.
Chapter 3 Maintaining a Database
Chapter 4 Programmable Logic Devices: CPLDs with VHDL Design Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
Advanced Digital Circuits ECET 146 Week 3 Professor Iskandar Hack ET 221B,
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
StateCAD FPGA Design Workshop. For Academic Use Only Presentation Name 2 Objectives After completing this module, you will be able to:  Describe how.
SQL Maestro Hello World IQ Associates. Contents Initial setup Hello World.
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
Mentor Tools tutorial Bold Browser Design Manager Design Architect Library Components Quicksim Creating and Compiling the VHDL Model.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
Promodel tutorial tutorial.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
1 Introduction to Xilinx ISL8.1i Schematic Capture and VHDL 1.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 8 Formula Auditing, Data Validation, and Complex Problem Solving.
Advanced Digital Circuits ECET 146 Week 2 Professor Iskandar Hack ET 221B,
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
1 Introduction to Xilinx ISL8.1i & 11.1 Schematic Capture 1.
Creating your Home Directory During Labs you will need to save all your work in a folder called CP120 (or PC120) in your Home Directory (drive I:) To get.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 7 – Creating and Using Templates in a Web.
Programmable Logic Training Course HDL Editor
FrontPage Tutorial Part 2 Creating a Course Web Site.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 4 Working with Variables, Constants, Data Types, and Expressions.
FIRST COURSE Word Tutorial 6 Using Mail Merge. Objectives Learn about the mail merge process Use the Mail Merge task pane Select a main document Create.
Dreamweaver MX. 2 Tools for Code Editing (p. 366) n An HTML editor like Dreamweaver writes most of the code you need, but at times you will need to perform.
11 EENG 1920 Introduction to VHDL. 22 Hardware Description Language A computer language used to design circuits with text-based descriptions of the circuits.
Creating and Editing a Web Page
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
Teaching Digital Logic courses with Altera Technology
Creating a multi-page form using Tab Controls. In today’s class, we will be using the Tab Control method to create the Form / SubForm combination.
1 VHDL & Verilog Simulator. Modelsim. 2 Change the directory to where your files exist (All of the files must be in a same folder). Modelsim.
Founded in Silicon Valley in 1984
Microsoft Office Access 2003
Presentation transcript:

Copyright © 2007 by Pearson Education 1 UNIT 6A COMBINATIONAL CIRCUIT DESIGN WITH VHDL by Gregory L. Moss Click hyperlink below to select: Tutorial for Example 6-1 Tutorial for Example 6-2 Tutorial for Example 6-3

2 Example 6-1 problem statement: Create a comparator circuit to compare the magnitudes of two 2-bit numbers ( A1 A0 and B1 B0 ). The circuit will have three output signals: GT, LT, and EQ. GT will be high to indicate that the 2-bit A value is greater than the 2-bit B value. LT will be high if the 2-bit A value is less than the 2-bit B value. EQ will be high if the two 2-bit values are equal. The desired 3-output function is defined in a truth table shown below. A1A0B1B0GTLTEQ

3 Start Quartus II. Open the New Project Wizard in the File menu. Enter the working directory and name for this project. You will need to create a new project folder named comparator for this project in the qdesigns directory. The name for the project will be the same as the ENTITY name two_bit_compare. Check with your instructor for your working directory details. There are no additional files to add. Specify Family & Device. Check the New Project Wizard Summary and Finish. Start a New Design Project

4 Create a Text Design File Open a New File (File menu or the toolbar button). Select “VHDL File” under “Device Design Files.” OK.

5 Enter Text for Design Type one of the design file solutions for Example 6-1 using the Text Editor. Save the two_bit_compare.vhd file in the comparator folder when finished.

6 Check for Errors Click the Analysis and Synthesis button (or choose “Analyze Current File” in the Processing menu). Quartus will check for syntax errors in the design file and will indicate if the analysis was successful or if errors are found. If you have errors, locate the first error in the design file (double-click message or open the menu by pointing the cursor at the message and clicking the right mouse button, choose “Locate” and then “Locate in Design File”). The error will be highlighted in the design file and the message will describe what is wrong. Make the necessary corrections to the design file and check again for errors. Continue when analysis is successful.

7 Compile the Project Click the Start Compilation button (or open the Processing menu and choose “Start Compilation”). The design will be compiled from the top-level of the project as defined by the current project name listed in the banner at the top of the screen. There is only one design file for this project since it is a “flat design.” If the compilation was successful, click OK. If errors are reported, consult your lab instructor.

8 Simulate the Project Create an input file for the simulator by clicking the New file button on the toolbar or choosing “New” in the File menu. Select “Vector Waveform File” under the “Other Files” tab and click OK. Specify an end time of 160 ms for the simulation file. Open the Edit menu and choose “End Time.” Click OK. Specify a grid size of 10 ms for the simulation file. Open the Edit menu again and choose “Grid Size.” Click OK. Open the View menu and choose “Fit in Window.” Select inputs and outputs for the project simulation using the Node Finder.

9 Simulate (continued) Click the List button in the Node Finder window. Select the desired Input Group and output node Names shown below (hold down the CTRL key while clicking the left mouse button on the node name). Add selected nodes to the Vector Waveform File (point to a selected Node handle in the Node Finder window, hold down the left mouse button, and drag the highlighted nodes to the Name field in the Vector Waveform window). Close the Node Finder window.

10 Simulate (continued) Create the desired input waveforms for the project simulation. Select the time from 40ms to 80ms on input group a by holding down the left mouse button and dragging the cursor through that time on the grid. Release the mouse button and the specified time should be highlighted. Click the Arbitrary Value button in the waveform editing toolbar. Enter the binary value 01 in the dialog box and click OK. The group input value for a will be changed in the timing diagram.

11 Simulate (continued) Next select the time from 80ms to 120ms on a. Change the binary group value to 10. Finally select the last time segment for a (120ms to 160ms) and change the binary group value to 11.

12 Simulate (continued) Select the entire waveform for b (click the left mouse button on the node handle, on the name, or on the value). Click the Count Value button in the waveform editing toolbar. The Count Value dialog box should look like the one below. This will produce a repeating count sequence from 00 to 11 in binary. Click OK. The group input value for b will change in the timing diagram.

13 Simulate (continued) Clicking a Group Expand button + in the Name field will display the individual signals for the selected group. The individual signals can be turned off again by clicking the Group Collapse button -. Save the file as 2bit_compare.vwf.

14 Simulate (continued) Simulate the project by clicking the Start Simulation button in the toolbar or opening the Processing menu and choosing “Start Simulation.” Verify correct operation for this project.

15 Notes on Programming and Testing a PLD Remember to follow the specific instructions given by your instructor for your laboratory equipment. If necessary, manually assign desired pin numbers to input and output signals (Assignments menu > Pins) and recompile. Open the Pin-Out File in the Fitter report to check the pin assignments made by the compiler. Attach the PLD trainer to the PC, power the board, and program the target device. Test the design with the chip’s inputs connected to logic switches and the outputs connected to logic display lamps (wired according to the pin assignments shown in the final Pin-Out File except for pin 83). End Ex. 6-1

16 Example 6-2 problem statement: Design and construct a 2421-BCD-to-5421-BCD code converter. The truth table for this design is given below. The inputs are labeled d c b a and the outputs are labeled p q r s. Note that in this situation, we care about only 10 of the 16 possible input combinations. The other 6 input combinations are listed at the bottom of the truth table and are labeled as “invalid.” Each of the invalid input conditions should be given a default output value of Weights  Value  DCBAPQRS Invalid

17 Start Quartus II. Open the New Project Wizard in the File menu. Enter the working directory and name for this project. You will need to create a new project folder named code_conv for this project in the qdesigns directory. The name for the project will be the same as the ENTITY name code. Check with your instructor for your working directory details. There are no additional files to add. Specify Family & Device. Check the New Project Wizard Summary and Finish. Start a New Design Project

18 Create a Text Design File Open a New VHDL design file. Type one of the design file solutions for Example 6-2 using the Text Editor. Save the code.vhd file in the code_conv folder.

19 Check for Errors Check for syntax errors using “Analysis and Synthesis.” The dialog box will indicate if errors are found. If you have errors, “Locate” them and make the necessary corrections to the design file. Continue when analysis is successful.

20 Compile the Project Start Compilation.

21 Simulate the Project Open a New Vector Waveform File (under “Other Files”). Enter 16.0μs for the End Time (Edit menu). Enter 1μs for the Grid Size (Edit menu). Fit in Window (View menu).

22 Simulate (continued) Open Node Finder window (View menu > Utility Windows). List nodes and select (CTRL-click left mouse button) the Input Group named in and the Output Group named out. Drag to the Vector Waveform window. Close Node Finder.

23 Simulate (continued) Reverse the order of the input port bits so that they are arranged with the MSB on top. Select all four input signals by dragging the cursor through a b c d while holding the left mouse button down. Click the Sort button on the waveform editing toolbar. Select Descending order and click OK.

24 Simulate (continued) Group the input signals together. With the four inputs selected, open the menu by right-clicking the mouse while pointing to the highlighted area. Choose Group. Type input as the Group name in the dialog box and select Hexadecimal as the Radix. Click OK.

25 Simulate (continued) Group the output signals together and give them the Group name output. Select the four output signals, right-click mouse, choose Group, and type output for the Group name. Click OK.

26 Simulate (continued) Create a simulation input waveform that will verify all 16 possible input combinations for this project. Select the entire waveform for input (left-click the handle, name, or value). Click the Count Value button in the waveform editing toolbar to count from 0 to F in Hexadecimal. OK.

27 Simulate (continued) Save the code.vwf file. Start Simulation. Verify correct operation.

28 Simulate (continued) Change the radix for both signal groups in the timing diagram. Select the waveforms (drag the cursor through the handle, name, or value fields while holding the left mouse button down). Right-click the mouse while pointing to the highlighted area to open the menu and choose Properties. Change Radix to Binary in the pull-down list.

29 Final Simulation Results

30 Notes on Programming and Testing a PLD Remember to follow the specific instructions given by your instructor for your laboratory equipment. If necessary, manually assign desired pin numbers to input and output signals (Assignments menu > Pins) and recompile. Open the Pin-Out File in the Fitter report to check the pin assignments made by the compiler. Attach the PLD trainer to the PC, power the board, and program the target device. Test the design with the chip’s inputs connected to logic switches and the outputs connected to logic display lamps (wired according to the pin assignments shown in the final Pin-Out File except for pin 83). End Ex. 6-2

31 Example 6-3 problem statement: Design a 4-channel data selector (multiplexer). The logic expression for this circuit is: __ __ __ __ Y = (D0 S1 S0 + D1 S1 S0 + D2 S1 S0 + D3 S1 S0) EN The four data inputs are D0 through D3, the data channel desired is selected with the input controls S1 and S0, and EN is an enable input.

32 Start Quartus II. Open the New Project Wizard in the File menu. Enter the working directory and name for this project. You will need to create a new project folder named multiplexer_vhdl for this project in the qdesigns directory. The name for the project will be the same as the ENTITY name multiplexer. Check with your instructor for your working directory details. There are no additional files to add. Specify Family & Device. Check the New Project Wizard Summary and Finish. Start a New Design Project

33 Create a Text Design File Open a New VHDL design file. Type one of the design file solutions for Example 6-3 using the Text Editor. Save the multiplexer.vhd file in the multiplexer_vhdl folder.

34 Check for Errors Check for syntax errors using “Analysis and Synthesis.” The dialog box will indicate if errors are found. If you have errors, “Locate” them and make the necessary corrections to the design file. Continue when analysis is successful.

35 Compile the Project Start Compilation.

36 Simulate the Project Open a New Vector Waveform File (under “Other Files”). Enter 40.0ms for the End Time (Edit menu). Enter 2.5ms for the Grid Size (Edit menu). Fit in Window (View menu).

37 Simulate (continued) Open Node Finder window (View menu > Utility Windows). List nodes. Select (CTRL-click left mouse button) the signal nodes shown below. Drag to the Vector Waveform window and close Node Finder.

38 Simulate (continued) Arrange the input signals as shown below. Select a waveform (point to the waveform’s handle, drag up or down to a new location while holding the left mouse button down, and release the button). Expand the d input group to also show the individual input signals. Create some test vector inputs for s (select), en (enable), and d(3) through d(0) (data) by editing the waveforms. Save the file.

39 Simulate (continued) Start Simulation. Verify correct operation. The y output should be equal to the selected (controlled by s value) d input when en (enable) is high. Example results are shown below.

40 Notes on Programming and Testing a PLD Remember to follow the specific instructions given by your instructor for your laboratory equipment. If necessary, manually assign desired pin numbers to input and output signals (Assignments menu > Pins) and recompile. Open the Pin-Out File in the Fitter report to check the pin assignments made by the compiler. Attach the PLD trainer to the PC, power the board, and program the target device. Test the design with the chip’s inputs connected to logic switches and the outputs connected to logic display lamps (wired according to the pin assignments shown in the final Pin-Out File except for pin 83). End Ex. 6-3

41 End Unit 6 Quartus II VHDL Tutorials