Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSC 3 0 5 . 0 1 ( Spring 2 0 2 4 ) HomeWork # 4 ( 0 4 2 3 ? 2 0
CSC Spring
HomeWork #
CPU
Objectives: CPU Data Paths
Pipelining
A The taks is to implement an instruction that does register swaps.
I.e
swap
Implement it in three different ways by a sequence of already defined LEGv
instructions,
first, using a third register for temp storage
second, not using any additional registers, but by using the stack for temp
storage
third, by not using any addional register, nor memory. is this possible?
B Consider the following loop.
LOOP: LDUR XX #
LDUR #
ADD
SUBI #
CBNZ X LOOP
Show a pipeline execution diagram for the first two iterations of this loop.
Mark pipeline stages that do not perform useful work.
How often is the pipeline full? a cylcle in which all five pipeline stages are
doing useful work
C Provide a pages typed report on your results and experience.
MUST Provide proof that you have implemented the Assembly code. text of your
code, screenshots, phone camera shots, no videosinclude within the report
MUST Provide proof that you have run executed your swap code. screenshots
of your executioninclude within the report
MUST Provide proof that you have run executed your loop code. screenshots
of your pipelinesdata pathsinclude within your report
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