Creating and Simulating a Schematic with Design Architect and Quicksim


1. What you will learn

    1.1 How to create a schematic for a design using Design Architect.
    1.2 How to name nets, name components, and modify properties on the schematic.
    1.3 How to simulate the schematic using Quicksim II.

2. Getting started

    2.1 This tutorial and those that follow it assume you are familiar with the Unix environment and commands within it to create directories, list, copy, and move files, etc. Knowledge of a text editor available on Unix systems like vi or xemacs is also required. If you are not familiar with Unix, it is recommended that you obtain the relevant take-outs from University Computing Services on these subjects and study them or see the Basic Introduction to Unix available on-line.

    2.2 First, you should create a separate directory under your home directory to hold the designs for this tutorial:

>> mkdir tutorial

>> cd tutorial

    2.3 Start the Mentor Graphics Design Architect (DA) tool (the ampersand [&] puts the tool in the background so your prompt comes back and you can use that terminal for other commands):

>> da &

    2.4 Open a new schematic sheet. Like all of the Mentor tools, DA usually gives you several ways to perform each command. You can open a new schematic sheet by either clicking the  button on the session_palette on the right side of the DA window with the left mouse button, or using the File->Open->Sheet... menu item from the pull-down menus at the top of the window. Either way, the Open Sheet dialog box, like the one shown below, should appear:

3. Add a component to the schematic

    3.1 Add an AND gate to the schematic. There are numerous libraries of parts available with the Mentor tools and within DA as well. This includes the standard 7400 series TTL parts, CMOS parts, high speed parts, and parts for specific programmable logic and ASIC families. However, for this tutorial, you will use the simple generic parts supplied with DA, called the gen_lib parts.

    Use the Libraries->MGC Digital Libraries->Display Libraries Palette item from the pull down menus at the top of the window to bring up the MGC Digital Libraries palette in the right hand side of the window as shown below.
     
     

4. Add wires to the schematic

    4.1 Add wires to the inputs and outputs of the AND gate. Bring up the schematic palette by placing the cursor in the gen_lib palette and pressing the right mouse button to display the Schematic Palette pop-up menu. Select the Display Schematic Palette menu item and the gen_lib palette will be replaced by the schematic_add_route palette. You could have also done this by selecting the Libraries->Display Schematic Palette item from the pull down menus at the top of the DA window.
    In the schematic_add_route palette, click on the  button. This will bring up the Add Wire dialog box at the bottom of the DA window and change the cursor to a cross hair that snaps to grid locations on the schematic window. Place the cursor on the output pin of the and2 component (the small purple diamond) and single click the left mouse button. Move the cursor two grid spaces to the right and single click again. Move the cursor down one grid location and double click the mouse button to end the wire. Notice that a single click of the mouse button adds a "vertex" or pivot point, to an active wire, and double clicking ends the current wire. Also notice that when a correct connection has been made to the pin of a component on the schematic, the purple triangle disappears.

5. Add an instance name to the and2 component on the schematic

6. Modify the rise time and fall time properties of the and2 component

7. Check and Save the schematic sheet

8. Use the QuickSim II tool to simulate the and_gate schematic

    8.1 The QuickSim II tool is the simulator for designs that are produced by Design Architect . You invoke the tool from the command line on the specific sheet you want to simulate like this:

>> quicksim -tim typ and_gate &

    8.3 Add traces to the simulation to display the state of the signals in the design. Now that the sheet window is displayed, you can select signals in the window by clicking on them. Click on the in1 , in2 , and out1 signals to select them (they will highlight in the sheet window). Like DA , QuickSim has context sensitive pop-up menus. Use the right menu in the session window to bring up the pop-up menu and use the Add ->Traces->Selected menu item to add a traces window to the session with the selected signals displayed. Your QuickSim window should now appear like this:
    8.4 Add forces to the inputs of the design. Forces are the mechanism used in Quicksim to drive values on signal lines at specified times in the simulation. In general, you should be careful to only add forces to the inputs to a design you are simulating. Adding forces to the outputs of a design can override the values that the circuit is trying to produce which can lead you to believe that the circuit is not functioning correctly when in fact, it might be.

    Use the Unselect->All item in pop-up menu to unselect all of the signals. Reselect the in1 signal by clicking on it in the schematic window. Use the Add->Forces->Multiple Values... item in the pop-up menus to bring up the Force Multiple Values dialog box. Fill out the dialog box as shown below and click OK .
     
     

    8.6 Use cursors to measure the rise and fall times of the AND gate output. With the trace window still active, use the pop-up menu within it to select the Cursors->Add... menu item. Type test1 in the Cursor Name field of the Add Cursor dialog box that comes up and change the Time field to 20 and click OK . Add additional cursors called test2 at time 30, test3 at time 40, and test4 at time 50.

    Use the View->Area: item from the pull down menus at the top of the Quicksim window to bring up the View Area dialog box. Draw a box around the time period from about 10 ns to about 60 ns. Be sure to include all of the signals (make the box go from the top to the bottom of the trace window). The trace window should now look something like this:
     
     

9. Use the QuickSim II tool to resimulate the and_gate schematic using a do file

>> quicksim -tim typ and_gate &