Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Electronics & Communication Engineering Department

Subject: Computer Architectures Sessional I


Course No.: ECPE-42 Semester: 4th

1. Write a program to evaluate the arithmetic statement

i. Using a general register computer with three address instructions.


ii. Using a general register computer with two address instructions.
iii. Using an accumulator type computer with one address instructions [3]

2. Consider 16 bit representation as given below [3]

3. Design an arithmetic circuit with one selection variable S and two n-bit data inputs A and B. The
circuit generates the following four arithmetic operations in conjunction with the input carry Cin. Draw
the logic diagram for the first two stages. [3]
S Cin=0 Cin=1
0 D = A + B (add) D = A + 1 (increment)
1 D = A – 1 (decrement) D = A + B +1 (subtract)

4. Registers R1 and R2 contain the decimal numbers 2000 and 4 decimal numbers (last 4
numbers of your roll no. (LSB)) respectively, before each of the following addressing modes is
used to access a memory operand. What is the effective address and addressing mode in each
case? [4]
a) Load 20(R1),R5 b) Move #3000,R5 c) Store R5,30(R1,R2) d) Add -(R2),R5 e) Sub
(R1)+,R5

5. A computer uses a memory unit with 512K words of 64 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 128 registers, a n d an address part.
How many bits are there in the operation code, the register code part, and the address part? Draw
memory map for the 512KB ROM, starting address is last 4 numbers of your roll no. (LSB part),
(assume roll no. are in HEX). [2]

You might also like