Question
1.) Consider two different machines running two different implementations of the same set of instructions (ISA): I1 in machine 1 and l2 in machine 2.
1.) Consider two different machines running two different implementations of the same set of instructions (ISA): I1 in machine 1 and l2 in machine 2. Suppose that the ISA consists of three instructions (A, B and C). The processor of I1 has a clock frequency (clock rate) of 6GHz and I2 one 3GHz. The number of cycles per instruction for each instruction in I1 e I 2 is included in the following table:
Instruction | CPI I1 | CPI I2 | USE OF C1 | USE OF C2 | USE OF C3 |
A | 2 | 1 | 40% | 40% | 50% |
B | 3 | 2 | 40% | 20% | 25% |
C | 5 | 2 | 20% | 40% | 25% |
The table also contains the average of the proportion of the type of instructions generated by three compilers: (C1, C2 and C3). C1 is produced to run on I1, while C2 to run onI2. C3 is an independent implementation. Suppose the three compilers use the same number of instructions for the same program but with the proportions of each type of instruction according to the table. Make a table with the comparative summary of all possible cycle combinations per instruction and its millions of instructions per second. Make your comments related to the results.
2.) Write a program that loads the memory information from position 300 to the PC, (assuming that the position of instructions in memory are from location 300 and that of data is from location 940), take the data from position 940 and add it to the data that is in the contiguous record 941, save it in record position 942 and also store it in a output device (assume register 980 as the output device). (Thedata that is in the data memory 940 and 941 are 5 and 3 respectively). Show what instructions the Internal registers of the CPU and the memory when starting the program until the end of it. Explain with words the general process of "fetching". Internal registers of the CPU.
Internal CPU Registers: Program counter (PC) _Address of instruction Instruction register (IR) _Instruction being executed Accumulator (AC) _ Temporary storage
Partial List of Opcodes:
0001 = Load AC from memory
0010 = Store AC to memory
0101 = Add to AC from memory
0011 = Load AC from I / O
0111 = Store AC to I / O
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started