
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!

Use structural VHDL to implement a binary comparator as an iterative circuit.
Turn in a detailed sketch of your comparator (hand-drawn and photocopied is acceptable), showing how the slices are interconnected, as well as the internal logic of each slice.
A binary comparator, like an adder, can be implemented as an iterative circuit. Implement a 4-bit comparator (unsigned numbers) as an iterative circuit with four, one-bit-slices. (see p. 460 of Wakerly) Each bit-slice should compare two single-bit inputs and combine the comparison result with the results of previous bits to produce three outputs: Greater Than (GT), Less Than (LT), and EQual (EQ). The output logic of an individual slice will depend upon whether the outputs propagate from lsb to msb, or vice versa.
Turn in a brief, professional report that describes your design process and results. Comment on the “efficiency” of VHDL coding styles, e.g., dataflow versus structural. Elaborate on any problems you encountered. Finally, attach to your report hardcopies of your VHDL, post-synthesis simulation, and the design summary.