Answered step by step
Verified Expert Solution
Link Copied!

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 3 fully pipelined functional units (ALU, MU and FPU).
Integer Arithmetic Logic Unit (ALU) has a 1-cycle latency.
Memory Unit (MU) has a 2-cycle latency.
Floating Point Unit (FPU) has a 3-cycle latency, and can perform either FADD or FMUL (floating point add / floating point multiply) on floating point registers.
This machine has only 4 integer registers (r1.. r4) and 4 floating point registers (f1.. f4)
The machine does not implement hardware interlocking or data forwarding.
For the given assembly code, fill Table 1 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 LOAD_REGISTER, OFFSET_VALUE, ADDRESS
#FMUL MULTPLY FLOAT # FMUL RESULT_REGISTER, OPERAND_REG1, OPERAND_REG2
#FADD ADD FLOAT # FADD RESULT_REGISTER, OPERAND_REG1, OPERAND_REG2
#ADDI ADD IMMEDIATE # ADDI RESULT_REGISTER, OPERAND_REG1, VALUE
#ST STORE TO MEMORY # ST STORE_RGISTER, OFFSET_VALUE, ADDRESS
############################################################################
#CODE BEGINS :
LD fl,0,(r1)
LD f2,0(r2)
FMUL f1,f1,f1
FADD f1,f1,f2
ADDI r3,r3,4
ST f1,-4(r3)
ADDI r1,r1,4
ADDI ,r2,r2,4
\table[[VLIW Instruction,ALU,MU,FPU],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,]]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago