Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. If a processor addresses a maximum of (2 to the power of 20) bytes of memory,

ID: 641508 • Letter: 1

Question

1. If a processor addresses a maximum of (2 to the power of 20) bytes of memory, then, what is the maximum number of 16-bit words that can be stored in this memory?

2. Convert the following base 12 number "A1B" to decimal. Assume it is unsigned.

3. If a certain processor has a system frequency of 100 MHz, what is the clock period?

4. Write the code to implement the expression

A = (B + C) * (D + E)

On 3, 2, 1, and 0 address machines. In accordance with programming language practice, computing the expression should not change the value of its operands.

5. Compare the number of memory accesses for data needed to compute the expression by the four machines of question 3. A = (B + C) * (D + E)

6. What must an Instruction specify?

7. Instructions can be devided into 3 classes:

8. What is the meaning of the following RTN statement:

(OP:=12) R[ra] <-----R[rb]+R[rc]:

9. Describe the following RTN statements:

a. IR <31..0>

b. OP<4..>:=IR<31..27>

10. What decimal value does the binary word 1010 1111 0101 0100 have when it represents an:

a. Unsigned integer

b. 2's compliment

Explanation / Answer

1)6
2)10112
3)clock ycle is 0.01 sec=10ms
4)
0 address
PUSH D
PUSH E
ADD
PUSH C
PUSH B
ADD
MPY
POP A
6)
An instruction set, or instruction set architecture (ISA), is the part of the computer architecture related to programming, including the native data types, instructions, registers, addressing modes, memory architecture, interrupt and exception handling, and external I/O.

7)Data handling and memory operations, Arithmetic and logic operations, Control flow operations

8)register transactions

10)
when is is sugned it looks like 1111 1010 1111 0101 0100
two complement

1010 1111 0101 0100
first 1s complement 0101 0000 1010 1011
then add 1
0101 0000 1010 1111