Lab 7 – EE-421L 

Authored by Matthew Daniel McDonagh

EE-421 Fall 2021
email: mcdonm6@unlv.nevada.edu

  

Lab description: In this lab we will be using buses and arrays in the design of word inverters, muxes, and high-speed adders. The purpose of this lab is to demonstrate the usage of buses to simply drive multiple components. Beginning from simple MOSFETs to CMOS to gate-level design components, this lab will reinforce the expansion of our own skills to navigate more complicated circuits. We utilize wide wires (shift-w) for easier visual reference.

 

Pre-lab work:

 

Beginning with Tutorial 5, we start with creating a schematic and a model for a ring oscillator:

Background pattern

Description automatically generated

 

A picture containing background pattern

Description automatically generated

 

A picture containing timeline

Description automatically generated

 

Simulation of Ring Oscillator:

 

Chart, bar chart, histogram

Description automatically generated

 

The layout of the ring oscillator:

 

A picture containing text, stationary

Description automatically generated

 

This concludes the pre-lab portion of lab 7, next is the first experiment, examining the circuit used for inverting a 4-bit word, symbol of which is seen below:

 

A screenshot of a computer

Description automatically generated with low confidence

 

A picture containing text, light, night, laser

Description automatically generated

 

Here is a schematic of the inverter:

 

A screenshot of a video game

Description automatically generated

 

Below are the results of the simulation, showing 4 separate running inverters with different capacitance loads:

 

 

Next we must create schematics and symbols for 8-bit input/output arrays of NAND, NOR, AND< OR, and inverter gates:

 

First is the NAND gate, starting with the symbol:

 

A screenshot of a computer

Description automatically generated with low confidence

 

The NAND gate schematic:

 

A screenshot of a video game

Description automatically generated with medium confidence

 

Updated NAND gate schematic for simulation:

 

A screenshot of a video game

Description automatically generated

 

NAND gate transient simulation response:

 

 

NAND gate simulation complies with NAND gate truth table:

 

A  B  | Y
0  0  |  1
0  1   |  1
1  0   |  1
1  1    | 0

 

Next is the AND gate, starting with the symbol:

 

A screenshot of a computer

Description automatically generated with low confidence

 

AND gate schematic:

 

Graphical user interface

Description automatically generated with medium confidence

 

Updated schematic for simulation:

 

A screenshot of a video game

Description automatically generated

 

AND gate transient response simulation:

 

 

AND gate simulation complies with AND gate truth table:

A  B  | Y
0  0  | 0
0  1  | 0
1  0  | 0
1  1   | 1

 

Next is the OR gate, starting with symbol:

 

A picture containing text, light, red, star

Description automatically generated

 

The OR gate schematic:

 

Graphical user interface

Description automatically generated

 

Updated OR gate schematic for simulation:

 

A screenshot of a video game

Description automatically generated

 

OR gate transient simulation response:

 

 

OR gate simulation complies with OR gate truth table:

 

A  B  | Y
0  0   | 0
0  1   | 1
1  0   | 1
1  1   | 1

 

Next is the NOR gate, starting with the symbol:

A screenshot of a computer

Description automatically generated with low confidence

 

The NOR gate schematic:

 

A screenshot of a video game

Description automatically generated with medium confidence

 

NOR gate updated schematic for simulation purposes:

 

A screenshot of a video game

Description automatically generated

 

NOR gate transient simulation response:

 

 

NOR gate simulation complies with truth table of NOR gate:

 

A  B  | Y
0  0  | 1
0  1  | 0
1  0  | 0
1  1  | 0

 

Next is the inverter (not gate) starting with the symbol:

 

A screenshot of a computer

Description automatically generated with low confidence

 

Inverter schematic:

 

A picture containing background pattern

Description automatically generated

 

Updated inverter schematic for simulation purposes:

 

A screenshot of a video game

Description automatically generated

 

Inverter transient response simulation:

 

 

Simulation of inverter (not) complies with truth table for inverter:

 

A  |  Y
0  |  1
1  |  0

 

Next is to examine the schematic file of the 2-1 DEMUX/MUX and its symbol and simulate the operation of the circuit. The lab gives us the schematic, which I have opened up and edited slightly. There are four inputs, A B S and Si, the latter two are used to switch-off between various inputs the user can decide on. In the mux these two control which outputs a singular input connects to, and in the demux these two will decide if A or B are utilized for an input for a specified output. The multiplexer operates by choosing A when input S is high and choosing B when input S is low, and also passing the signal of the selected input. The demux is a decoder that reverses the mux. Below is the symbol:

 

A picture containing schematic

Description automatically generated

 

Schematic of the mux/demux, removed an input by adding an inverter:

 

Diagram, schematic

Description automatically generated

 

Updated schematic of the mux/demux for simulation and multiplexer testing:

 

A screenshot of a video game

Description automatically generated

 

Mux/Demux transient simulation response from the circuit above:

 

A screenshot of a computer

Description automatically generated with medium confidence

 

Testing the demultiplexing operation, going in the opposite of multiplexing means that while S is high the A input is equivalent to Z and when S is low the B input is equivalent to Z:

 

 

Next is the full adder seen in Fig 12.20 using 6u/0.6u devices, the 8-bit adder is different than the 2-bit adder in that its layout does not always make use of buses and must be wired approximately, which can be done by creating an input pin for every A input (from 7:0) and B input (from 7:0) as well as a singular Cin and Cout pin. Starting with creating a symbol for the adder:

 

A screenshot of a video game

Description automatically generated with medium confidence

 

Schematic for the 8-bit Adder (schematic can use buses unlike layout):

 

Box and whisker chart

Description automatically generated

 

Updated 8-bit schematic for the Adder for simulations:

 

A screenshot of a video game

Description automatically generated

 

Transient simulation response for 8-bit Adder:

 

 

 Layout for the full adder, chained together because no buses were used, retitling each A, B, and Sum pin from 0 to 7:

 

 

Confirming the DRC and LVS of the layout:

 

 

Conclusion: per lab instruction only the layout is required for this exercise.