Professional Documents
Culture Documents
Mid Semester Model Answer
Mid Semester Model Answer
1. a. Assume a PN flip-flop in which state of flip flop changes as per following. Clear
to 0, Set to 1, No change and Complement when inputs P and N are 00, 01, 10, and
11, respectively. What is the characteristics equation of PN flip flop? Register A
holds the binary information 11011001. Determine the B operand and the logic
micro operation to be performed between A and B to change the value in A to
(i) 01101101
(ii)11111101
Truth Table : [1 Marks ]
Q(t) P N Q(t+1)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
From above truth table :
= (1 – 2 -27) [1 Marks]
b. Add the 8-bit 2’s complement numbers 0110 1111 + 0110 1010.
State the result of the addition (as a binary value), as well as whether overflow
occurred
(i)If the number were treated as signed,
(ii)If the numbers were treated as unsigned.
Show your work to justify the answer.
01101111 + 01101010 = 11011001 [1 Marks ]
C8 = 1
C9 =0 [ 1 Marks ]
( i.e. sign of result is different from sign of inputs or carries are different)
C9= 0 i.e. number representable in 8 bits hence overflow does not occurs [ 1 Marks]
b. How many CSA levels are needed to reduce 32 summands to 2? Draw the pattern
diagram for the same to justify your answer.
[4 Marks]
Section-B ( 20 Marks : Attempt Any Two)
4. a. A computer uses a memory unit with 512K 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.
(i) How many bits are there in the operation code, the register code part and address
part? Draw the instruction word format and indicate the number of bits in each part.
Indirect :1 Bit Operation code: 6 Bits Register code: 6 Bits Address :19
[1 Marks]
(ii)How many bits are there in the data and address inputs of the memory?
Data =32 bits
Address = 19 bits [1 Marks]
[1.5x4=6 Marks]
5. a. Consider the following signed integer numbers.
Multiplicand : 0101 1010 1110 1110
Multiplier: 0111 0111 1011 1000
(i) The numbers are multiplied using the Booth’s algorithm. How many additions
and subtractions are required for the multiplication of the above two numbers? Show
the necessary steps to justify your answer.
(ii)Perform the fast multiplication between abovementioned numbers using bit pair
recoding method.
6. a. Write the sequence of control steps required for single bus structure to add the
contents of the memory location whose address is at memory location SUM to
register R2. Assume that each instruction consists of two words. The first word
specifies the operation and addressing mode and second word contains the number
SUM.
(a) 1: PCout, MARin, Read, Clear Y, Set carry-in to ALU, Add, Zin 3
2: Zout, PCin, WMFC
3: MDRout, IRin
b. Registers R1 and R2 of a computer contain the decimal values 1200 and 4600.
What is the effective address of the memory operand in each of the following
instructions?
Move 20(R1),R5
Add -(R2),R5
Subtract (R2)+,R5