week 1 Intro Flashcards
What is the Central Processing Unit (CPU)?
The “overworked clerk” performs simple tasks like ADD/SUB/MULT/DIV/LOGIC. Te task to perform is known as an instruction.
What is the memory?
the clerk’s desk drawers, or the clerk’s “memory”. Each drawer has a number, which is the address.
What is the program memory?
Contains instructions for the clerk and tells it what to do.
what is the data memory?
contains data for the clerk to work on.
what is the program counter (PC) ?
tells the clerk which program memory drawer to open up and execute.
like at a deli. “Now serving sign”. guides a clerk
What are the 4 basic parts of CPU?
Arithmetic Logic Unit (ALU)
Program Counter (PC)
Memory for data
Memory for instruction
How does the CPU operate? What are 5 steps?
- Fetches instruction.
The program counter (a leader) tells clerk which drawer to open up. - The instruction that you fetched now decodes instruction and executes.
The clerk examines instruction and performs operations. - Optional part of the execution of an instruction.
Stores result of instruction in data memory drawer. - Updates the program counter (PC)
PC += 1 we advance to next instruction upon repeat. - Repeat this process until instructions (program) are complete