Lab 7 - ECE 421L 

Authored by John Huang.

Huangj19@unlv.nevada.edu

October 27, 2014

  

In this lab we will see implementions of NAND, NOR, AND, OR, MUX and inverter gates using 6u/0.6u MOSFETS.

We will create schematic views and symbol views of these when they are single bits and 8 bits.

We will also create a schematic of another full adder and lay out the full adder.

First let's look at the inverter.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/1.JPG

 

We will edit its properties changing the instance name to I0<3:0> which gives it an array.
In this case it is a 4 bit array from 3 to 0.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/2.JPG

 

We will also use wide wires meant for buses to implement the array.
We create pins that correspond to the array number.

Using this schematic we can now create a symbol for a 4 bit inverter.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/3.JPG

 

I labeled this X4 (4 bits) to differentiate this from a 1 bit inverter.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/4.JPG

We can now simulate this 4 bit inverter with the following schematic.

  

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/5.JPG

 

We can run a transient analyses to see how this inverter array works.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/6.JPG

  

As you can see each output has its own graph because of the way the array is set up.

The capacitive load delays the output of the pulse. The higher the capacitance value the bigger the delay.

We can also see that the rise and fall times takes much longer when you have a higher load.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/7.JPG

 

Let's now create a 8 bit inverter.

Change the array to <7:0> giving it 8 bits.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/8.JPG

 

The schematic of the 8 bit inverter.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/9.JPG

 

We can create a 8 bit inverter symbol from the schematic.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/10.JPG

We will look at the process of all the gates at once after we create all our gates.

 
Now the 8 bit NAND gate.

  

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/11.JPG

The symbol view of the 8 bit NAND gate.

  

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/12.JPG

 

Now let's create a AND gate.

To do this we can simply add an inverter to our NAND schematic.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/13.JPG

 

Then create a symbol from the AND gate.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/14.JPG

Now take the symbol and make it an 8 bit AND gate array.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/15.JPG

Then create the symbol for the 8 bit AND array.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/16.JPG

 

Now we can create a schemtic of the NOR gate.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/17.JPG

 

The symbol for the NOR gate.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/19.JPG

Schematic for the 8 bit NOR array.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/22.JPG

 

The symbol for the 8 bit NOR array.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/23.JPG

 

The schematic for the OR gate, just add an inverter like for the AND gate.

  

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/18.JPG

 

The symbol for the NOR gate.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/34.JPG

 

The schematic for the 8 bit NOR gate.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/20.JPG

 

The symbol for the 8 bit NOR gate.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/21.JPG

 

We can now simulate these gate arrays.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/46.JPG

Now we can create a MUX.

The schematic of the MUX.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/24.JPG

 

Creating a symbol for the MUX.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/25.JPG

We can simulate our MUX symbol to see how it operates.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/35.JPG

 

We can see in the graph that if depending on Si, the MUX will choose the value of A or B.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/43.JPG

  

We can also create a DEMUX by adding an inverter for the S input feeding into the Si input.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/26.JPG

Now we can create the DEMUX symbol from the schematic.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/27.JPG


With the DEMUX symbol we can now make a 8 bit DEMUX symbol.

First the schematic of the 8 bit DEMUX.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/28.JPG

 

Then the symbol for the 8 bit DEMUX.

  

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/29.JPG

 

We can simulate our 8 bit DEMUX symbol to see how it operates.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/36.JPG

 
When we look at the Z<N> outputs, they are all the same. We can see that depending on the value of S we will get the value of A or B or the sum of both.
 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/42.JPG

 

We are now going to recreate the full adder seen on Fig 12.20 from the CMOS book.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/adder.JPG

The schematic of the adder.

 
http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/30.JPG

 

The symbol view of the adder.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/31.JPG

 

The 8 bit adder schematic.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/32.JPG

 

The 8 bit adder symbol.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/33.JPG

 

The layout of a single adder.

 

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/40.JPG

 
DRC of the layout.
  

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/41.JPG

The 8 bit adder layout.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/huangj19/Labs/Lab%207/44.JPG


 

Return to EE 421L Labs