Week 4 - Instruction Set Architecture (Part 2) Flashcards
What are the primary components of the Von Neumann model?
The primary components of the Von Neumann model are:
Memory
Processing Unit (ALU)
Control Unit
Input
Output
What is the function of the Control Unit in the Von Neumann model?
The Control Unit directs the execution of instructions by fetching, decoding, and executing them. It controls the flow of data between the CPU, memory, and input/output devices.
What is the Instruction Cycle in the Von Neumann architecture?
The instruction cycle consists of three main steps:
Fetch: Retrieve the instruction from memory.
Decode: Interpret the instruction.
Execute: Perform the action specified by the instruction.
What is stacking in computer architecture, and why is it used?
Stacking refers to using a stack (LIFO structure) to store temporary data such as function parameters, local variables, and return addresses during function calls. It is used to manage data efficiently during recursive calls and nested functions.
What is addressability in memory systems?
Addressability refers to the number of bits accessed in a single memory operation. For example, systems can be byte-addressable (accessing 8 bits) or word-addressable (accessing multiple bytes in one operation).
What is the address space in memory?
The address space is the total number of uniquely addressable memory locations in a system. For example, a 16-bit address space allows for
216 or 65,536 unique addresses.
How does byte-addressable memory differ from word-addressable memory?
In byte-addressable memory, each byte has a unique address. In word-addressable memory, each word (a group of bytes) has a unique address, and the word size can vary (e.g., 16-bit, 32-bit, or 64-bit).
What is the difference between Big Endian and Little Endian memory storage?
Big Endian: The most significant byte (MSB) is stored at the lowest memory address.
Little Endian: The least significant byte (LSB) is stored at the lowest memory address.
What are the Memory Address Register (MAR) and Memory Data Register (MDR)?
MAR: Holds the memory address to be accessed.
MDR: Holds the data to be written to or read from memory.
How does the memory read process work with MAR and MDR?
Load the MAR with the address of the data.
The data at that address is fetched and placed in the MDR.
How does the memory write process work with MAR and MDR?
Load the MAR with the address and MDR with the data to be written.
The data is written to the address in MAR when the write signal is activated.
What is the Program Counter (PC) in a computer system?
The Program Counter (PC) holds the address of the next instruction to be executed and is incremented after each instruction unless a control transfer instruction alters the flow.
What are the two key properties of the Von Neumann model?
Stored program: Instructions and data are stored in the same memory.
Sequential instruction processing: Instructions are fetched and executed one at a time in sequential order unless altered by control flow instructions.
What is the significance of sequential execution in the Von Neumann model?
Sequential execution means that the CPU fetches and executes instructions one after another, with the Program Counter (PC) advancing sequentially unless there is a branch or jump instruction.
What is the stack in MIPS architecture, and how is it used?
The stack is a memory structure used to store temporary data, such as local variables, function arguments, and return addresses. It follows a Last-In-First-Out (LIFO) principle and grows downward in memory in MIPS architecture.