week 1 Intro Flashcards

1
Q

What is the Central Processing Unit (CPU)?

A

The “overworked clerk” performs simple tasks like ADD/SUB/MULT/DIV/LOGIC. Te task to perform is known as an instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the memory?

A

the clerk’s desk drawers, or the clerk’s “memory”. Each drawer has a number, which is the address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the program memory?

A

Contains instructions for the clerk and tells it what to do.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the data memory?

A

contains data for the clerk to work on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the program counter (PC) ?

A

tells the clerk which program memory drawer to open up and execute.

like at a deli. “Now serving sign”. guides a clerk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 4 basic parts of CPU?

A

Arithmetic Logic Unit (ALU)
Program Counter (PC)
Memory for data
Memory for instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does the CPU operate? What are 5 steps?

A
  1. Fetches instruction.
    The program counter (a leader) tells clerk which drawer to open up.
  2. The instruction that you fetched now decodes instruction and executes.
    The clerk examines instruction and performs operations.
  3. Optional part of the execution of an instruction.
    Stores result of instruction in data memory drawer.
  4. Updates the program counter (PC)
    PC += 1 we advance to next instruction upon repeat.
  5. Repeat this process until instructions (program) are complete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly