Lab Project - ECE 421L
Operation of the Detector
The final project for this lab had us design a detector circuit. This dectector will accept a 6-bit serial input and compare it to a predefined sequence. Ifthe input sequence matches, the detector w ill output a signal verifying the match and will continue to do so until a new bit is receieved. In order to create the device, two main components are needed: a D Flip-Flop, and a 6-bit AND gate. Having the D Flip-Flop allows us to store a bit and by having six of these Flip-Flops allows us store the six bit sequence that received at the input of the detector. These six bits could then be routed into an AND gate which would output a signal if the expected six bit sequence was received.
Operation of the D Flip-Flop
The Flip-Flop receieves a signal from the input terminal which can be see on the schematic below. This signal is not allowed to enter the flip-flop until clock sends a value of "0" and allows the signal to enter into the first section. When a value of "1" is received, the first Transmission Gate shuts off and captures the signal in the first section also at the same time, the second Transmission gate (seen at the top left of the schematic) turns on and allows the signal to flow in between the two inverters. These inverters act as a buffer and store the signal until a the clock changes from "0" to "1" again. When this happens, the third transmission gate turns on and allows the signal from the inverters to flow to the right side of the schematic to the next pair of inverters. When the signal changes back to "0", the third transmission gate shuts off and the fourth turns on which allows the signal to pass through the second pair of inverters. This stores the input signal on the right side of the schematic and allows it to be output at Q and Q_bar. Q_bar is the compliment of the input signal.
D Flip-Flop schematic
Simulation of the D Flip-Flop
The following is the inverter that was used in the creation of the D Flip-Flop, 6-bit AND and buffer
Creation of the 6-bit AND gate
The 6-bit and gate follows a similar structure to the 2-bit and gate we used throughout the course. The main difference is obviously the amount of inputs needed. For a 6-input AND gate, 6 PMOSs and NMOSs are needed. The NMOS devices are connected serially and the PMOS devices are connected in parallel. The schematic and symbol of the device can be seen below.
Simulation of the six-bit AND
The six-bit AND gate functions similarly to the two-bit AND gate in that if any of the inputs recieves a value of "0" the output of the AND gate will output a value of "0"as well. The simulation shows a scenario where all of the inputs except for one are tied to a value of "1". The last input alternates between "0" and "1" to change the output of the AND gate. As we can see from the simulation results below, the device functions as expected and switches outputs when the last input switches.
Creation of the Buffer
As we can see from the simulations, the input that occurs before the sequence occurs does not matter and does not influence the detection of the sequence. Also we can see that the detect signal goes back to being "0" once a new value is read in. This is because each of the bits is propagated which causes the sequence to no longer match.
This is the end of part 1.
Layouts
The layout of every device used in the schematic of the sequence detecting circuit can be seen below.
Inverter Layout and Extracted view
AND Gate Layout and Extracted view
Here is the layout of the six-bit AND gate, with the DRC results
And here is the extracted view.
And here is the LVS result to ensure that the layout matches the schematic.