pete > courses > CS 202 Spring 24 > Tier 2, Phase 1, Problem 04: no adjacent ones


Tier 2, Phase 1, Problem 04: no adjacent ones

You will construct a circuit with 4 inputs that outputs 0 if any two adjacent inputs are both 1, and 1 otherwise. So if the four inputs are 0, 0, 1, 1, then the output should be zero; but if the four inputs are 1, 0, 0, 1, then the output should be one.

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 no_adjacent_ones.circ and the name of the test file must be test-vector.txt. The circuit within must have exactly four inputs, labeled "A", "B", "C", and "D", respectively, and one output, labeled "no_adjacent_ones".

You are limited to the following Logisim components (though you are not required to use them all):

Submission Instructions

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

$ 202 submit t2p1p04 no_adjacent_ones.circ
$ 202 submit t2p1p04 test-vector.txt

Submissions will not be accepted after 2pm on Wednesday, 28 February.

Last modified: