Topic 2: Computer Organization Flashcards
Identify the main components of the central processing unit (CPU) and draw a diagram showing their relationship.
arithmetic logic unit (ALU), control unit (CU), memory address register (MAR), memory data register (MDR)
Outline the function of the arithmetic logic unit (ALU).
Performs all the basic arithmetic, logical or input/output operations.
Outline the function of the control unit (CU).
Controls the retrieval of instructions from the primary memory unit, and the sequence of their execution. Provides the ALU with the data that needs to be processed as well as the instructions to be executed.
Outline the purpose of the the memory address register (MAR).
Holds the memory address of the data to be used by the ALU, so that the ALU can fetch the corresponding content from the memory and process it accordingly. Connected to primary memory via the Memory (Address) Bus.
Outline the purpose of the memory data register (MDR).
Holds the data that is to be used by the ALU and saved to the RAM. Loads the data at the address location the MAR is holding. Connected to primary memory via the Data Bus.
Describe the role of primary memory.
The only storage directly accessible by the CPU. Holds data and instructions that are currently running on the computer system. Composed of many memory locations that are indexed by a memory address (a unique number corresponding to a memory location).
Distinguish between Random Access Memory (RAM) and Read-only Memory (ROM).
ROM cannot be written to, but RAM can.
RAM is volatile (when power is lost, data its data is wiped), but ROM is non-volatile.
ROM is typically much smaller in capacity than RAM.
Explain the use of cache memory.
Cache is smaller and faster memory that is located closer to the CPU. Cache holds information from RAM that is frequently accessed or that the computer system predicts it will need to access soon.
When the processor needs to to read from the main memory, it first checks if a copy of the data exists in cache. If not, it copies data from the main memory to the cache.
Cache memory is segmented in a hierarchy such as L1 cache, L2 cache, and so on. Level one cache has the smallest capacity but is the fastest (located directly on the microprocessor). Higher levels get larger but slower.
State some differences between cache memory and RAM.
Cache memory is closer to the CPU than RAM.
Cache memory is much faster than RAM.
Cache memory is much more expensive than RAM so is much smaller.
Cache memory is separated into a hierarchy wtih L1, L2, and so on.
Define the machine instruction cycle.
The basic operation cycle of a computer to execute a program by which an instruction is fetched from memory, and executed. It consists of four stages: fetch, decode, execute, and store.
Describe the machine instructions cycle.
- The CPU fetches instructions from the primary memory unit to the control unit by sending the appropriate address throught the memory (address) bus. The data is copied into the data bus and sent to the CU.
- Instructions are decoded in the control unit.
- The CPU executes the instructions.
- The result of the execution is stored and the cycle is repeated. If it is stored in primary memory, the memory address is specified via the memory (address) bus and the data is sent through the data bus.
Describe secondary memory.
Relatively slow memory that may be written to, but is non-volatile; its ontents will not be wiped if power is lost. Has a higher capacity to hold data compared to the primary memory. Also known as persistent storage. Examples: Hard disk drives (HDD), solid state drives (SSD), USB flash drives, DVD drives.
Identify the need for secondary memory.
Since RAM is volatile, when a computer starts up, the RAM is empty. Instructions need to be copied into RAM from a persistent memory source. Without secondary memory, a computer would not be able to store instructions and data persistently. Any user data would have to be reinputted every time the user wished to use them.
State some differences between primary and secondary memory.
Most computers have a smaller amount of primary memory and a larger amount of secondary memory.
Primary memory is volatile; it does not retain data when the power is turned off.
Primary memory is more expensive compared to secondary memory.
Primary memory is much faster compared to secondary memory.
Primary memory is directly accessed by the CPU whereas secondary memory is not.
Define operating system.
An operating system (OS) is a set of software that controls the computer’s hardware resources and provides services for computer programs. It acts as an intermediate between software applications and the computer hardware.