This is an old revision of the document!
Lab 1 - Combinational Circuits. Behavior level.
Exercises
In order to implement the exercises, use the lab archive below, considering the simulator that you are using. The files already have a Xilinx ISE / Vivado project that you are able to run; in addition, for this practice you already have a testing module and an integrated checker. Follow the instructions and hints below and the zones marked with TODO in the corresponding files.
Lab practice
Implement a 8 bit Adder, with 2 inputs and one output.
The implementation shall contain only continuous assignments
The implementation shall use an always@(*) block
Add extra stimuli in order to have the carry bit exercised
Implement a 4 bit Comparator. This module has 2 inputs and 3 outputs ( less than, equal, grater than)
Implement a 4:1 Multiplexer. Try to explain the generated waveform
The implementation shall include a case construction.
Let's make this tricky. Implement the multiplexor using the ' ? ' operator.
Home assignment
Work in progress…
(2p) Change the adder
(4p) Construct a multiplier
(3p) Change the comparator - implement using if statements
(4p) Mini - ALU
Resources