1/30
Flashcards for reviewing key concepts related to CPU organization and architecture.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What are the common components of every CPU?
ALU, control unit, and registers
What does the ALU do?
Performs computation or processing of data
What is the function of the control unit?
Controls the movement of data and instructions into/out of the processor and controls the operation of the ALU
What is the function of registers?
Provide minimal internal memory for temporary data and instruction storage
What are the two principal parts of the CPU?
Data path and control unit
What components are interconnected in the data path?
ALU and storage units (registers) interconnected by a data bus
What signal does the control unit provide?
Signals to data path, memory, and I/O devices based on program instructions
How are devices on the internal CPU bus identified?
By a unique number set on the control lines
What do data lines on an external bus do?
Convey bits from one device to another.
How do control lines on an external bus function?
Determine the direction of data flow and when each device can access the bus
What is the function of address lines on an external bus?
Determine the location of the source or destination of the data
What is the purpose of user-visible Registers?
May be referenced by assembly-level instructions and are thus visible to the user.
What is the purpose of Control & Status Registers?
Used to control the operation of the CPU. Most are not visible to the user.
What are the categories of user-visible registers?
General purpose, data, address, condition codes/flags
What is the role of data registers?
Hold data and cannot be used in the calculation of an operand address
What is the function of address registers?
Hold address information
What information does the Program Counter (PC) hold?
The address of an instruction to be fetched
What information does the Instruction Register (IR) hold?
The instruction most recently fetched
What is the purpose of the Memory Address Register (MAR)?
The address of a location in memory
What is the purpose of the Memory Buffer Register (MBR)?
A word of data to be written to memory or the word most recently read
What is the function of the Extended Instruction Pointer (EIP) register?
Holds the address of the next instruction to be executed
What does the Program Status Word (PSW) contain?
Status information and condition codes
List the common status flags found in the Program Status Word (PSW).
Zero flag (ZF), Sign flag (SF), Carry flag (CF), Overflow flag (OF), Auxiliary flag (AF), Parity flag (PF)
What are the three stages of instruction processing?
Fetch cycle, Execute cycle, Interrupt cycle
When does program execution halt?
If the machine is turned off, some sort of unrecoverable error occurs, or a program instruction that halts the computer is encountered.
What is instruction pipelining?
CPU breaks the fetch-decode-execute cycle into tasks that are performed in parallel so that more than one task can be executed at a time.
What is a pipeline hazard?
A pipeline stall because conditions do not permit continued execution.
What are the different types of pipeline hazards?
Resource hazard, data hazard, control hazard
What is a resource hazard?
Occurs when two (or more) instructions that are already in the pipeline need the same resource.
What is a data hazard?
Occurs when there is a conflict in the access of an operand location.
What is a control hazard?
Occurs when the pipeline makes the wrong decision on a branch prediction (change the PC value).