Title:
Binary-to-BCD Converter
Objectives:
Design a binary-to-BCD converter circuits using CAD tools
Parts:
- PC running Quartus II
- Altera DE2 Board
Procedure:
- Specification. Design a 5-bit binary to two BCD digits converter with five inputs,
x4, x3, x2, x1, and x0 and eight total outputs, d23, d22, d21, d20, d13, d12, d11, and d10. All signals should use positive logic.
- Define Inputs and Outputs. Draw a block diagram of the circuit showing the inputs
and outputs for the circuit.
- Create truth-table. Generate a truth table that shows the outputs for all possible
input combinations.
- Derive expressions. Derive a minimal SOP expression for each output.
- Create Verilog code. Use the Quartus II text editor to produce Verilog code that implements
the minimal expressions for each output.
- Functional Simulation. Perform a functional simulation of the circuit and verify it
performs correctly.
- Implement. Make appropriate pin assignments so that the input comes from the toggle
switches and output goes to any eight user-controllable LEDs. Compile the circuit
for the Cyclone II FPGA on the DE2 Board (Users Guide).
- Timing Simulation. Perform a timing simulation of the circuit using the same input
combinations used in the functional simulation. Note the propogation delay.
- Download Circuit. Download the circuit into the Cyclone II FPGA on the DE2 board.
- Test. Test the circuit. Record your results in you lab book.
Conclusions:
- Discuss how well the objectives were met.
- Discuss what you learned.