Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the following problem sets, we will use this expanded set of list of opcodes for our hypothetical machine: 0001 -Load AC from memory 0010-Store

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
In the following problem sets, we will use this expanded set of list of opcodes for our hypothetical machine: 0001 -Load AC from memory 0010-Store AC to memory 0011-Jump to address 0100 Subtract memory from AC (result in AC) 0101 Add to AC from memory (result in AC) Perform program fetch/execute cycles for the following initial memory and program states. NOTE: one of the problems uses the Jump to address instruction to implement a loop. You do not need to simulate more than the 4 fetch/execute cycles for this problem, even though the program in principle would execute forever. Problem Set 1 Problem1: Fetch stage CPU registers CPU registers 300 4940 301 5941 302 2941 AC 301 IR 302 IR 940 0001 941 0002 941 Step 1 Step 2 CPU registers Memory CPU registers PC 301 302 301 IR 302 IR 941 941 Step 3 Step 4 CPU registens CPU registers 301 302 301 302 AC IR AC IR 940 940 941 941 Step 5 Step 6 CPU registers CPU registers AC 301 302 301 302 AC IR IR 941 941 Step 7 Problem Set 1 Problem 2 Step 8 Fetch stage Execute stage CPU registers 300 CPU registers 300 941 301 5940 302 3301 AC AC 940 0002 941 0004 Step I Step 2 Memory CPU registers Memory CPU registers PC AC 300 PC AC IR 302 302 4 Step 3 Step 4 Memory CPU registers Memory CPU registers PC AC AC IR 302 941 941 Step 5 Step 6 Memory CPU registers Memory CPU registers PC AC IR 941 Step Step 7 Problem Set 1 Problem 3: Fetch stage Execute stage CPU registers 300 Memory CPU registers 300 301 4941 302 1940 IR 940 0004 941 0005 941 Step 2 Step Memory CPU registers CPU registers IR 302 941 Step 4 Step 3 CPU registers Memory CPU registers AC AC 301 IR 302 941 Step 6 Step 5 Memory CPU registers CPU registers Memory PC AC 301 IR 302 940 941 941 Step S Step 7 Execute stage Problem Set 1 Problem 4 Fetch stage Memory CPU registers 300 Memory CPU registers 300 5940 01 4941 AC 940 0005 941 0001 941 Step 2 CPU registers CPU registers PC IR IR 302 Step 4 Step 3 CPU registers Memory CPU registers PC AC IR 941 Step 6 Step 5 Memory CPU registers Memory CPU registers PC 300 AC IR IR Step 8 Step 7

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 Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

Students also viewed these Databases questions

Question

f. Did they change their names? For what reasons?

Answered: 1 week ago