0% found this document useful (0 votes)
154 views

Q5 Solution

1. A RISC processor's pipeline stages include instruction fetch and decode, register read, execute ALU operation, register write, test status flag, memory to register transfer, and register to memory transfer. 2. The document provides a table of instructions and their operations, and asks to complete a pipeline table showing the stages each instruction occupies over multiple clock cycles. 3. The completed pipeline table inserts NOOP instructions where needed to avoid data dependencies between instructions.

Uploaded by

api-3801329
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
154 views

Q5 Solution

1. A RISC processor's pipeline stages include instruction fetch and decode, register read, execute ALU operation, register write, test status flag, memory to register transfer, and register to memory transfer. 2. The document provides a table of instructions and their operations, and asks to complete a pipeline table showing the stages each instruction occupies over multiple clock cycles. 3. The completed pipeline table inserts NOOP instructions where needed to avoid data dependencies between instructions.

Uploaded by

api-3801329
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Section: TE-C Roll #

Computer Organization and Architecture TE-C


Wednesday, May 16, 2007
QUIZ # 6: RISC PIPELINE
Max Marks = 15; Max Time: 15 minutes
A RISC processor has the following pipeline stages (Not all the stages are used for all the instructions,
therefore please do not use a stage if not used by the instruction):
• IFD : Instruction fetch & decode
• RR: Register(s) Read
• EAL: Execute ALU Operation
• RW: Register Write
• TSF: Test Status Flag i.e. a carry flag for a conditional branch
• MR: Memory to Register Transfer
• RM: Register to Memory Transfer

For the following Instructions in Table A (location A100 contains value 100).
No. Address Instruction Operation
1 FF00 MOV #200 AC  200
2 FF01 MOV R1, (A100) R1  (A100)
3 FF02 SUB R1 AC  AC – R1
4 FF03 BRZ FF00 If Zero flag is set jump to
the address FF00 i.e. PC 
FF00
5 FF04 STORE (A100) AC  (A100)

Please complete the pipeline in Table B. Please watch out for data dependencies and insert NOOP (No
Operation) Instruction where needed.

TABLE B – TIME 
PIPELINE T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 T12 T13 T14
Stgaes
Instruction
No.
1 (1) IFD RW
2 (2) IFD MR
3 (3) IFD RR EAL RW
4(NOOP) IFD
5 (NOOP) IFD
6 (4) IFD RR TSF
7 (NOOP) IFD
8 (NOOP) IFD
9 (5) IFD RR RM
The values in brackets show the original instruction number from Table A

You might also like