previous
 next 
CS 3843 Computer Organization
Notes on Chapter 4: Section 4.3


Today's News: April 14
Don't forget the course evaluations

Section 4.3: Sequential Y86 Implementation

Section 4.3.1: Organizing Processing Steps into Stages

Recall of Y86 Instrucion Encoding available
here. Note: You will need a password to get to the figures on this web page.

Look at Figure 4.22 and Figure 4.23


Today's News: April 16


We assume that everything in Figure 4.23 is combinational logic except for: All of the above are controlled by a single clock and store values only when that clock goes high.
Each time the clock goes high one instruction is executed.

Basic idea: The clock speed is determined by the longest data path through the combinational logic for the most complicated instruction.

This is the basic idea behind RISC design.
The speed of the simplest instructions is determined by the speed of the most complicated instruction.


An example: Tracing OP1 rA, rB

Note: Each instruction is executed in a single cycle.

Today's News: April 18
Don't forget the course evaluations


Question:
Design the circuit that calculates the value to be added to the PC based on the values of Need ValC and Need regids
Answer:


Question:
Design the circuit that calculates Need ValC and Need regids from the value if iCode.
Answer:



Interrupts
This material is not in the book.
External hardware devices need a way to interrupt the normal execution of the instruction cycles.
Some examples of devices that need to do this:
How this works:

The Instruction Cycle

The tradition instruction cycle:
Note that the fetch, increment PC, and decode may be implemented in several steps:

Today's News: April 21
Today is the last day for the course evaluations


How the traditional instruction cycle relates to the Y86 instruction cycle:
Why is it done this way in the Y86?


Example: Tracing jxx Dest



Today's News: April 23
Thank you for filling out the evaluation forms

Example: Tracing rmmovl rA, D(rB)
A more detailed version of this trace can be found
here.


Figure 4.28
Figure 4.29
Figure 4.30


Today's News: April 25

Figure 4.18 OP1, rrmovl, irmovl
Figure 4.19 rmmovl, mrmovl
Figure 4.20 pushl, popl
Figure 4.21 jXX, call, ret