Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

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 to your I: drive (or your Home Directory) double click on My Computer icon on the desktop. Double click on the I: drive. Create a CP120 or PC120 folder. Under I:\CP120 create the folders – intro – task – mux – project

2 The Circuit – Automatic Door Opener or and The automatic door should only open when a person is detected walking through the door, or when there is a switch turned on to hold it open, and the door is unlocked. First assign variables to each condition. – p = 1: person detected – h = 1: switch forcing hold open – c = 1: key forcing closed – f => output Create a truth table Minimize (using Boolean algebra or a Karnaugh map) Door Open States: – h=1 and c=0, or – p=1 and c=0 Write your equation f = h(~c) + p(~c)

3 Door Opener Circuit using AND, OR and NOT gates. Design the circuit for the equation found on the previous slide: f = h(~c) + p(~c)

4 QUARTUS II Introduction

5 Getting Started with Altera Quartus II Launch the Altera Quartus Software (there should be an icon on the desktop blue circle-ish) or Start -> All Programs -> Altera -> Quartus II 8.0 -> Quartus II 8.0 (32 bit)

6 Creating a New Project Select File → New Project Wizard Select “Next”. A window such as the following will appear: To select the working directory use the “…” button to browse and select I:\CP120\intro I:\CP120\intro Name the project DoorOpener. Select “Finish”.

7 Creating a New Schematic Design Select File → New A window as seen in the following picture will open. Select ' Block Diagram/Schematic File' and press OK.

8 Save the file: You should have a palette where you will design your circuit. This palette is designated Block1.bdf”. Save this graphic design file as “DoorOpener” in your ‘intro’ folder. Make sure it has exactly the same name as your project. The file will be given the bdf extension; bdf stands for “block design file” and contains schematics, symbols or block diagrams.

9 Adding Text On the left hand side of your screen you should see a toolbar that looks like this… Select the text tool Select a point in the top left corner of the design window. Type your name. Type your project name. Type the following equation, f = hc’ + pc’ Hit the “Esc” (escape) key to exit from the text box.

10 Adding a Component “Instantiation” There are a few ways to add a component: 1)Use the “Symbol Tool” 2)Right click on the design palette and select “Insert | Symbol”. 3)Double click on the design palette. The “Symbol” dialog box will appear. This window lists the available Altera libraries. Expand the “/altera/quartus51/libraries” folder.

11 Instantiation cont… Primitives The primitive symbols in Quartus II consist of logic elements : gates, flip flops, input and output pins, ground and Vcc To access these symbols: Expand the “primitives” folder and then expand the “logic” folder. 74XX Devices In addition to the primitive symbols, specific 74XX devices can be selected and used in a design. To access these devices: Expand the “others: folder and then the “maxplus2” folder.

12 Adding a Gate Gates are indicated by the logic that it performs followed by the number of inputs it has. For example, a two-input AND gate would be designated and2. In the logic folder, select the and2 component by double clicking on it (or single click, then select “OK”). Click the pointer at the desired location on the design palette to insert the AND symbol into the design file. Repeat these steps to enter the remaining gates to implement the equation. – If you need more than one instance of a particular gate you could select the “Repeat-insert mode” box. Try this two insert two NOT gates. In the same manner that you placed a gate onto the palette, add three input pins and one output pin.

13 Component Layout and Naming Use the arrow to rearrange your devices in approximately the placement you would like for the logic diagram you are trying to construct. Save your design. Give your input and output pins the variable names from your equation. Double click on the component to change its name. Save your design.

14 Wiring Your Circuit There are three different connector tools: – Orthogonal Node Tool (“single wire”) – Orthogonal Bus Tool (“multiple wires”) – Orthogonal Conduit Tool (“multiple wires”) To use them, click and drag from node to node. We will use the orthogonal node tool. Before drawing any connection ensure the rubberbanding tool is selected. Rubberbanding allows you to move any components or connectors to improve the layout of your circuit without disconnecting from the nodes.

15 Wiring Your Circuit To delete a wire, use the arrow tool, select the line you want to delete and hit delete on the keyboard. To delete a small portion of the wire select the “Partial Line Selection Tool” and drag a box around the wires you want to delete. When you move a component with connected wires, while rubberbanding is turned on, the wires will drag and stay connected to the component. This is a feature of all major schematic entry design packages and saves the trouble of rewiring if you need to move a component. Connect your circuit and Save your design.

16 Printing To change the appearance of the printout go to Page Setup… in the File menu. This is also where you can insert headers and footers. Similarly to Microsoft products there is a Print Preview located in the File menu. Today we will not be printing, but you will for your projects. To print, go to "File | Print…” or Ctrl + P

17 Circuit Compilation You will need to compile your design to ensure you do not have any errors in your circuit (e.g. you do not have any open connections, etc.) Open the Processing menu, and select Compiler Tool to start compilation. Then click start. You will most likely get 4 warnings, but should not get any errors.

18 Circuit Simulation Setup You will need to simulate your circuit with a vector of inputs to verify that the outputs match your truth table. Go to “File | New | Verification/Debuggin g Files | Vector Waveform File” to open the waveform window. Save as "DoorOpener“. It will have extension.vwf for “Vector Waveform File.

19 Time Scale Our time scale for our design should be increments of 1000ns=1us (us = μs = micro second). This is fine for our parts. Our parts have a propagation delay of 10ns, i.e., the output does not change until 10ns after the inputs change. If you need to change the time scale you can go to the “Edit” menu and select “End Time”. Then change the “Time” to 1000ns (or 1us) as seen in the following figure. Since the propagation delay of most of the devices we now use is 10ns or less, the test vectors used in simulation should change much less often than 10ns. To facilitate construction of test vectors with the waveform editor, do the following: Go to the “Edit” menu Select “Grid Size” Change the “Time Period” to something at least twice as large as the propagation delay of the chip. (eg.“20ns”.)

20 In the waveform window, click the right mouse button in the left side of the window (under “Name”). Select Insert → Insert Node or Bus. Select “Node Finder”. The Node Finder window should appear. Adding Nodes

21 Under “Filter” select “Pins: all”. Click the “List” button. Select all the pins in the left hand column and hit the >> button to copy all the nodes (inputs and outputs) to the “Selected Nodes” list on the right. Select OK. Select OK again. Selecting Simulation Pins

22 You should now see the inputs and outputs in the vector waveform file window. Rearrange your inputs and outputs to be in the order of your truth table by selecting the name, then clicking and dragging it up or down. - Usually the output is at the bottom. Notice that the output shows crosshatches because it is not yet defined. Save this file.

23 Defining Waveforms Click on View → Fit in Window to fit the waveform in the waveform screen (or Ctrl+W). To add a waveform select the area you want (use your mouse, click and drag your mouse cursor). – Make sure that you select at least 100ns at a time. Press the “1” toolbar button to make the selection HIGH or "0" to make the selection LOW.

24 Create your waveforms ensuring that every case is covered. It is generally good practice to count in gray code – this eliminates many glitches. (000, 001, 011, 010, 110, 111, 101, 100) Splitting the full length in half for each waveform is an easy approach to ensure every case has been fulfilled and is easy to read. You can copy and paste waveforms by selecting it and selecting C opy, then selecting your insertion point and selecting Paste. When you have completed the waveform… Save your waveform file. Defining Waveforms

25 Circuit Simulation Open the Processing menu, and select Simulator Tool to start the simulation. Ensure that your *. vwf file name is in the Simulation Input: box (second line). Click “Start”. A window will now appear while the computer is executing the simulation. When the simulation is complete, you will get a message “Simulator was successful.” Click OK. Click the “Report” button. The result of your simulation will be shown. Examine the result to ensure you are getting the results you expected from your truth table.

26 When you are finished… 1) Choose your project. 2) Review this process – next week you will be on your own. Next week: N2085


Download ppt "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."

Similar presentations


Ads by Google