This Exercise is based on the material covered in Real Digital Project 7, which can be found in the red tab to the right. A downloadable document for this exercise is available in the orange tab to the right. The mention of grading within the downloadable document is due to the exercise material being used as course work for an electrical engineering class at a university.
Design and simulate an 8-bit comparator using the WebPACK VHDL environment. (Hint: you may use behavioral design methods).
Design and simulate an 8-bit RCA using structural methods and the WebPACK VHDL environment (Hint: the FA and HA bit-slice modules can be designed as behavioral modules and used as components in a separate structural VHDL source file).
Design and simulate an 8-bit CLA using structural VHDL methods.
Use the Xilinx tools to design, simulate and implement a structural 4-bit adder/subtractor module. Download the design to the Digilent board, using four slide switches to set the A operand, four slide switches to set the B operand, and a pushbutton to select add or subtract. Use five LEDs for circuit output. Check enough cases to be sure your circuit works.
Display the output from problem 4 on a seven-segment digit.
Design an underflow/overflow detect circuit that does not need to access the carry-in signal to the most-significant bit, and add that circuit to your design from problem 4. Drive an LED to show when an output is in error.
Using your HA, FA, and 8-bit CLA components, implement a 4-bit multiplier using the Xilinx tools. Simulate the multiplier using several representative cases stored in a test bench waveform file. Implement the multiplier in the Digilent board using the eight slide switches as inputs (four switches per input) and the eight LED's as outputs.
Design and implement a 4-bit ALU using the Xilinx VHDL tools and the Digilent board. The ALU must perform the operations shown in the operation table presented in Real Digital Project 7. Assign inputs to slide switches and pushbuttons as you see fit, and assign outputs to LEDs or the seven-segment display.