Docsity

Implementing a 4-bit Binary Comparator as an Iterative Circuit using VHDL in ECE 241, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 241 – Iterative Circuits
Objective
Use structural VHDL to implement a binary comparator as an iterative circuit.
Pre-Lab (5 pts)
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.
Experiment (10 pts)
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.
1. Implement the comparator with VHDL in the Xilinx ISE tools.
2. Perform post-synthesis simulation of your design.
3. Download your design to the Digilent board and verify using switches and LED.
Report (5pts)
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.

Partial preview of the text

Download Implementing a 4-bit Binary Comparator as an Iterative Circuit using VHDL in ECE 241 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 241 – Iterative Circuits

Objective

Use structural VHDL to implement a binary comparator as an iterative circuit.

Pre-Lab (5 pts)

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.

Experiment (10 pts)

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.

  1. Implement the comparator with VHDL in the Xilinx ISE tools.
  2. Perform post-synthesis simulation of your design.
  3. Download your design to the Digilent board and verify using switches and LED.

Report (5pts)

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.