retagged by
2,166 views
3 votes
3 votes
Consider a 32 bit hypothetical processor used to execute the following programme segement

INST // MEANING // SIZE(IN WORDS)

MOV R0, @3000    // R0 <- M[[3000]] // 2

MOV R1, [2000] // R1 <- M[2000] // 1

ADD R0, R1 // R0 <- R0 + R1 // 1

MUL R0, @ 4000 // R0 <- R0 * M[[4000]] // 2

MOV @R1, R0  // M[[R1]] <- R0 // 2

HALT // MACHINE HALT // 1

Assume that processor is executing with a 2ns clock cycle, memory ref comsume four cycle, ALU operation consume 2 cycle and register refernces consume 0 cycle, what is the executinion time of the program?

Determine the number of memory referneces required in Instruction Fetch Phase and Execution Phase state.
retagged by

1 Answer

0 votes
0 votes
In Instruction Fetch Phase 6 mem-ref required

In Execution Phase 10 mem-ref required

 executinion time of the program =16 mem-ref+4 cycles

                                                  =(16*4)+4 cycles

                                                =68cycles                   ( given:  2ns clock cycle)

                                               =68*2ns                   

                                               =136ns
edited by

Related questions

0 votes
0 votes
0 answers
2
Na462 asked Sep 24, 2018
459 views
0 votes
0 votes
1 answer
4