0% found this document useful (0 votes)
106 views3 pages

Assignment 1

The document contains 10 questions regarding the basic operations of a computer including register transfers, logic gates, instruction codes, memory addressing, and register arithmetic. Question 1 asks to draw the logic diagram to implement different operations on a JK flip-flop. Question 2 asks to provide the hexadecimal codes and explain three 16-bit instructions. Question 3 asks about the interrupt handling mechanism.

Uploaded by

jixxy jax
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views3 pages

Assignment 1

The document contains 10 questions regarding the basic operations of a computer including register transfers, logic gates, instruction codes, memory addressing, and register arithmetic. Question 1 asks to draw the logic diagram to implement different operations on a JK flip-flop. Question 2 asks to provide the hexadecimal codes and explain three 16-bit instructions. Question 3 asks about the interrupt handling mechanism.

Uploaded by

jixxy jax
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment-1

Q1. The operations to be performed with a flip-flop F (not used in the basic computer) are
specified by the following register transfer statements:
xT3: F  1 ; Set F to 1
yT1: F 0 ; Clear F to 0
zT2: F 𝐹̅ ; Complement F
wT5: F G; Transfer value of G to F
Otherwise, the content of F must not change. Draw the logic diagram showing the connections
of the gates that form the control functions and the inputs of flip-flop F. Use a JK flip-flop and
minimize the number of gates.

Q2. For each of the following 16-bit instructions, give the equivalent four-digit hexadecimal
code using basic computer instruction format and explain in your own words what it is that the
instruction is going to perform.
a) 0001 0000 0010 0100
b) 1011 0001 0010 0100
c) 0111 0000 0010 0000
Q3. An output program resides in memory starting from address 2300. It is executed after the
computer recognizes an interrupt when FGO becomes a
1 (while lEN = 1).
a) What instruction must be placed at address 1?
b) What must be the last two instructions of the output program?

Q4. The outputs of four registers R0, R1, R2 and R3 are connected through 4-to-1-line
multiplexers to the inputs of fifth register R5. Each register is 8 bits long. The required transfers
are dictated by four timing variables T0 through T3 as follows:
T0: R5 ← R0
T1: R5 ← R1
T2: R5 ← R2
T3: R5 ← R3
The timing variables are mutually exclusive, which means that only one variable is
equal to 1 at any given time, while the other three are equal to 0. Draw a block diagram
showing the hardware implementation of the register transfers. Include the connections
necessary from the four timing variables to the selection inputs of the multiplexers and
to the load input of register R5.

Q5. Draw the block diagram for the hardware that implements the following statements:
x + yz: AR ← AR + BR
where AR and BR are two n-bit registers and x, y and z are control variables. Include
the logic gates for the control function.

Q6. The adder-subtractor circuit has the following values for input mode M and data inputs A
and B. In each case, determine the values of the outputs: S3, S2, S1, S0 and C4.
M A B
a. 0 0111 0110
b. 0 1000 1001
c. 1 1100 1000
d. 1 0101 1010
e. 1 0000 0001

Q7. The content of PC in the basic computer is 3AF (all numbers are in hexadecimal). The
content of AC is 7EC3. The content of memory at address 3AF is 932E. The content of memory
at address 32E is 09AC. The content of memory at address 9AC is 8B9F.
a. What is the instruction that will be fetched and executed next?
b. Show the binary operation that will be performed in the AC when the instruction is
executed.
c. Give the contents of registers PC, AR, DR, AC, and IR in hexadecimal and the values of E, I,
and the sequence counter SC in binary at the end of the instruction cycle.
Q8. The content of AC in the basic computer is hexadecimal A937 and the initial value of E is
1. Determine the contents of AC, E, PC, AR, and IR in hexadecimal after the execution of the
CLA instruction. Repeat 11 more times, starting from each one of the register-reference
instructions. The initial value of PC is hexadecimal 021 .
Q9. The 8-bit registers AR, BR, CR, and DR initially have the following values:
AR= 1 1 1 10010
BR= 1 1 1 1 1 1 1 1
CR =101 11001
DR=1 1 101010
Determine the 8-bit values in each register after the execution of the following
sequence of microoperations.
AR  AR + BR Add BR to AR
CR  CR ʌ DR, BR BR + 1 AND DR to CR, increment BR
AR  AR - CR Subtract CR from AR
Q10. The content of AC in the basic computer is hexadecimal A937 and the initial value of E
is 1. Determine the contents of AC, E, PC, AR, and IR in hexadecimal after the execution of
the CLA instruction. Repeat 11 more times, starting from each one of the register-reference
instructions. The initial value of PC is hexadecimal 021 .

You might also like