Professional Documents
Culture Documents
Chapter 3: Exercises 3.19; 3.22; 3.24; 3.25; 3.31; 3.32; 3.33; 3.34; 3.35
3.19
Figure 3.36 is a simple combinational circuit. The output value depends ONLY on the input values as
they currently exist. Figure 3.37 is an R-S Latch, a logic circuit that can store information. That is,
if A, B are both 1, the value of D depends on which of the two (A or B) was 0 most recently.
3.22
S0
3.24
a) Input x allows us to choose which bits are applied to the second adder input:
if x = 0, then bits B0 to B3 are selected, i.e. S = A + B;
if x = 1, the bits C0 to C3 are selected, and S = A + C
In other words, x selects between the two operations (A + B) and (A + C)
b) The key to solving this is to recognize that subtracting corresponds to adding the two's
complement, and that we obtain the two's complement by inverting each bit and adding 1.
In this case, we take each bit of the multi-bit number B, and invert it; the inverted bit then
becomes the input C of part a); finally, we add 1 by applying a 1 to the carry input of column 0.
3.34
a) The address space is 4, but only 3 of those locations are actually populated with memory circuits.
In a real system, an attempt to address location 3 (11) would generate an exception: it is in
principle a valid 2-bit address, but there is nothing "there".
b) 4 bits
c) 0001
3.35
Total bits of storage = (2^22) * 3 bits = 4 Mbits * 3 = 12 Mbits = 12,582,912 bits