
EECS 443 – Digital Systems Design
Laboratory 1
January 14, 2008
Exercises
1. Develop a behavioral VHDL model for a 4-1 word MUX. Your model should work with arbitrary
length words and allow the user to specify a word length using a generic. I.e. You should not place
hard constraints on the lengths of inputs and outputs in your implementation, allowing the user to select
an arbitrary length Develop a test bench for your MUX that demonstrates each function and synthesize
your design to FPGA.
2. Develop a behavioral VHDL model for a 1-bit, 2-4 DEMUX. Develop a test bench for your DEMUX
model that demonstrates basic functionality. Do not synthesize your solution to FPGA.
3. Develop a behavioral VHDL model for an n-bit register. It should use a rising-edge triggered clock and
implement LE (load enable), SET and CLEAR signals. Both SET and CLEAR should be asynchronous.
Use a generic in your entity to allow the user to specify the width of the register. Develop a test bench
for your register model that demonstrates basic functionality and synthesize your solution to FPGA.
4. Develop a behavioral VHDL model for an n-bit shift register. Your shift register should implement
functions for LOAD,HOLD,RIGHT SHIFT and LEFT SHIFT. In addition to regular inputs, your shift
register should provide a SHIFT LEFT INPUT and SHIFT RIGHT INPUT that input the value
shifted into the rightmost and leftmost bit respectively. Your register must also include a CLOCK. Use
a generic to allow the user to specify the width of your shift register. Design your register to be a
positive edge-triggered device. Develop a test bench for your VHDL shift register that demonstrates
each function and synthesize your solution to FPGA.
5. Modify shift register design to implement a level triggered device. Modify your original shift register
test bench to demonstrate the distinction between the two shift registers. Do not synthesize your level
triggers shift register to FPGA.
6. Use your register and MUX models to develop a 4-bit grey-code counter. Your counter should imple-
ment LOAD,HOLD,COUNT UP, and COUNT DOWN functions. Your counter should also include an
ENABLE input and a CLOCK input. Design your counter to be a rising edge triggered device. Develop
a test bench for your VHDL shift register that demonstrates each function and synthesize your solution
to FPGA.
1