Professional Documents
Culture Documents
Lecture 10-Exercise
Lecture 10-Exercise
FNA
EX 1. A digital system has 16 registers, each with 32 bits. It is necessary to
provide parallel data transfer from each register to each other register.
(a)How many lines are needed for direct parallel transfer?
(b)How many lines are needed for transfer along a common bus?
(c) Let the registers in memory be designated by R0 to R15. List the sequence
of micro-operations for a transfer of the content of R6 ro R13. (Assuming
registers form a scratch-pad memory)
16 registers
R0 R1 . . . . . R15
B(1-8) B(9-16)
Ex 3. An 8-bit register A has one binary input x. The register operation can be
described symbolically as follows:
P: A8 x, Ai Ai+1, i = 1,2,3,...,7
What is the function of the register? The cells are numbered from left to right.
Ex 4. Draw a block diagram of a bus system connected to four registers with
information transferred serially from any register to any other register. Use a decoder
and a multiplexer to select the source register and a decoder to select the destination
register.
R0 R1 R2 R3
BUS
Ex 5. Draw the logic diagram of a 4-bit register with clocked JK-FFs having control
inputs for the increment, complement, and parallel transfer micro-operations. Show
how the 2’s complement can be implemented in this register.
incr
compl
Ex 6. The content of register A is 1101 and that of B is 0110. Show that either one of
the micro-operation sequences listed below produce the difference 0111.
(a) T1: B B’ (b) T1: B B’
T 2: B B + 1 T2: EA A + B
T3: A A + B ET3: A A + 1
A = 1101
B = 0110
1 1 0 1 0 1 1 0
E A B
Ex 7. Design a typical stage (similar to the figure below) that implements the following
logic operations.
P6 : A A B’ P 8: A (A B)’
P7: A A’ B P9: A (A B)’
İth stage of
Logic Unit
Ai
Bi
KAi JAi
CP
P6 : A B’
0
Ex 7. List the sequence of logic micro-operations required for packing the six
alphanumeric characters HI-LO into 48-bit registers. Use 8 bits per character,
obtained from the 7 ASCII (see table below)bits and an even parity bit in the most
significant position.
Ex 8. Show that the statement
AA+A
symbolizes a shift-left micro-operation.
S: PR 0, S 0, D 0, F 1
F: F 0, if (AR = 0) then (D 1), if (AR ≠ 0) then (R 1)
R: PR PR + BR, AR AR – 1, R 0, F 1
(a) Show that the digital system multiplies the contents of AR and BR and places the
product in BR.
(b) Draw a block diagram of the hardware implementation. Include a start input to flip-
flop S and a done ouptput from flip-flop D.