16 15 Processor PC Program counter holds address of the current instruction

16 15 processor pc program counter holds address of

This preview shows page 18 - 23 out of 27 pages.

-16 ~ 15 ? Processor - PC : Program counter, holds address of the current instruction - zero in ALU changed to CMP - IorD - instruction or data Datapath Where all data computations take place Control unit A big FSM that instructs the datapath to perform all appropriate actions.
Image of page 18
Example: compute x2 + 2x 1. Identify the various datapath components 2. Identify which signals will be FSM inputs, FSM outputs 3. Come up with a state diagram/state table 4. Implement control components and datapath components in verilog
Image of page 19
Image of page 20
OutputsV,C,N,Z indicate special conditions in the arithmetic result: - V: overflow condition, used to detect errors in signed arithmetic - C: carry-out bit, used to detect errors in unsigned arithmetic - N: negative indicator (sign bit flag) - Z: zero-condition indicator, set if result of operation is zeroMultiplicationApproaches: - Layered rows of adder units - An adder/shifter circuit - Booth’s AlgorithmBooth’s AlgorithmX * 001111 = X * 010000 - X * 1Memory and RegistersRegisters: Small number of fast memory unit that allow multiple values to be writtensimultaneouslyMain memory: Larger grid of memory cells that are used to store the main information to be processed by the CPUmaddress width: - 2m rows - each row contains nbits (data width) - size of memoryis 2m * n bits => 2m * n / 8 BytesMemory capacity:measured in Bytes (1 Byte is 8 bits) - KB (kilobyte) = 1024 Bytes = 210 Bytes - MB (Megabyte) = 1024 KB = 220 Bytes - GB (Gigabyte) = 1024 MB = 230 BytesRAM Memory InterfaceAddress port (input): Address-width bit WideWrite Enable (input):Memory write: Memory is modified if 1Memory read: Memory is read if 0Data In (input): data to write if writeEn is 1Data out (output): data read from memory if writeEn is 0Processor datapathProgram Counter (PC)Store location of the current instruction
Image of page 21
Updating PCfor instructions that are 4B long (32 bits), PC need to be incremented by 4, so that next instruction is fetched and executedcan also be updated via result of ALU operationevery instruction updates PC
Image of page 22
Image of page 23

You've reached the end of your free preview.

Want to read all 27 pages?

  • Fall '09
  • Central processing unit, Flip-flop

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes