CompOrg Fall 2001

Homework #3 - Logic Design

Due Date: October 5th by 4:00PM

Assignment

You are to design a 4 bit counter. The counter is a component that has 2 inputs labeled INC and CLEAR, and 4 outputs labeled C3 - C0. The operation of the counter is described in detail below - the general idea is that outputs represent a 4 bit binary number and when the INC input becomes 1, the number represented by the outputs increases by 1. When the clear input becomes 1 the outputs should all be set to 0 (the number represented by the 4 outputs is 0).

Here is a more specific description of the operation of the 4-bit counter:

Here is a picture of counter with push buttons connected to the inputs:

The idea is that INC input is 0 unless the user is pressing the corresponding button. When the user is pressing the button the value of the INC input is 1, when the button is released the INC input returns to 0. Likewise for the CLEAR input and corresponding button.

Your design must include a logic diagram showing what gates are needed in the counter and how they are connected. You should also include a brief text description of your design and any supporting boolean equations or truth tables. The description should be detailed enough to explain how your design works - this is important since we might not be able to see why your design would work! (please remember that the TAs will be grading lots of these and can't spend 1/2 hour on each one).

You can use any of the gates we have discussed in class (AND, OR, NAND, NOR, XOR), you can also use multiplexors and decoders, S-R latches and D flip-flops, but you must make sure you show the connections to these components clearly (label all the inputs and outputs so we can tell how you are using the components).

Things you will need to know

Submitting

What you need to submit

You should submit hardcopy of your design and description to Dave in class, in his mailbox in the CS office in Lally, or in either of the TAs mailboxes in the CS lounge in Amos Eaton.

Grading

The correctness of the design is worth 75% (will it function properly?). Partial credit will be given based on the portion of the design that is correct. The other 25% will be based on your supporting desciption of the design.

Notes and Hints