Consider the following instruction mix:
1.1 What fraction of all instructions use data memory?
Load 25% + Store 10% = 35% 1.2 What fraction of all instructions use instruction memory?
모든 명령어는 Instruction Memory에서 Fetch하는 과정을 포함하므로 100% 1.3 What fraction of all instructions use the sign extend?
R-Type은 레지스터 간 연산이므로 필요없고, Jump도 Memory Address를 활용하므로 필요 없음. 나머지는 immediate값과 offset에 sign extend가 필요하므로 74% 1.4 What is the sign extend doing during cycles in which its output is not needed?
필요하지 않을 때는 무의미한 값을 생성하고 활용되지 않을 뿐 Sign Extend는 항상 동작함
Add NOP instructions to the code below so that it will run correctly on a pipeline that does not handle data hazards. addix11, x12, 5 addx13, x11, x12 addix14, x11, 15 addx15, x13, x12