

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Lab 4 : Part I due Thurs. Feb. 26, Part II due Thurs. March 5
Purpose
The purpose of this lab is to: 1) Develop a fast design for an even-parity detector using full adders (FAs) and determine its delay analytically and empirically; 2) Describe tree-structured circuits using nested generate statements; 3) Use of multiple processes (used in the TB).
Design Problem
one of the following type of 2- or 1-input gates: AND/OR/NAND/NOR/NOT. Note that the parity detector discussed in class was an odd-parity detector. Clearly show all your work in obtaining the final design, and give the schematic of your design for a 27-bit parity detector. 100 Hint: Determine if the basic operation/function on 3 bits is associative or not. In the latter case, use the D&C approach; the stitch-up function will be the basic operation on 2 bits. In the former case, also use D&C. However, you will need to determine what the stitch-up function is. Note that D&C implies
have to design the circuit.
(3) Analytically determine the number of FAs and the other gate, if any, that you use in your design for
ter(s), that correspond to the above-specified delay โformulaโ for XOR/XNOR gates, to pass down to the FA component which passes it (them) down to the XOR-gate component it uses. 200
Test Bench
Part I: Demonstrate the working of the 27-bit even-parity detector using a test bench in which 41 27-bit
bench yourself. 100 Part II:
(1) Test Bench : Instantiate a 3-bit, a 9-bit, a 27-bit, a 81-bit and a 243-bit even-parity detector in a test bench that provides 41 random test inputs to the above even-parity detectors (inputs will repeat in the case of the 3-bit circuit), respectively. Use five different processes to generate the different inputs to the five even-parity detectors. Furthermore, synchronize the input assertion across the five processes
delay of the 243-bit even-parity detector). You will need to create this test bench yourself.
integer and thus the size returned by the procedure uniform d( ) that you are using for generating
parts, get the random std logic vector for each part, and then concatenate them using the โ&โ operator. Across these test inputs do the following in the test bench: Determine from the graphical interface, the worst-case simulation delay, for each of the
(you can use Excel (on PCs only) or gnuplot (latter is available on Unix/Linux machines as well as PCs) to do the plots. What kind of growth function do you see? Discuss. 150 (2) Compare the analytical and simulation delays for the 27-bit even-parity detectors you have obtained for your CLA and comment on any discrepancy giving possible reasons for it. 50