ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 25 May 2017 My Price 9.00

MIPS/ ASSEMBLY Program

MIPS/ ASSEMBLY Program

Hi, could you please help me with the following task.

The deliverables include: 2 .asm files

 

1) Demonstrates a data hazard in a pipeline implementation (let's name it datahazard.asm)

Write a short program 2-5 instructions, that exhibits a data hazard.

 

2) Pipelined implementation of datahazard_fix.asm (resolves the data hazard given a pipeline implementation)

Re-vise and submit a pipelined implementation of the short program written in (part 1) datahazard_fix.asm

 

 

Please see a sample of my homework attached.

Thank you in advance.

 

.datastring1:.asciiz "Hello world!\n"string2:.asciiz "The second string\n".textmain:la $a0, string1# Print the first string outli $v0, 4syscall# Now call the function() with no arguments.# We use the jal instruction. This store the# address of the instruction after the jal into# the $ra (return address) register, and then# jumps to the first instruction of the functionjal functionli $v0, 4# $a0 should still contain a pointer to the firstsyscall# string, shouldn't it? So let's print it outagainli $v0, 10# Finally, exit the programsyscall# This function is called from main(). It prints a string and returnsfunction:la $a0, string2li $v0, 4syscall# Print out the stringjr $ra# Jump back to the instruction that the $ra# register points to

Answers

(11)
Status NEW Posted 25 May 2017 12:05 AM My Price 9.00

-----------

Attachments

file 1495672124-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)