Lab 7 - EE 421L 

Authored by Sharyn Miyaji,

Email: miyajis@unlv.nevada.edu

Wednesday, November 16, 2016 

  

Pre-Lab Work

   

For Pre-Lab, we needed to go through Tutorial 5 in preparation for this lab.  In the tutorial, a 31 stage ring oscillator must be created and tested out using buses rather than laying out and connecting many inverters, which is shown below.

   

Schematic 

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/31_ring_osc_schematic.JPG

   

Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/31_ring_osc_symbol.JPG

   

Layout

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/31_ring_osc_layout.JPG     

  

Extracted

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/31_ring_osc_extracted.JPG

   

DRC

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/31_ring_osc_DRC.JPG

   

LVS

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/31_ring_osc_LVS.JPG

   

Schematic Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_31_ring_osc_schematic.JPG   

   

Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_31_ring_osc_simulation.JPG

   

Netlist

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_31_ring_osc_extracted_netlist.JPG

   


   

Lab Work

     

Creating a 4-Bit Inverter

    

Using the buses again that we did in the prelab, we now create a 4-bit inverter using the 6um/6um inverter and create a symbol.

   

Inverter Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_inverter_schematic.JPGhttp://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_inverter_schematic.JPG

   

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/4x_inverter_schematic.JPG

   

Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/4x_inverter_symbol.JPG

    

Using the 4-bit inverter, we test it to see if it is working properly by attaching different size capacitor loads to a different output bit to see how it affects the simulation.    

   

Schematic of 4-Bit Inverter Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_4x_inverter_schematic.JPG

   

4-Bit Inverter Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_4x_inverter_simulation.JPG

   

Based on the simulation, the bigger the capacitive load, the bigger the time delay.  Both the rise and fall times increase as well as the capacitive load increases.  If the capacitor is big, more charges can be stored; therefore, it is causing the voltage to take longer time to rise and fall.

   

8-Bit NAND

    

Now, we must create an 8-bit NAND gate by again using bus wires and by adding <7:0> to its pin names to represent the array of 8 bits.  In order to do that, a single bit NAND gate must be created as shown below.  Once the schematic is checked and saved and a symbol is created.  Bus wires are attached witharrayed pins and the instance name of the NAND gate IO<7:0>.  Once that is checked and saved, create another symbol as a representation of 8-bit NAND gate.

   

1-Bit NAND

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_nand_schematic.JPG

   

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_nand_schematic.JPG

    

Symbol
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_nand_symbol.JPG

   

The same process is done for the inverter, NOR, AND, NAND, and OR gates.

   

8-Bit NOR

   

1-Bit NOR

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_nor_schematic.JPG

    

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_nor_schematic.JPG

   
Symbol
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_nor_symbol.JPG
   
8-Bit AND
   
1-Bit AND
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_and_schematic.JPG
   
Schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_and_schematic.JPG
   
Symbol
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_and_symbol.JPG
   
8-Bit Inverter
   
1-Bit Inverter
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_inverter_schematic.JPGhttp://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_inverter_schematic.JPG
   
Schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_inverter_schematic.JPG
   
Symbol
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_inverter_symbol.JPG

    

8-Bit OR

   

1-Bit OR

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/6u_6u_or_schematic.JPG

   

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_or_schematic.JPG

   

Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_or_symbol.JPG

   

Gate Simulations

     

Once all 5 gates are created, the schematic below is created to see if the gates are working properly, which is similar as the one done for the 4-bit inverter.

   

Gate Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_gates_schematic.JPG

   

8-Bit Inverter Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_gates_inv_simulation.JPG

   

8-Bit AND Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_gates_and_simulation.JPG
     
8-Bit NAND Simulation
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_gates_nand_simulation.JPG

     

8-Bit NOR Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_gates_nor_simulation.JPG

    

8-Bit OR Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_gates_or_simulation.JPG

   
Creating 2-to-1 DEMUX/MUX

     

Next, a schematic of a 2-to-1 MUX is shown below and then created into a symbol, so it can be used for simulations.  The output of the 2-to-1 MUX is dependent on the input of S because it causes the output to be either A or B as seen in the simulation.

   

2-to-1 MUX Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/2_to_1_MUX_schematic.JPG

   

2-to-1 MUX Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/2_to_1_MUX_symbol.JPG

     

2-to-1 MUX Simulation Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_2_to_1_MUX_schematic.JPG

     
2-to-1 MUX Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_2_to_1_MUX_simulation.JPG

   
An inverter is then attached to the 2-to-1 MUX from input S to Si as shown below to see if it affects the output.
   

2-to-1 MUX with Inverter Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/2_to_1_MUX2_schematic.JPG

   

2-to-1 MUX with Inverter Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/2_to_1_MUX2_symbol.JPG

   

2-to-1 MUX with Inverter Simulation Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_2_to_1_MUX2_schematic.JPG

     

2-to-1 MUX with Inverter Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_2_to_1_MUX2_simulation.JPG

   

As you can see in the simulation, the inverter does not affect the results of the simulation; therefore, it does not matter whether or not the inverter is attached.

   

Using the modified 2-to-1 MUX, pulse voltage sources are attached to the pin Z and S, which are the new input pins, and pin A and B are being measured, which are the new output pins, to simulate a DEMUX.   

   

2-to-1 DEMUX Simulation Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_2_to_1_DEMUX_schematic.JPG

    

2-to-1 DEMUX Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_2_to_1_DEMUX_simulation.JPG

   

8-Bit 2-to-1 MUX

   

An 8-bit 2-to-1 MUX are created by again using bus wires and instance name to represent the arrays.  Different pulse voltage sources are used to test if the 8-bit 2-to-1 MUX is working properly.

   

Schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_MUX_schematic.JPG

    

Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_MUX_symbol.JPG

   

Simulation Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_8bit_MUX_schematic.JPG

   

Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_8bit_MUX_simulation.JPG

    

Figure 12.20 Full Adder

   
The schematic of a full adder is created using Figure 12.20 and is then made into a symbol.  Then a layout is created, so it can be instantiated later on in the lab.  Once the layout is created, DRC, extract the layout, and LVS it to make sure it matched and passes the schematic.
   
Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_schematic.JPGhttp://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_schematic.JPG

     

Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_symbol.JPG

   

Layout

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_layout.JPG

    

Extracted

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_extracted.JPG

   

DRC

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_DRC.JPG

   

LVS

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Fig_12_20_Full_Adder_LVS.JPG

    

Once everything matches, the full adder is then tested out and has the same result as the full adder created in Lab 6.

   

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_Fig_12_20_Full_Adder_schematic.JPG

   

Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_Fig_12_20_Full_Adder_simulation.JPG

    

Truth Table

AnBnCnSnCn+1
00000
00110
01010
01101
10010
10101
11001
11111

   

8-Bit Figure 12.20 Full Adder

   

Using the full adder that was just created, we will again use wire buses and instance name to create an 8-bit Full Adder.  Once that is created, then we create a symbol and layout it out.  When creating the 8-bit full adder, the first bit Cn+1 must connect to the second Cn, then the second but Cn+1 must connect to the third Cn, and so on and so forth, where the first Cn is an input and the last Cn+1 is the output.  

   

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_Fig_12_20_Full_Adder_schematic.JPG

   

Symbol

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_Fig_12_20_Full_Adder_symbol.JPG

   

Layout

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_Fig_12_20_Full_Adder_layout.JPG

   

Extracted

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_Fig_12_20_Full_Adder_extracted.JPG

  

DRC

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_Fig_12_20_Full_Adder_DRC.JPG

   

LVS 

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/8_bit_Fig_12_20_Full_Adder_LVS.JPG

     

Once layout is DRCed, extracted, and LVS, then it can be tested out for simulation to see if it is properly working.

   

Simulation Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_8_bit_Fig_12_20_Full_Adder_schematic.JPG

   

Simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/sim_8_bit_Fig_12_20_Full_Adder_simulation.JPG

   

Here are the Lab 7 file: lab7.zip

   


Back-Up

   
I have backed up my Lab 7 to both my UNLV student drive and Google drive.
   
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Back-up1.JPG
   
http://cmosedu.com/jbaker/courses/ee421L/f16/students/miyajis/Lab%207/Backup2.JPG
   

 

 

   
   
   
   
   
   
   

Return to Sharyn's Labs

Return to EE421L Labs