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
expand_more
expand_more
format_list_bulleted
Question
Chapter 4.3, Problem 4.24PP
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 centered on condition.
- It determines whether branch to be utilized in a jump instruction.
- Memory:
- The memory has data written into it or read operation is done from memory.
- 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.
- Fetch:
Combinational circuits and HCL expressions:
- The computational blocks are been constructed by accumulating several logic gates into network.
- The restrictions are been shown below:
- Each of input for logic gate should be connected to any one shown below:
- One of system inputs, that is identified as primary inputs.
- Output connection for some element in memory.
- Output of some logic gate.
- Outputs obtained from more than two logic gates could not be linked together.
- The wire would be driven to different voltages.
- It can cause malfunction in circuit.
- The network should not contain cycles.
- The loops in circuit can cause ambiguity in function
computed by network.
- The loops in circuit can cause ambiguity in function
- Each of input for logic gate should be connected to any one shown below:
- The “HCL” denotes a hardware control language that is used for describing control logic of different processor designs.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
3. Let say BX = 1000H, SI = 2000H, DISP = 1234H, DS =1200H.
%3D
Determine the effective address of the Word that will be
transferred to DX when executing this instruction:
MOV DX,[BX+SI+1234]
Q1. Write microcode for the execution part of the following CISC instruction. Give both a
register transfer description and binary or hexadecimal representations.
Add with carry: R[DR] + R[SA]+R[SB]+c
Action
Address
MZ
CA
RW
DX
MD
BS
PS
FS
LC
MA
MB
AX
BX
CS
i need the answer quickly
Chapter 4 Solutions
Computer Systems: A Programmer's Perspective (3rd Edition)
Ch. 4.1 - Prob. 4.1PPCh. 4.1 - Prob. 4.2PPCh. 4.1 - Prob. 4.3PPCh. 4.1 - Prob. 4.4PPCh. 4.1 - Prob. 4.5PPCh. 4.1 - Prob. 4.6PPCh. 4.1 - Prob. 4.7PPCh. 4.1 - Prob. 4.8PPCh. 4.2 - Practice Problem 4.9 (solution page 484) Write an...Ch. 4.2 - Prob. 4.10PP
Ch. 4.2 - Prob. 4.11PPCh. 4.2 - Prob. 4.12PPCh. 4.3 - Prob. 4.13PPCh. 4.3 - Prob. 4.14PPCh. 4.3 - Prob. 4.15PPCh. 4.3 - Prob. 4.16PPCh. 4.3 - Prob. 4.17PPCh. 4.3 - Prob. 4.18PPCh. 4.3 - Prob. 4.19PPCh. 4.3 - Prob. 4.20PPCh. 4.3 - Prob. 4.21PPCh. 4.3 - Prob. 4.22PPCh. 4.3 - Prob. 4.23PPCh. 4.3 - Prob. 4.24PPCh. 4.3 - Prob. 4.25PPCh. 4.3 - Prob. 4.26PPCh. 4.3 - Prob. 4.27PPCh. 4.4 - Prob. 4.28PPCh. 4.4 - Prob. 4.29PPCh. 4.5 - Prob. 4.30PPCh. 4.5 - Prob. 4.31PPCh. 4.5 - Prob. 4.32PPCh. 4.5 - Prob. 4.33PPCh. 4.5 - Prob. 4.34PPCh. 4.5 - Prob. 4.35PPCh. 4.5 - Prob. 4.36PPCh. 4.5 - Prob. 4.37PPCh. 4.5 - Prob. 4.38PPCh. 4.5 - Prob. 4.39PPCh. 4.5 - Prob. 4.40PPCh. 4.5 - Prob. 4.41PPCh. 4.5 - Prob. 4.42PPCh. 4.5 - Prob. 4.43PPCh. 4.5 - Prob. 4.44PPCh. 4 - Prob. 4.45HWCh. 4 - Prob. 4.46HWCh. 4 - Prob. 4.47HWCh. 4 - Prob. 4.48HWCh. 4 - Modify the code you wrote for Problem 4.47 to...Ch. 4 - In Section 3.6.8, we saw that a common way to...Ch. 4 - Prob. 4.51HWCh. 4 - The file seq-full.hcl contains the HCL description...Ch. 4 - Prob. 4.53HWCh. 4 - The file pie=full. hcl contains a copy of the PIPE...Ch. 4 - Prob. 4.55HWCh. 4 - Prob. 4.56HWCh. 4 - Prob. 4.57HWCh. 4 - Our pipelined design is a bit unrealistic in that...Ch. 4 - Prob. 4.59HW
Knowledge Booster
Similar questions
- Given the data path of the LC-3, give a complete description of the STR instruction, as outlined in the following questions STR R5, R4, #-28 1.) assemble the instruction to its binary representation, and give your answer in hexadecimal. 2.)Give the RT (Register Transfer) description of the instruction. 3.) List, in the correct sequence, every control signal set by the FSM to implement this instruction.arrow_forwardThe instruction “addi” is an I-type instruction that can be executed using the Single-cycle datapath without modification. Answer the following question: (a) Give values of all control signals needed to execute this instruction on the single-cycle data. For example: addi $t2, $S2, 3.arrow_forwardDescribe the modifications to the single clock cycle datapath that would be needed to implement the jalr instruction (jump and link register – see page A.672 of the text), and give the control signal settings that would be required for this instruction.arrow_forward
- سعلوسه @sync1arrow_forwardMultiple Choice An 'instruction fetch/read' results in three sets of numbers that go to the Registers Block as studied in class. These three numbers in the instruction represent bits 25-21 for 'Read Register 1', bits 20-16 for 'Read Register 2', and bits 15-11 for the 'Write Register'. What does the 5 bits width of each of these indicate? Choose the best answer. Group of answer choices That there are 15 registers that can be addressed in this architecture That each word is 32 bits long That there are 32 registers that can be addressed in this architecture That the word is 15 bits long in this architecturearrow_forwardA two-word instruction is stored in memory at an address designated by the symbol A. The address field of the instruction (stored at A + 1) is designated by the symbol Y. The operand used during the execution of the instruction is stored at an address symbolized by EA. An index register contains the value X. With the help of diagram, state how EA is calculated from the other addresses if the addressing mode of the instruction is (1)- direct (2)- indirect (3)- indexed (4)-Relative (5)- Register indirectarrow_forward
- Find the pyhsical destination adress of last instruction below. MOV BX,0AAH MOV AX,1BBH MOV DS,AX MOV[BX],AXarrow_forwardIn this case, every instruction receives its own data, independent of how the data for other instructions is obtained. We make advantage of a: A Multiple Data/Instruction B Multiple Iterations of Data or Instruction C Singular Data Single Inst D Singe Inst Multiplearrow_forwarduse: Microchip Studio and ATmega328p Activity 2: SUB instruction flags Write and assemble the following program. SUB instruction can trigger Z(Zero), C(Carry), N(Negative), V(Overflow), and H(Half Carry) flags. Use the simulator to single- step and examine the flags and register content after the execution of each flag triggering instruction. LDI R20, $27 LDI R21, $15 SUB R20, R21 LDI LDI SUB R20, $20 R21, $15 R20, R21 R24,95 R25,95 LDI LDI SUB R24, R25 LDI R22,50 LDI R23, 70 SUB R22, R23 End: RJMP End R20- → R20 = → R24 = ➜ R22= [Hex], Active Flags: [Hex], Active Flags: [Hex], Active Flags: [Hex], Active Flags:arrow_forward
- This question assumes the machine architecture at the right. Note the stack pointer register, SP, is not part of the register file. SEL is a multiplexor used to select one of the inputs to the ALU. Assume memory addresses require only one memory cycle to fetch or store (unlike the 68000). MAR Register File (RO-RI5) MDR Show the machine code control IR constants sequence of an instruction that will set a block of from 1 to 127 memory locations to zero. The size of the block is in RO and the address of the block is in R1. Assume the instruction fetch sequence is the same as in Question 4 and start with the next step. R0 and R1 can change in the execution of the sequence. SEL PC SP ALU TEMP Statusarrow_forwardcoding/programarrow_forwardplease explain 1B im a bit confusedarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning