pete > courses > CS 202 Spring 24 > Tier 2, Phase 1, Problem 07: 2-digit BCD adder


Tier 2, Phase 1, Problem 07: 2-digit BCD adder

We have discussed the unsigned binary method of representing non-negative integers. Another method, binary-coded decimal (BCD), has also been used in the past. In BCD, each decimal digit is represented by its 4-bit unsigned binary representation. So the integer 93 is represented by the bit sequence 10010011.

You will implement a circuit that adds together a pair of two-digit BCD numbers.

Your test-vector.txt file is expected to test all meaningful behavior of your circuit.

Submission Requirements

You will submit a single Logisim-Evolution circuit file and a single text file containing tests that verify your circuit’s correctness. The name of the circuit file must be bcd_adder.circ and the name of the test file must be test-vector.txt.

The main circuit within bcd_adder.circ must have separate inputs for each digit of the two numbers and separate outputs for each digit of the sum. Naming of the inputs and outputs is up to you, but choose labels that the graders will be able to accurately interpret.

You are limited to components from the following Logisim libraries:

You may add as many subcircuits as you deem appropriate.

Submission Instructions

Copy the bcd_adder.circ and test-vector.txt files to weathertop and then run:

$ 202 submit t2p1p07 bcd_adder.circ
$ 202 submit t2p1p07 test-vector.txt

Submissions will not be accepted after 2pm on Friday, 15 March.

Last modified: