A B'
P2 : A
A B '
P3 : A
A B
P4 : A
AB
Cin=0
Cin=1
D=A+B
D=A+1
D=A-1
D=A+B+1
Chapter 5
1. What is the overall function of a processors control unit?
2. Differentiate between BUN and BSA?
3. What is the difference between a direct and an indirect address instruction?
How many references to memory are needed for each type of instructions to
bring an operand into a processor register
4. A computer uses a memory unit with 256k words of 32 bits each. A binary
instruction code is stored in one word of memory. The instruction has four
parts: an indirect bit, an operation code, a register code part to specify one of
64
registers,
and
an
address
part.
A) how many bits are there in the operation code, the register code part, and
the
address
part?
B) draw the instruction word format and indicate the number of bits in each
part.
C) how many bits are there in the data and address inputs of the memory?
5. Differentiate between hardwired control unit and microprogrammed control
unit.Draw the block diagram of hardwired control unit of basic computer and
explain.
6. What are the various phases of instruction cycle? Explain register transfer for
Fetch phase.
7. The following control inputs are active in the bus system, for each case,
specify the register transfer that will be executed during the next clock
transition:
S
2
S1
S0
LD of
regis
ter
Memo
ry
Adde
r
IR
Read
PC
DR
Write
AC
Add
Chapter 8
1. Convert the following arithmetic expression from infix to postfix notation:
Y= (A+B)*(C+D)
2. Explain different addressing modes.
3. Draw a block diagram of general register organization.
4. Write the sequence of micro-operations required for the bus structure to add a
number to the AC when the number is
a. An immediate operand
b. A direct address operand
c. An indirect- address operand
5. Write a program to evaluate the arithmetic statement: X= (A + B)
*(C+D)*(G+H) by
i. Using three address instructions.
ii. Using two address instructions
iii. Using one address instructions
iv. Using zero address operation instructions.