Question: This instruction, CMPIC RX , RY compares the two numbers stored in memory at addresses provided by registers RX and RY . It increments the

This instruction, CMPIC RX, RY compares the two numbers stored in memory at addresses provided by registers RX and RY. It increments the number stored at memory location pointed by RX register, if the number at the memory address provided by RY is smaller than the other number.
a. Write the annotated level 2 flowcharts for the instruction using the execution unit, following the rules of operation given in the text (mention changes if any required to the execution unit).
b. For the flowchart states drawn, identify the different uses of the following macros: REG, ALU, PC and T1 and propose an optimal control-word format by assigning suitable number of bits to each macro.
c. If the Processor is connected to a system clock of frequency 100 MHz and each flowchart state takes one state and each state is made of 4 phases of clock (derived using system clock and each phase stays high for one clock cycle of the system clock) compute the time taken to execute the above instruction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!