Suppose a programmer developed a program. The program is com…
Suppose a programmer developed a program. The program is compiled for an Intel Processor. It compiled down to 1000 x86 instructions and took 600ns to run on your 2GHz Windows laptop. The programmer then ported the code to a server and recompiled it. The programmer compiled it on a more advanced compiler that reduced the total instructions to 900. The server runs on a more advanced 4GHz processor that reports an average CPI that is 75% of the CPI reported by your laptop. What is the CPI on the Windows Laptop? [CPI_old] cycles/instruction What is going to be the runtime of your code on the server? [time] ns
Read DetailsYou want to check that the compiler encoded your instruction…
You want to check that the compiler encoded your instructions correctly. The RISC-V instruction you want to encode is: blt s1,t2,-1234 What are the binary fields of the instruction that will be stored into the instruction memory. NOTE: Your answer should be a combination of 1s and/or 0s ONLY! Make sure to enter the correct number of digits. Example to enter the value 3 into 6 bits: 000011 Opcode: [opcode] function 3: [funct3] rs1: [rs1] rs2: [rs2] imm(12:1): [imm]
Read Details