Binary Coded Decimal Display

For the Binary Coded Decimal Display assignment we will be designing a standard binary counter that we can display in hexadecimal or binary coded decimal based on a switch input. Below is a list of recommended steps to complete this assignment:

  1. Create a binary counter that counts from 0x0 to 0x2709 (0 to 9,999).
  2. Test the binary counter on your development board to verify that it is working properly.
  3. Design a ‘Shift and add 3’ BCD converter that converts binary inputs to BCD outputs.

Combine both designs so that based on the switch input your counter either counts in hexadecimal or binary coded decimal.

Setup

If your development board has a 4-digit on-board 7 segment display such as the BASYS 2 or BASYS 3 development board you can just use that. Otherwise you will need to connect a 4 digit 7 segment display. See the schematic setup below:


See the BOM below for components I used during the demonstration of this lab.


Verification

To verify that your design is working properly when you start running the design you will see the 7-segment display incrementing in hexadecimal or BCD format based on the Slide Switch position. See the table below: