CPU_Memory_Flashcards
What are the main components of the CPU?
The Arithmetic Logic Unit (ALU) and the Control Unit (CU).
What is the function of the ALU?
Performs calculations and comparisons.
What role does the Control Unit (CU) play in the CPU?
Runs program instructions, performs fetch/execute cycle, and manages data transfer to/from registers and other components.
What is the purpose of CPU registers?
Small storage locations within the CPU for storing data, addresses, or instructions temporarily.
What are general-purpose registers used for?
Holds intermediate results or data values, such as loop counters.
What is the Program Counter (PC) register?
A special-purpose register that stores the address of the next instruction to execute.
What is stored in the Instruction Register (IR)?
The instruction currently being executed by the CPU.
What is the Memory Address Register (MAR)?
Holds the address in memory where data will be read or written.
What is the function of the Memory Data Register (MDR)?
Temporarily holds data that is being transferred to or from memory.
How does the fetch-execute cycle work?
The CPU fetches an instruction, decodes it, and then executes the operation.
What happens during the ‘fetch’ stage of the cycle?
The instruction is loaded from memory into the IR and prepared for execution.
What occurs in the ‘execute’ stage?
The CPU performs the operation specified by the instruction.
What is Random Access Memory (RAM)?
Volatile memory used for temporarily storing data and program instructions for CPU access.
What are DRAM and SRAM?
Types of RAM; DRAM is cheaper and slower, SRAM is faster and used for cache memory.
What is nonvolatile memory?
Memory that retains data when power is turned off, e.g., ROM and flash memory.