ECE 595c Computer and Digital Design Assignment 2
Write a Word document discussing the following projects. Submit
supporting Verilog projects. Demonstrate the working projects to
the instructor (and class). If you are not able to complete this
assignment by the due date, submit a progress report documenting your
work to that time.
- Design and implement a DE2 project that demonstrates a binary
to BCD converter. Use the switches SW[15:0] to define the input binary
value and the seven-segment displays to show the resulting decimal
equivalent. For example, if the first five switches are on: 0x1F, the
seven-segment display should read 31.
- Modify the binary to BCD converter project so that it handles
and displays signed values.
- Design and implement a DE2 project that generates simulated
quadrature encoder pulses. Use SW[15:0] to set the quarter-period. Use the
GPIO pins for the output. Use SW3 to change direction. In one
direction, the pulse sequence is 00, 01, 11, 10. In the other
direction the pulse sequence is 00, 10, 11, 01.
- Design, implement, and test a DE2 project that handles
quadrature encoder
pulses using an up/down counter. Start with A and B low. If A goes
high first, increment the count. If B goes high first, decrement the
count. Use the results of the previous exercise to provide sample
encoder pulses.
- Design, implement, and test a DE2 prject that measures the
period of quadrature encoder pulses. Start with both A and B low and measure the
time required for both A and B to go high. Use the 50 MHz clock as the
timer. Use exercise 3 as a source of encoder pulses.
Maintained by John Loomis,
last updated 13 July 2011