Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are the human compiler for a VLIW machine whoe specifications are as follows: There are 3 fully pipelined functional units ( ALU , MU
You are the human compiler for a VLIW machine whoe specifications are as follows:
There are fully pipelined functional units ALU MU and FPU
Integer Arithmetic Logic Unit ALU has a cycle latency.
Memory Unit MU has a cycle latency.
Floating Point Unit FPU has a cycle latency, and can perform either FADD or FMUL floating point add floating point multiply on floating point registers.
This machine has only integer registers r r and floating point registers f f
The machine does not implement hardware interlocking or data forwarding.
For the given assembly code, fill Table with the appropriate VLIW instructions. Provide the VLIW instructions that lead to the best performance. Use the minimum number of VLIW instructions, show the NOP instructions you may need to insert.
#INSTRUCTIONS ILLUSTRATION ###################################
#LD LOAD FROM MEMORY # LD LOADREGISTER, OFFSETVALUE, ADDRESS
#FMUL MULTPLY FLOAT # FMUL RESULTREGISTER, OPERANDREG OPERANDREG
#FADD ADD FLOAT # FADD RESULTREGISTER, OPERANDREG OPERANDREG
#ADDI ADD IMMEDIATE # ADDI RESULTREGISTER, OPERANDREG VALUE
#ST STORE TO MEMORY # ST STORERGISTER OFFSETVALUE, ADDRESS
############################################################################
#CODE BEGINS :
LD
LD r
FMUL
FADD
ADDI
ST fr
ADDI
ADDI
tableVLIW Instruction,ALU,MUFPU
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