Professional Documents
Culture Documents
1. All of the following are RAM characteristics except: <C>Volatile memory. <C+>not erasable memory. <C>it is Read-Write Memory. <C>Write and Read are accomplished by electrical signal. <C> Random Access Memory. 2. All of the following are ROM characteristics except: <C>it is not erasable. <C>it is Read Only Memory. <C>it is a Random Access Memory. <C>it is non-volatile. <C+> it is Read-Write memory 3. All of the following are flash memory characteristics Except: <C>it is read mostly memory. <C>it is non-volatile. <C>Write and Read are accomplished by electrical signal. <C>it is random access memory. <C+> Not erasable memory
2. All of the following are DRAM characteristics except: <C>it is a volatile memory. <C>Memory cell requires one transistor. <C>Refreshing is required to hold the data on the cell. <C+>Data is stored in flip-flops <C> DRAM is slower than SRAM. 3. All of the following are SRAM characteristics Except: <C>Each memory cell requires at least 6 transistors. <C>No refreshing is required to hold the data on the cell. <C+>SRAM is slower than DRAM. <C>it is a volatile memory. <C>Each memory cell represents a flip-flop.
2. Suppose a processor is using one address instructions with an accumulator. If Accumulator is initially loaded by value AB00h, what will be the contents of Accumulator after executing the following instructions with the corresponding addressing modes. Some of memory locations contents are given below: Word address 3000h 3001h 3002h 3003h Word contents 3001h A000h 3003h 3001h
a. LOADI # 3002h; Immediate Addressing <C+>3002h <C>3003h <C>A000h <C>3001h <C> AB00h <C>3003H b. LOAD 3001h; Direct Addressing <C>3001h <C+>A000h <C>AB00h <C>3003h <C>3002h <C> 3000h c. LOAD (3002h); Indirect Addressing <C>3002h <C>3003h <C+>3001h <C>A000h <C> AB00h <C> 3000h
3. Suppose a processor is using one address instructions with an accumulator. If Accumulator is initailly loaded by value AB00h, what will be the contens of Accumulator after executing the following instructions with the corresponding addressing modes. Some of memory locations contents are given below: Word address 5000h 5001h 5002h 5003h Word contents 5001h B000h 5003h 5001h
a. LOADI # 5002h; Immediate Addressing <C+>5002h <C>5003h <C>AB00h <C>B000h <C> 5001h <C>5000h b. LOAD 5001h; Direct Addressing <C>5001h <C+>B000h <C>AB00h <C>5003h <C> 5002h <C> 5004h c. LOAD (5002h); Indirect Addressing <C>5002h <C>2003h <C+>5001h <C>B000h <C> 5000h <C>AB00h
3FF 0FFFh h 400h 1000h 401h 1001h 402h 1002h The first part of the first word indicates that this instruction loads a value into an accumulator. In addition to the Accumulator, assume there is only one general purpose register R1 and its contents is 400h. There is also a base register contains the value 100h. The value 0200h in location 201h may be part of the instruction. a. What is the effective address if address mode is PC relative: <C>202h <C>1002h <C+>402h <C>499h <C> 100h <C>300h b. What is the effective address if address mode is Base: <C>202h <C>100h <C>200h <C+>300h <C> 402h <C>202h c. What value is loaded into Accumulator if the address mode is direct register: <C+>400h <C>200h <C>1000h <C>700h <C> 300h <C>202h
2. Consider a 16 bit processor in which the following appears in main memory, starting at location 200h: 200h Load to AC 201h 0300h 202h Next instruction 4FF 0FFFh h 500h 1000h 501h 1001h 502h 1002h The first part of the first word indicates that this instruction loads a value into an accumulator. In addition to the Accumulator, assume there is only one general purpose register R1 and its contents is 502h. There is also a base register contains the value 100h. The value 0300h in location 201h may be part of the instruction. a. What is the effective address if address mode is PC relative: <C>402h <C>1002h <C+>502h <C>499h <C> 1002h <C>501h b. What is the effective address if address mode is Base: <C>202h <C>100h <C>300h <C+>400h <C> 402h <C> 499h c. What value is loaded into Accumulator if the address mode is direct register: <C+>502h <C>200h <C>300h <C>700h <C> 400h <C>402h
3. Consider a 16 bit processor in which the following appears in main memory, starting at location 200: 200h Load to AC 201h 0100h 202h Next instruction 2FF h 300h 301h 302h 0FFFh 1000h 1001h 1002h
The first part of the first word indicates that this instruction loads a value into an accumulator. In addition to the Accumulator, assume there is only one general purpose register R1 and its contents is 302h. There is also a base register contains the value 300h. The value 0100h in location 201h may be part of the instruction. a. What is the effective address if address mode is PC relative: <C>202h <C>1002h <C+>302h <C>2FFh. <C> 1002h <C>100h b. What is the effective address if address mode is Base: <C>1002h <C>100h <C>300h <C+>400h <C> 202h <C> 2FFh c. What value is loaded into Accumulator if the address mode is direct register: <C+>302h <C>202h <C>1002h <C>700h <C> 1002h <C>100h
Where the instructions: I1 CMP R1, R2 I2 JZ I8 results in branching to instruction I8 if the contents of registers R1 & R2 are equal. Assume the above code will be executed in a pipeline with the following segments: FI: Fetch Instruction DI: Decode Instruction CO: Calculate Operand FO: Fetch Operand EI: Execute Instruction WO: Write Operand If the contents of registers R1 and R2 are equal then the contents of the six segments of the pipeline at the 8th clock cycle are: FI <C> I7 <C> I8 <C> I8 <C> I9 <C> I9 <C+> I9 DI I6 I6 I8 I8 CO I5 I5 FO I4 I4 EI I3 I3 WO I2 I2 I2 I2 -
2. Given the following program code: I1 I2 I3 I4 I5 I6 I7 I8 I9 SUB CMP JNZ OR ADD SHR MUL ADD DIV R1, R2, R3 R4, R5 I9 R7, R8, R9 R10, R2, R8 R11, R3, R6 R12, R3, R8 R1, R6, R9 R4, R4, R8
Where the instructions: I2 CMP R4, R5 I3 JNZ I9 results in branching to instruction I9 if the contents of registers R4 & R5 are not equal. Assume the above code will be executed in a pipeline with the following segments: FI: Fetch Instruction DI: Decode Instruction CO: Calculate Operand FO: Fetch Operand EI: Execute Instruction WO: Write Operand If the contents of registers R4 and R5 are not equal then the contents of the six segments of the pipeline at the 8th clock cycle are: <C> <C> <C+> <C> <C> <C> FI I7 I9 I9 I8 I9 I9 DI I6 I7 I8 I8 CO I5 I6 FO I4 I5 EI I3 I4 WO I2 I3 I3 I3 I3 -
3. Given the following program code: I0 I1 I2 I3 I4 I5 I6 I7 I8 I9 CMP JE SUB AND OR ADD SHR MUL ADD DIV R7, R8 I7 R1, R2, R3 R4, R5, R6 R7, R8, R9 R10, R5, R8 R11, R3, R6 R12, R5, R8 R1, R6, R9 R4, R4, R8
Where the instructions: I0 CMP R7, R8 I1 JE I7 results in branching to instruction I7 if the contents of registers R7 & R8 are equal. Assume the above code will be executed in a pipeline with the following segments: FI: Fetch Instruction DI: Decode Instruction CO: Calculate Operand FO: Fetch Operand EI: Execute Instruction WO: Write Operand If there is no data hazards or data dependencies then the contents of the six segments of the pipeline at the 9th clock cycle are: <C> <C> <C> <C> <C+> <C> FI I6 I7 I7 I8 I9 I7 DI I5 I6 I7 I8 CO I4 I5 I7 FO I3 I4 EI I2 I3 WO I1 I2 I1 -