EEC 116 - Homework 2

The purpose of this homework is to familiarize you with the magic layout tool and to layout some basic circuits. Do your work individually.

  1. Follow the CAD Environment Setup instructions found on the 116 homepage.
  2. Go through several of the magic tutorials to familiarize yourself with the tool. At a minimum, you should go through tutorials 1, 2, 4, and 6. The tutorials are very well written and will take approximately 30-60 minutes each. Also print the tutorial notes at the top of the tutorial page and reference them while you work through the tutorials.

    When a tutorial tells you to edit a magic file, copy it from the directory /pkg/cad/lib/magic/tutorial/ to your local working directory so you can edit it.

    To copy all the tutorials to your home directory, first make a folder to contain all the files, copy the files to this folder, then make the files writeable. For example:

    1. mkdir ~/magic
    2. cd ~/magic
    3. cp /pkg/cad/lib/magic/tutorial/tut*.mag .
    4. chmod +w tut*.mag
    You could also copy files one at a time with a command like: cp /pkg/cad/lib/magic/tutorial/tut1.mag .
  3. We will make several small changes to the magic tutorial procedures. They are:

  4. Draw the schematics, stick diagrams, and layout for six circuits:
    1. an inverter
    2. a 2-input NAND gate
    3. a 2-input NOR gate
    4. a 5-input NOR gate (five NMOS transistors in parallel, five PMOS transistors in series; same general structure as 2-input NOR)
    5. A single CMOS transmission gate (an NMOS in parallel with a PMOS) followed by a single inverter. Label the NMOS gate J, and include a second inverter which generates J and connect it to the PMOS gate.
    6. 10 inverters chained together in series

    Place labels on the following nodes:
    All transistor gate lengths must be minimum length (which is 2 λ). There is no need to draw the nwell or pwell for this assignment. Use metal1 for Vdd, Gnd, and gate outputs and route signals in ndiff or pdiff for short distances only.

  5. Turn in for each of the circuits:



Updates:
2012/10/09  Posted