Module 1: Introduction Flashcards
CPU (Central Processing Unit)
the “overworked clerk” performs simple tasks
add/sub/mult/div
task to perform = instruction
Memory
clerk’s “desk drawers”
Each drawer has a number, also known as an address
Program Memory
contains instructions for clerk
tells clerk what to do
Data Memory
contains data for clerk to work on
Program Counter (PC)
tells the clerk which program memory drawer to open up and execute
Basic Operations of a CPU
PC tells clerk what drawer to open (fetching)
Clerk examines the instruction and performs (decoding and execution)
Stores result of instruction in data memory drawer (optional)
Updates the PC
Repeats process until instructions are complete (instructions = program)
4 basic parts of a CPU
ALU
PC
Memory for data
Memory for instruction