1 / 9

CSCI2510 Tutorial 6

CSCI2510 Tutorial 6. Course project: A simple CPU Zong Wen wzong@cse.cuhk.edu.hk. The CPU Diagram. The Arithmetic and Logic Unit. 16-bit Result in ACC Control Unit(CU) issues proper signal. Instruction Format. Program Counter. Storing address of next instruction

Download Presentation

CSCI2510 Tutorial 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. CSCI2510 Tutorial 6 Course project: A simple CPU Zong Wen wzong@cse.cuhk.edu.hk

  2. The CPU Diagram

  3. The Arithmetic and Logic Unit • 16-bit • Result in ACC • Control Unit(CU) issues proper signal

  4. Instruction Format

  5. Program Counter • Storing address of next instruction • Increase 1 or load from Instruction Register • IR stores the instruction being executed

  6. The Control Unit • Core component, handle others • Internal state machine

  7. Output of Control Unit • to Program Counter • LOADPC: enable to read data from IRA[15:0] • INCPC: increase by 1 • to Multiplexer • ASEL: address indication, address from PC or IR • to Instruction Register • IRIN: enable IR to read instruction from data bus

  8. Output of Control Unit • To ALU and ACCU • ADDSUB: add or subtraction • ACCIN: input enable • ACCCE: enable add/sub and read • ACCOUT: output enable • ROM • ROMOUT: output enable • RAM • WRITE • RAMOUT

  9. Input of Control Unit • I2, I1, I0 • ROMRAM • ACCOB • CLOCK

More Related