



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Study Questions for Digital Logic PAC II ANSWERS Digital Logic
0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
o0 = (not(i2) AND not(i1) AND not(i0)) OR (i 2 AND i1) o1 = (not(i2) AND not(i1) AND i0) OR (i 2 AND i1) o2 = (not(i2) AND i 1 AND not(i0)) OR (i 2 AND i1) o3 = (not(i2) AND i 1 AND i0) OR (i 2 AND i1) o4 = (i 2 AND not(i1) AND not(i0)) OR (i 2 AND i1) o5 = (i 2 AND not(i1) AND i0) OR (i 2 AND i1)
This is not necessarily the same value that appears on the “Write Data” during the current clock cycle. b. If your answer to part b was “yes”, then describe a way of reading the old value of a register at the same time as writing a new value to the same register. If your answer was “no”, then indicate (precisely) when the value of “Write data” would appear on the “Read data 1” line, assuming that the values of “Read register number 1” and “Write register” are held constant. Registers are constructed from D Flip-Flops, which don’t change their output until after falling edge of the clock. Thus, the value written to a register using the “Write Data” line would not appear on the registers output (i.e. the “read data” line) until after the falling edge of the clock.
___ ___ ___ ___**
l. T A circuit diagram showing a multiplexer with sixteen 32-bit input lines and four select lines is actually referring to an array of 32 multiplexers, each having sixteen one-bit input lines and four select lines. m. F Doubling the number of registers of a register file (but leaving everything else the same) will double the number of input lines to the register file. n. T In a DRAM, all cells have to be periodically refreshed, not just the ones that have been read. o. F When shifting a two’s complement number to the left, an overflow can only occur if the number is negative, since positive numbers have a zero in the leftmost bit. [Here’s why: Shifting a large positive number to the left can result in a negative number.] p. T To perform the operation A – B, where A and B are numbers represented in two’s complement, one can build hardware to perform the following steps: flip the bits of A, add B with a carry-in of 1, flip the bits of the result, and then add 1.