Home » Computer Organization and Architecture » Computer organization and architecture miscellaneous » Question

Computer organization and architecture miscellaneous

Computer Organization and Architecture

Direction: Consider the following program segment for a hypothetical CPU having three user registers R1, R2 and R3.

  1. Let the clock cycles required for vavious operations be as follows: Register to/from memory transfer: 3 clock cycles
    Add with both operands in register: 1 clock cycle
    Instruction fetch and decode: 2 clock cycles per word
    The total number of clock cycles requires to execute the program is
    1. 29
    2. 24
    3. 23
    4. 20
Correct Option: B

The clock cycles are per block so if an instruction size is 2 then it requires twice no. of clock cycles.



Your comments will be displayed only after manual approval.