CPU/Microprocessor Flashcards
Each instruction executed by the CPU requires what?
Memory access
Primary memory holds?
Program instructions and data
Secondary storage holds?
Long term storage
Data is moved from where to where for CPU execution?
Secondary storage to primary memory
What is the Little Man Computer (LMC)?
An instructional model of a computer that models a simple von neumann architecture computer, which has all the basic features of a modern computer.
What is von neumann architecture?
Memory holds both programs and data, memory is addressed linearly, memory is addressed by the location number without regard to the data contained within.
How many LMC mailboxes?
There are 100, addressed 0-99.
Contents of LMC mailboxes:
Each mailbox is designed to hold a single slip of paper, with a three digit decimal number. The contents are not the same as the address
LMC calculator:
Simple, used to enter and temporarily hold numbers, add and subtract.
Hand counter/instruction location counter:
There is a two digit hand counter, you click to increment the count and there is a reset button.
Little man:
Performs certain tasks, interacting with the outside world through an in basket and out basket
Some LMC instructions:
LOAD: LM walks to mailbox address from the instruction, reads the three digit number and punches it into the calculator
STORE: LM walks to calculator, reads the number, stores it in mailbox address whos address is in the instruction
ADD: LM walks to mailbox address, reads number, adds to the number already in the calculator. The number in the mailbox is unchanged.
SUBTRACT: same but with subtraction
INPUT: LM walks to in basket and picks up the paper, and enters it into the calculator. The number isn’t in the basket anymore and whatever was in the calculator has been replaced.
OUTPUT: LM walks to calculator, writes number, goes to the out basket and places the paper
HALT: stop!
CPU/LM instruction cycle:
The instruction cycle is the steps that the LM takes to perform an instruction
The instruction cycle can be split into what two parts?
The fetch portion, in which LM finds out what instruction he is to execute, and
The execute portion, in which LM actually performs the work specified in the instruction
What are the components of the computer unit?
ALU, Control Unit (CU), and memory