Goal 1.2 Computer System Flashcards
Processor:
CPU (Central Processing Unit):
“Brains” of the computer
Executes ______
Fetch instruction from memory
Examine
Execute one after the other
Data transferred between components on a ____
programs
bus
Processors:
Components of CPU
ALU
Registers
- High speed
- Holds one number of some bits
- Usually same size, but some have specialized functions
- Program Counter
- Instruction Register
Control Unit
Data Path consists of:
Registers
ALU
- Mathematical operations
- Boolean operations
ALU Input Registers
ALU output register
Instruction type:
Register-Memory
Data fetched from memory to _____
Data ______ in memory from register
register
stored
Instruction type:
Register-Register
Data fetched from 2 registers
Manipulated in _____
Stored back in another/same _______
Data path cycle
Multiple ALU’s
ALU
register
Instruction Execution
- Fetch the next ______ from memory into the instruction register
- Change the program ______ to point to the next instruction
- Determine the type of instruction just fetched
- If instruction uses a word in memory, determine where it is
- Fetch the _____, if needed, into a CPU register
- Execute the instruction
- Return to step __
instruction
counter
word
1
RISC
Reduced Instruction Set Computer
Around 50 instructions
Each does less, but executes much ____.
Hardware implementation with no translation
Phones, IOT, things not worried about ____ ______.
Lower power consumption
faster
backwards compatibility
CISC
Complex Instruction Set Computer
______ of instructions
Each instruction slower to execute, but does more
___/____ ____ computers
- Have RISC core as compromise
Backwards compatibility keeps it alive
Hundreds
Intel/AMD x86
Design Principles for Modern Computers
All instructions directly executed by _____
Maximize rate at which instructions are issued
Instructions should be easy to ____
Only loads and stores should _____ memory
Provided plenty of ______
hardware
decode
reference
registers
Pipelining
Allows for multiple instructions to be executed at once.
Longer pipelines
allow for smaller chunks
more instructions being executed
Higher Mhz/Ghz
May have to clear pipeline more often
smaller pipelines
bigger chunks
lower Mhz/Ghz
Can be more efficient
Primary Memory
Stores programs and data
Stored in 1’s and 0’s (bit)
uses ____/_____ to store multiple bits assigned to one address
Each cell has the same number of ____
cells/locations
bits
Less bits/cell ⇒ more memory addresses ⇒
larger instructions
more bits/cell ⇒ less memory addresses ⇒ smaller instructions ⇒
Wasted memory