Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC 3 0 5 . 0 1 ( Spring 2 0 2 4 ) HomeWork # 4 ( 0 4 2 3 ? 2 0

CSC 305.01(Spring 2024)
HomeWork #4
(0423?2024)
CPU
Objectives: * CPU Data Paths
Pipelining
A. The taks is to implement an instruction that does register swaps.
I.e.
swap Rn,Rm
Implement it (in three different ways) by a sequence of already defined LEGv8
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 X10,[X1, #0]
LDUR x11,[x1,#8]
ADD x12,x10,x11
SUBI x1,x1,#16
CBNZ X12, 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 2-3 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 videos)(include within the report).
-(MUST) Provide proof that you have run (executed) your swap code. (screenshots
of your execution)(include within the report).
(MUST) Provide proof that you have run (executed) your loop code. (screenshots
of your pipelines/data paths)(include within your report).
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

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

a. Have you allowed for feedback to your message?

Answered: 1 week ago