Lab Project

Design a circuit that takes a serial input and detects the sequence 101011

 

Download project library (labProj.zip) here

 

Authored by Tyler Huddleston, huddle10@unlv.nevada.edu

11/30/2016

 

 


 

 Part 1: 101011 Sequence Detector schematic and simulations

  

Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/detector_schematic.JPG

Topology:
  • The sequence detector has 3 pins:
    • in (input) - sequential logic signal input into detector
    • clk (input) - clock signal
    • out (output) - logic value that outputs HIGH if the sequence has been detected and LOW otherwise
  • It consists of 6 D flip-flops, a 6-input NAND gate, and an inverter:
    • D flip-flops: store and output a bit for one clock cycle
      • output Q or Q_N to NAND gate depending on which bit is required at the D flip-flop to detect the sequence
    • 6-input NAND gate outputs LOW if the Q or Q_N values at its inputs are all HIGH, and out goes HIGH after inverter
      • NAND gate and inverter were chosen over an AND gate, because the AND gate is a NAND gate with an inverter and if the AND were to be used in a NAND operation another inverter would have to be added to it - that is, to achieve an AND operation with a NAND and inverter requires less components than achieving a NAND operation with an AND and an inverter
Operation:
  • Sequential input into 'in' is propagated through the D flip-flops
  • To detect 101011, the D flip-flops are arranged in reverse order, such that the least significant bit of the sequence is at the end of the register - that is, the least significant bit is detected by the right-most D flip-flop
  • If the D flip-flop of the register is to detect a 1 in the sequence, its Q output is sent to the NAND gate
  • If the D flip-flop of the register is to detect a 0 in the sequence, its Q_N output is sent to the NAND gate
  • The NAND and inverter operate as an AND gate, such that when all of its inputs are HIGH, the output, 'out', is HIGH, indicating that the sequence has been detected

 

 

Simulation

 

Simulation Schematic

http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/detector_simSchematic.JPG

  • A piecewise function of various logic levels and a 50ns period clock signal are input to the detector circuit

Simulation Results

http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/detector_sim.JPG

  • Operation of the detector works as expected:
    • it is LOW when 101011 has not been input to the register
    • it is HIGH when 101011 has been input to the register

  


Sequence Detector Modules:

 

D Flip-Flop

Schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/D_FF_schematic.JPG
Simulation schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/D_FF_simSchematic.JPG
Simulation results
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/D_FF_sim.JPG

 

6 input NAND

Schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/nand6_schematic.JPG
Simulation schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/nand6_simSchematic.JPG
Simulation results
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/detectorCaptures/nand6_sim.JPG

 
 

Part 2: layout detector circuit
 

 


Layout of individual modules:

  • Each component was laid out individiually
    • This ensures that each part of the detector DRCs and LVSs on its own
    • It also makes it easier to construct the detector layout as each component can be instantiated
 
Transmission gate: part of D flip-flop

  • consists of one NMOS and PMOS with drains and sources sharing the same connections 
Layout
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/TG_layout.JPG
DRCs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/TG_DRC.JPG
LVSs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/TG_LVS.JPG
 
D flip-flop
  • Consists of inverters (devices that share same gate on poly layer) and transmission gates 
Layout
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/DFF_layout.JPG
LVSs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/DFF_LVS.JPG
DRCs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/DFF_DRC.JPG
 
Simulating extracted layout: operation is consistent with schematic simulation
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/DFF_ext_sim.JPG
 
 
6-input NAND gate
  • Consists of 6 PMOSs and 6 NMOSs
    • the design can be compacted by overlapping the PMOS devices such that two drains at a time are shared and connected to the other PMOS drains on metal1 in parallel
    • the NMOSs are connected in series from the PMOS section to ground
    • each PMOS shares a gate on the poly layer with an NMOS and makes up an input to the NAND gate
       
Layout
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/NAND6_layout.JPG
DRCs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/NAND6_DRC.JPG
LVSs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/NAND6_LVS.JPG
 
Simulating extracted layout: operation is consistent with schematic simulation
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/nand6_ext_sim.JPG
 

 

 Layout of detector circuit: 

 

http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_layout.JPG

  

Close up of first D flip-flop (most significant bit)
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_layout_cu1.JPG
  • in and clk are connected on metal3
  • vdd and ground are connected on metal1
Close up of NAND gate connectins and 3rd D flip-flophttp://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_layout_cu2.JPG
  • the Q and Q_N outputs of each D flip-flop connec to the input of the 6-input NAND gate

Close up of inverter and 4th D flip-flophttp://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_layout_cu3.JPG
  • the output from the NAND gate is input to the inverter (metal1 route left of the inverter) with the out pin on metal3

 

DRCs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_DRC.JPG
LVSs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_LVS.JPG

  

 Verifying the operation of extracted layout:

Extracted layout simulation matches schematic simulation

http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detector_ext_sim.JPG

  

 

Connecting detector to buffer for chip layout

Schematic
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detectorBuffer_schematic.JPG
Layout
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detectorBuffer_layout.JPG
  • buffer on top right
DRCs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detectorBuffer_DRC.JPG
LVSs
http://cmosedu.com/jbaker/courses/ee421L/f16/students/huddle10/proj/layoutCaptures/detectorBuffer_LVS.JPG

 


  

Return to EE 421L Labs

Return to my Labs Index