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 you have on your workstation. 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; the checking will be performed visually during the lab practice. Follow the instructions and hints below and the zones marked with TODO in the corresponding files.
Lab practice
Implement an 8bit Adder, with 2 inputs and one output.
The implementation shall contain only continuous assignments;
The implementation shall use a procedural block;
Hint: Don't forget to consult the basics of Verilog from Lab0 until you are familiarized with the new programming language.
Hint: Follow the proper tutorial for understanding the simulation; skip the test-adding part if needed.
Add extra stimuli in order to have the carry bit exercised.
Implement a 4bit Comparator using only continuous assignments. 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