Develop a hypothetical architecture with illustrative instruction and data formats, instruction sets, etc., and a short program (at least, with eight data entry from keyboard, data storage to three memory locations, and the "maximum" value calculation of the data entered from the keyboard) to compare the three cache mapping algorithms. Indicate the corresponding run-time register contents and justify all architectural, etc., selections sufficiently. CAN YOU EXPLAIN WITH THE EXAMPLE USING NUMBERS IN THE STACKS FROM THE IMAGE WITH EACH STEP INSTEAD OF PROGRAM.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Develop a hypothetical architecture with illustrative instruction and data formats, instruction sets, etc., and a short program (at least, with eight data entry from keyboard, data storage to three memory locations, and the "maximum" value calculation of the data entered from the keyboard) to compare the three cache mapping algorithms. Indicate the corresponding run-time register contents and justify all architectural, etc., selections sufficiently.

CAN YOU EXPLAIN WITH THE EXAMPLE USING NUMBERS IN THE STACKS FROM THE IMAGE WITH EACH STEP INSTEAD OF PROGRAM.

Push
Рop
Stack Pointer
Тор
Front
Bottom
Rear
A LIFO Stack
A FIFO queue
Transcribed Image Text:Push Рop Stack Pointer Тор Front Bottom Rear A LIFO Stack A FIFO queue
Expert Solution
Step 1

Solution ::

 

Op-field: specifies the operation to be performed;

 

Address-field: provides operands or the CPU register/MM addresses of the operands.

 

Example:

 

\begin{displaymath}X=(A+B)*(C+D) \end{displaymath}

 

where $A$, $B$, $C$, $D$ and $X$ are five main memory locations representing five variables;

 

3-address format:

 

Assume variables A, B, C, D, and X are stored in MM locations labeled by their names.

 

ADD R1 A B # R1 $\leftarrow$ [A] + [B]

 

ADD R2 C D # R2 $\leftarrow$ [C] + [D]

 

MUL X R1 R2 # X $\leftarrow$ [R1] $\times$ [R2]

 

Note: here we assume an instruction \fbox{OP dst src1 src2} means:

 

\begin{displaymath}dst \leftarrow [src1] * [src2]

\end{displaymath}

 

where src1 and src2 are the source operand, dst is the destination operand, and * represents the operation specified in Op-code field OP.

 

2-address format:

 

MOV R1 A # R1 $\leftarrow$ [A]

 

ADD R1 B # R1 $\leftarrow$ [B] + [R1]

 

MOV R2 C # R2 $\leftarrow$ [C]

 

ADD R2 D # R2 $\leftarrow$ [D] + [R2]

 

MUL R2 R1 # R2 $\leftarrow$ [R1] $\times$ [R2]

 

MOV X R2 # X $\leftarrow$ [R2]

 

Note: here we assume an instruction \fbox{OP dst src} means:

 

\begin{displaymath}dst \leftarrow [dst] * [src]

\end{displaymath}

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Types of Database Architectures
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education