Skip to content

ENGR 2705 - Lab #8

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:
  1. 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.
  2. Define Inputs and Outputs. Draw a block diagram of the circuit showing the inputs and outputs for the circuit.
  3. Create truth-table. Generate a truth table that shows the outputs for all possible input combinations.
  4. Derive expressions. Derive a minimal SOP expression for each output.
  5. Create Verilog code. Use the Quartus II text editor to produce Verilog code that implements the minimal expressions for each output.
  6. Functional Simulation. Perform a functional simulation of the circuit and verify it performs correctly.
  7. 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).
  8. Timing Simulation. Perform a timing simulation of the circuit using the same input combinations used in the functional simulation. Note the propogation delay.
  9. Download Circuit. Download the circuit into the Cyclone II FPGA on the DE2 board.
  10. Test. Test the circuit. Record your results in you lab book.
Conclusions:
  1. Discuss how well the objectives were met.
  2. Discuss what you learned.