Week 4 - Instruction Set Architecture (Part 2) Flashcards

1
Q

What are the primary components of the Von Neumann model?

A

The primary components of the Von Neumann model are:

Memory
Processing Unit (ALU)
Control Unit
Input
Output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the function of the Control Unit in the Von Neumann model?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Instruction Cycle in the Von Neumann architecture?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is stacking in computer architecture, and why is it used?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is addressability in memory systems?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the address space in memory?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does byte-addressable memory differ from word-addressable memory?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between Big Endian and Little Endian memory storage?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the Memory Address Register (MAR) and Memory Data Register (MDR)?

A

MAR: Holds the memory address to be accessed.
MDR: Holds the data to be written to or read from memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does the memory read process work with MAR and MDR?

A

Load the MAR with the address of the data.
The data at that address is fetched and placed in the MDR.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does the memory write process work with MAR and MDR?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Program Counter (PC) in a computer system?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the two key properties of the Von Neumann model?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the significance of sequential execution in the Von Neumann model?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the stack in MIPS architecture, and how is it used?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the Stack Pointer (SP) in MIPS?

A

The Stack Pointer (SP) is a register that points to the top of the stack. In MIPS, it is used to manage function calls by saving and restoring register values to and from the stack.

17
Q

How does the stack grow in MIPS architecture?

A

The stack in MIPS architecture grows downward, meaning that the stack pointer (SP) is decremented when new data is pushed onto the stack.

18
Q

What are temporary registers in MIPS, and how are they used in relation to the stack?

A

Temporary registers (e.g., $t0–$t9) are used to hold intermediate values during calculations. In MIPS, there is no need to save them to the stack before a function call, as they are considered volatile and can be overwritten.

19
Q

What is an example of saving registers to the stack in MIPS assembly?

A
addi $sp, $sp, -12  # Allocate space for three registers on the stack
sw   $s0, 8($sp)    # Save $s0 to the stack
sw   $t0, 4($sp)    # Save $t0 to the stack
sw   $t1, 0($sp)    # Save $t1 to the stack
20
Q

What is the Write Enable signal in memory operations?

A

The Write Enable signal activates the writing process in memory, allowing data from the MDR to be written to the address specified in the MAR.