Circuit Design

I. Circuit Design Tutorial

A. Getting Started
1. Setup a lab1_ex directory on your PC where you will save your design & simulation files.
2. Launch the Altera Quartus software under Windows.
3. Select the pull-down button "File" and select "New Project Wizard..". Select "Next". Name the project lab1_ex. (this may already be done for you. This should also make the top-level design entity name lab1_ex. If not, again type in lab1_ex.) Select "Finish".
4. Select the pull-down button "File" and "New Block Diagram/Schematic File". Press OK. This should open a palette where you will design your circuit. This palette is designated "Block1.bdf".
5. Select the pull-down button "File" and save the graphic design file "lab1_ex" in your 'lab1_ex' project directory created in step #1. (the file will be given the bdf extension; bdf stands for "block design file" and contains schematics, symbols or block diagrams.)

B. Adding Text
1.Select the "A" below the arrow to the left of your Block Diagram/Schematic File window (also known as the paltte).
2. Select a point near the top left in the wondow with the left mouse key. Type your name and then hit the "Enter" key.
3. Type your lab day and periods and then hit the "Enter" key.
4. Type TA: Name, where Name is replaced by your TA's first and last name. Hit the "Enter" key.
5. Type the following equation, Y=A*/B + /C, and then hit the "Enter" key.
6. Hit the "Esc" (escape) key to end text additions.

C. Component Selection Process and Moving Components 1. With your mouse pointing inside the palette, double click (with the left mouse key) [or click th e right mouse key and select "Insert | Symbo"]. The "Symbol" dialog box will appear. This window lists the available Altera libraries.
2. Select the + icon to expand the "/altera/quartus51/libraries" folder.
3. Select the + icon to expand the "primitives" folder and then expand the "logic" folder.
4. In the logic folder, select the "and2" component by double clicking on it (or by selecting it with a single click, and then selecting "OK"). (If you wanted to add multiple 2-input AND gates, you could select "Repeat-insert mode" box.)
5. Click the pointer at the desired location in the Block Diagram/Schematic Editor windor to insert the AND symbol into the design file.
6. Repeat steps 1-5 to enter an OR (or2) gate and two Level-Shifter (not) gates.
7. Rearrange your devices in approximately the placement you would like for the logic diagram you are trying to construct. You can move a component by selecting it with your mouse, holding down the left button and moving it to another location on the palette. The window should look something like this.

C. Adding/Deleting Wires
1. Place your pointer on the output of the inverter and hold the left mouse button down. You should see a "+" appear at the output.
2. Drag your pointer to the input of the AND gate. Note: If you just create a single wire segment or two segments that do not connect to any gate, just place your pointer on the end of the open wire segment and drag it to the input of the gate.

3. To delete a wire, simply click on it (it should change color to indicate selection) and press the delete key.
4. Try moving a component by selecting it with your mouse, holding down the left button and moving it to another location on the palette. Note: If wires are connected to the component you move, they drag and stay connected to the component.

D. Adding Input & Output Ports
1. In the same manner that you placed a gate onto the palette, add an “input” port from the "Symbol" libraries.
2. Click on the input pin name (which is now called INPUT_PIN) and change it to A.
Repeat these two steps to create input ports B & C.
3. In the same manner that you placed a gate onto the palette, add an “output” port from the "Symbol" libraries. Change the pin name to Y on the output port.
4. Connect the the gates and ports as shown below:

4. Save your design. You are now ready to simulate the circuit.

 

[ECS 154A TA Page] [Max+Plus Tutorial] [Circuit Design] [Simulating] [Extra Max Plus Notes]