For the assembly language program shown below. LOAD I RO, 3 LOADI R1.0 loop: JNZ
ID: 3575206 • Letter: F
Question
For the assembly language program shown below. LOAD I RO, 3 LOADI R1.0 loop: JNZ RO, continue JNZR1, done continue: SRO RO ADDI RO, -1 OUT RO ADDI Rl, 0 JNZ Rl, loop done: ADDI R0, -3 For each macro-operation the number of micro-operations it required are listed below The Fetch and Decode Cycles have already been included. IN DR 3 clock cycles OUT DR 3 clock cycles MOV DR, SR 4 clock cycles LOADI DR 2 clock cycles ADDI DR 4 clock cycles ADD DR, SR 2 clock cycles SRO DR, SR 2 clock cycles JNZ DR, Address 2 clock cycles The total number of micro-operations for the execution of the Assembly program. Cycles The clock frequency of the microprocessor is 1/6 GHz. determine the execution time of the program. How many bits do you need to designer your Timer Counter for the control unit. bitsExplanation / Answer
Total number of micro-operations are: 29 clock cycles
The nano seconds requred are 29000000000 ns
2 bits are required for timer counter for the control unit