Computer Systems: A Programmer's Perspective (3rd Edition)
Computer Systems: A Programmer's Perspective (3rd Edition)
3rd Edition
ISBN: 9780134092669
Author: Bryant, Randal E. Bryant, David R. O'Hallaron, David R., Randal E.; O'Hallaron, Bryant/O'hallaron
Publisher: PEARSON
Question
Book Icon
Chapter 4.5, Problem 4.43PP
Program Plan Intro

Processing stages:

  • The processing of an instruction has number of operations.
  • The operations are organized into particular sequence of stages.
  • It attempts to follow a uniform sequence for all instructions.
  • The description of stages are shown below:
    • Fetch:
      • It uses program counter “PC” as memory address to read instruction bytes from memory.
      • The 4-bit portions “icode” and “ifun” of specifier byte is extracted from instruction.
      • It fetches “valC” that denotes an 8-byte constant.
      • It computes “valP” that denotes value of “PC” plus length of fetched instruction.
    • Decode:
      • The register file is been read with two operands.
      • It gives values “valA” and “valB” for operands.
      • It reads registers with instruction fields “rA” and “rB”.
    • Execute:
      • In this stage the ALU either performs required operation or increments and decrements stack pointer.
      • The resulting value is termed as “valE”.
      • The condition codes are evaluated and destination register is updated based on condition.
      • It determines whether branch should be taken or not in a jump instruction.
    • Memory:
      • The data is been written to memory or read from memory in this stage.
      •  The value that is read is determined as “valM”.
    • Write back:
      • The results are been written to register file.
      • It can write up to 2 results.
    • PC update:
      • The program counter “PC” denotes memory address to read bytes of instruction from memory.
      • It is used to set next instruction’s address.

Backward taken, forward not taken (BTFNT):

  • It predicts that if branches to lower addresses the next instruction will be taken.
  • If it branches to higher addresses then next instruction will not be taken.
  • This strategy has a success rate of 65%.
  • The loops are executed multiple times and are closed by backward branches.
  • The forward branches are used for conditional operations, and are less likely to be taken.

Blurred answer
Students have asked these similar questions
13. For each network in Fig. 5.100 O, constructed of standard values, determine: a. The current I. b. The source voltage E. c. The unknown resistance. d. The voltage across each element. - E + 4.7 + 130 5.2 V 3.3 k :2.2 kn 6.6 V R7=90 R R - 9 V + (1) (II) Fig. 5.100 Problem 13.
[11] Convert each of the following expressions into sum of products and product of sums : (a) F = (AB+C)(B+CD) (b) F= x + x(x + y) (y + z) [12] Express the following functions as CSOP and CPOS expressions: (a) F(x,y,z) = (x+y+z)(x+z') + yz (b) F(w, x, y, z)=xy(wz+wz) (w+xz) in terms of x, y, and z in terms of w, x, y, and z [13] Given the following pulse trains for A, B and C, draw the pulse trains for F₁ and F2. B A C D F1 D Draw the answers here F2 B 0 F₁ A 1 F2 C 0 1 0 1 1 1 0 1 0 0 0 1 1 1 0 1 0 0 1 1
(1) Let M be the PDA defined by Q = {q, 9o, I1, 42), E= {a,b}, T = {a}, F := {q , q1}. 8(9,, a , Zo) = {(q, Zo) } d(q, a, Zo) = {(q, aZo)} 8(q, a, a) = {(q, aa)} 8(q, b, a) = {(q1,e)} 8(q1, b, a) = {(qı,e)} 8(q1, b, Zo) = {(q2, e)} a) Describe the language accepted by M. b) Trace all computations of the strings aab, abb, aba in M. c) Show that aaabb, aaab E L(M ).

Chapter 4 Solutions

Computer Systems: A Programmer's Perspective (3rd Edition)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education