Presentation is loading. Please wait.

Presentation is loading. Please wait.

von Neumann Architecture CPU

Similar presentations


Presentation on theme: "von Neumann Architecture CPU"— Presentation transcript:

1 von Neumann Architecture CPU

2

3 CPU: Central Processing Unit

4 RAM: Random Access Memory

5 CPU in von Neumann Architecture
CPU Registers Control Unit Arithmetic Logic Unit Circuits for Adder Shifter Multiplier Divider Control Processing Unit (CPU)

6 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Control Unit ALU Program Counter Instruction Register Control Processing Unit (CPU)

7 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Control Unit ALU Program Counter Instruction Register Control Processing Unit (CPU) A few fast registers + math circuits Lots of slow registers

8 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Control Unit ALU Program Counter Instruction Register Control Processing Unit (CPU) Programs AND data Fetch-Execute Cycle Runs Program

9 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Control Unit ALU Program Counter Instruction Register Control Processing Unit (CPU) Programs AND data Fetch-Execute Cycle Runs Program

10 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Control Unit ALU Program Counter Instruction Register Control Processing Unit (CPU) Programs AND data Fetch-Execute Cycle Runs Program

11 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Control Unit ALU Program Counter Instruction Register Control Processing Unit (CPU) Programs AND data Fetch-Execute Cycle Runs Program

12 Von Neumann Architecture CPU
Random Access Memory (RAM) CPU Registers Next time Control Unit ALU we'll start Program Counter to run actual programs Instruction Register using Hmmm Control Processing Unit (CPU) Programs AND data Fetch-Execute Cycle Runs Program

13 How do programs execute?
Problem – a CPU does not execute instructions directly from memory. Instructions need to be brought into the CPU from memory one at a time. The fetch – execute cycle while not halt instruction Fetch instruction from memory and place in Instruction Register(IR) Add one to Program Counter(PC) Decode instruction Execute instruction

14 More Bits of the implementation…
An 8-bit register: s D Q s D Q s D Q s D Q s D Q s D Q s D Q s D Q Registers are an integral part of every CPU (Nothing more than collection of D Flip Flops!) The PC register holds the memory address of the next instruction. Program Counter PC The IR register holds the instruction to be executed. Instruction Register IR A register is only a collection of D Flip flops. Data registers can be used as the programmer wishes. But who is this hypothetical programmer? Reg3 Reg4 A Control Unit (CU) keeps all of the logic in sync and keeps track of what needs to be done next… 1 CU 2 3 4 5

15 RAM CU ripple8 a Von Neumann machine 05 addn r3, 4 1 7+4 4
strobe PC IR Reg3 1 The instruction Argument 1 Argument 2 the same Reg3 the register the constant 4 old value of Reg3 = 7 new value of Reg3 = 11 CU read enable RAM 8 data bits 8 address bits strobe for all IR bits D in Q out decode instruction strobe to finish instruction (to all bits) ripple8 7+4 8 output bits flip-flop strobe for next instruction Instruction Decoding Guide 2 3 5 05 addn r3, 4 Just explain the pieces. This is a SIMPLE model! Direct their attention to the bottom right table. It's a simple 4 instruction machine! More to come.... 00 = LOAD from memory 01 = STORE to memory 10 = add a constant to a reg. (addn) a Von Neumann machine 11 = ADD a reg. to a reg.


Download ppt "von Neumann Architecture CPU"

Similar presentations


Ads by Google