Skip to main content

Assignment# 1 Solution Nanyang Technological University, Singapore

Assignment-1


Part (a) Section (i)


Write the MIPS-like assembly code for the following program segment to run on the 5-stage pipelined processor which you have developed.

for (i=6; i<=65; i=i+1)
{
a[i] = b[i] + a[i-6];
}

Section (ii)

Convert that assembly code to machine language format, and execute them on the 5-stage pipelined processor which you have developed.

Section (iii) 

Find the number of clock cycles and execution time to execute those machine instructions.

Part (b)  Section (i)

Perform maximal loop unrolling as well as instruction reordering of the assembly code segment obtained for part (a). Convert that assembly code segment to machine language format, and run on the 5-stage pipelined processor which you have developed.

Section (ii)

Find the number of clock cycles and execution time to run it.

Part (c)

Compare the execution times found for part (a) and part (b) and explain the effect of loop-carried dependency.


CONTACT DETAILS

For any other questions or other tasks please feel free to contact me
via email: mhassnainjamil@gmail.com
via WhatsApp: +92-324-7042178
via skype: hassnainjamil1

Comments

Popular posts from this blog

Are you looking for the article. Congratulations! you are at the right place

Please comment on this post for Article requests Kindly Write Following things in comment: 1)  Name 2)  Article Link 3)  Your Email Id We will process your request as soon as possible. Note: Share this post with friends to help them.

Human Physiology by Stuart Ira Fox [PDF] (12th edition) free download

Body Mass Index (BMI) calculator with JUnitTesting in Java

Introduction: Aitor Tilla S.L. clinic specializes on the endocrine treatment of people with diverse needs in relation to weight control. The clinic wants to launch a number of technological solutions (mobile app and web pages) that will allow its clients to have an effective monitoring of the dietary plans suggested by the clinic doctors. To this end, Aitor Tilla, S.L. requires to evolve the component that measures metrics for a healthy life developed during the previous guided exercises. The component will be reusable and will allow the calculation of new necessary metrics. The component will be developed in Java, J2EE platform, and will be delivered in a JAR format that will allow the access to the methods, and the programming interface that integrates with the mobile app and web pages. In addition, the code will be delivered with a user manual that explains programmers how the integration with other components should be done. The function to consider consists of characterizing the B...