1 / 17

Lecture 3 CPU - Data Path for Branches Reading - Pat. & Hen. Chap. 5, Sec. 1-6

Lecture 3 CPU - Data Path for Branches Reading - Pat. & Hen. Chap. 5, Sec. 1-6. Write Read-1 Read-2. “#” means 5-bit address of register. / 3055-05 / pdf / lec_3_notes.pdf. Logic. Changing to B(t+1). A(t+1). A(t). B(t). Logic. A(t+1). A(t+1). B(t+1). B(t+1). 2. Example: Counter

Download Presentation

Lecture 3 CPU - Data Path for Branches Reading - Pat. & Hen. Chap. 5, Sec. 1-6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 3 CPU - Data Path for Branches Reading - Pat. & Hen. Chap. 5, Sec. 1-6 Write Read-1 Read-2 “#” means 5-bit address of register / 3055-05 / pdf / lec_3_notes.pdf

  2. Logic Changing to B(t+1) A(t+1) A(t) B(t) Logic A(t+1) A(t+1) B(t+1) B(t+1) 2

  3. Example: Counter S3 S2 S1 S0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 State Element State Element Combinatorial Logic State Element State Element 3

  4. Reading Instructions without Branching 8000 8004 8008 8012 8016 Fig. 5.6 4

  5. Fig. 5.7 5

  6. Fig. 5.8 6

  7. Jumps, or use offset from array base address Branching virtual 2 bits 00 bits 20-0 <<2

  8. Using a 16-bit Offset to form a 32-bit Address address of X[0] address of X[255] index: 16 bits in 32-bit word index: 255 before: word = xxxxxxxx xxxxxxxx 00000000 111111111 index: 255 = 00000000 000000000 00000000 111111111 Figs. 5.7- 5.9 8

  9. Calculate new PC from a 16-bit Word Offset new PC + x4 16-bit Word Offset Fig. 5.9 9

  10. Fig. 5.10 10

  11. Datapath for Load/Store Word, ALU op.s, and Branches Fig. 5.11 11

  12. Multiplexors for Branch and Jump Operations Fig. 5.15 -5.21 12

  13. Fig. 5.24 Single-Cycle CPU - requires 2 ALUs and separate memories for instructions and data.

  14. Fig. 5.25 A Multi-Cycle CPU (Datapath) needs additional registers to hold data between cycles. Notice the common memory for data and instructions (code). 14

  15. Fig. 5.38 State Diagram for Multicycle CPU 15

  16. Finite State Machine Implementation Combinatorial Control Logic Datapath Control Outputs (for present state) Next State State Register Inputs from Instruction Register Opcode Field Fig. 5.37 16

  17. EPC Cause Reg. Fig. 5.39 Two new registers are added to handle Exceptions and Interrupts the EPC (Exception Program Counter) and the Cause Reg.s. (see Patterson & Hennessy Appendix A.7 on CDROM) 17

More Related