Indian Institute of Technology Goa: EE 232 Digital Circuits and Lab
Indian Institute of Technology Goa: EE 232 Digital Circuits and Lab
General instructions:
• Prepare a minimal report consisting of all the results in PDF format and upload the same. You have
to include the screenshots of the generated netlist and ModelSim waveforms.
• Along with the report upload a zip file containing your VHDL files for all the simulations.
• Make sure that the report and the zip file you upload have your name and roll number on them. I
hope I don’t have to remind you that this is not a group activity.
• You are free to assume any missing data, but state them clearly in your solution. Feel free to use
the Piazza forum to discuss any doubts, but not the solutions.
1. Design an adder/subtractor unit which operates on two 4-bit XS3 encoded operands and gives out
an 8-bit BCD encoded output. Assume first operand is always greater than the second one. Make
use of the building blocks you have already designed for this purpose.
2. Write down a VHDL description for the entity given below, corresponding to your design, simulate
the design, and verify the functionality from the simulations.
3. Write down a VHDL description for the entity given below, instantiating the blocks you have designed
so far. The invalid output indicator should go high whenever the output of the adder/subtractor
module is greater than 9. Simulate your design using ModelSim and verify the functionality.