1 / 12

The CPU

The CPU. Parts of the CPU. C ontrol Unit A rithmetic & Logic Unit R egisters. Control Unit. Send out the signals to fetch instructions from memory. Interpret those instructions Send out signals to enable instructions to be carried out. This is known as the fetch execute cycle.

kimo
Download Presentation

The CPU

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. The CPU

  2. Parts of the CPU • Control Unit • Arithmetic & Logic Unit • Registers

  3. Control Unit • Send out the signals to fetch instructions from memory. • Interpret those instructions • Send out signals to enable instructions to be carried out. • This is known as the fetch execute cycle

  4. Arithmetic & Logic Unit • Carries out arithmetic calculations • Carries out logic operations (AND/OR)

  5. Registers • Temporary storage locations in processor itself • Store data during calculations • Store the address of the next instruction to be executed • Hold the instruction as it is being decodedand executed

  6. Registers • Program Counter (PC) - Stores the memory address of the next program instruction • Instruction Register (IR) - Holds the code for the current instruction • Accumulator (ACC) - Holds values before and after processing by the ALU • Memory Data Register (MDR) - Holds data prior to a memory write or after a memory read. • Memory Address Register (MAR) - Holds the address of the memory location to be accessed.

  7. Buses • Address Bus • Data Bus • Control Bus • Other internal buses which transfer data inside the CPU

  8. Address Bus • used by the processor to pinpoint the memory location, needed • this is a one-way bus.

  9. Data Bus • used to transfer the data • its size will usually match the word size i.e. the size of the memory locations • this is a two-way bus.

  10. Control Bus • initiates and controls whatever process is taking place • Read Line – initiates memory read operation. • Write Line - initiates memory write operation. • Clock – Generates pulse to synchronise components. • Interrupt – Signal to processor of an interrupt like a key press or mouse click. Processor saves stack and deals with the interrupt. • NMI – Non-Maskable Interrupt. Interrupt which cannot be ignored. • Reset – Clears all registers, aborts program and gives control back to the operating system.

  11. The Fetch Execute Cycle In Action Click on the next slide to show the next step

  12. 2 1 101 PC IR Data Bus 101 ACC MDR Address Bus 1 MAR READ LINE Control Unit WRITE LINE Arithmetic Logic Unit Decode the instruction The contents of memory is transferred to the MDR Add one to the program counter Copy contents of MDR to IR Execute the instruction The program counter is copied into the MAR The read control line is activated

More Related