Homework 1 is due Wednesday 9/10 at 5:00pm in the box in 283 Soda. Please include
the TIME and TA NAME of the DISCUSSION section that you attend as well as
your NAME, STUDENT ID and LOGIN. Homeworks and labs will be handed back
in discussion sections.
Homework Policy:
Unless otherwise noted, all questions refer to the Beta version of COD.
Questions 1.51-3, 3.17, 3.29, 3.30 are located in the old (2nd Edition) of COD. We have scanned the relevant pages and made them available here but only to machines on the Berkeley network.
B.15: Construct the truth table for a four-input even-parity function. TA Note: An even-parity function is one that counts the number of ones in the input and outputs a 1 if there are an odd number of 1s in the input and a 0 if there are an even number of 1s in the input.
B.21: A friend would like you to build an "electronic eye" for use as a fake security device. The device consists of three lights lined up in a row, controlled by the outputs Left, Middle, and Right, which, if asserted, indicate that a light should be on. Only one light is on at a time, and the light "moves" from left to right and then from right to left, thus scaring away thieves who believe that the device is monitoring their activity. Draw the graphical representation for the finite state machine used to specify the electronic eye. Note that the rate of the eye's movement will be controlled by the clock speed (which should not be too great) and that there are essentially no inputs.
B.22: Assign state numbers to the states of the finite state machine you constructed for Exercise B.21 and write a set of logic equations for each of the outputs, including the next state bits.