Assembly Language Flashcards
What is the Von Neumann Architecture?
Itis archietecture model which is a concept of storing both data and instructions in the same memory space.
What are the main components of the CPU in the von Neumann Architecture?
- Control Unit
- Arithmetic and Logical Unit (ALU)
- Registers (including Program Counter, Instruction Register, Address Register, Accumulator)
What are the roles of the Program Counter, Instruction Register, and Address Register in the CPU?
Program counter - Address of the NEXT Instruction
Instruction register - Instruction CURRENTLY being executed or decoded
Address register - either stores the memory address from which data will be fetched, or the address to which data will sent and stored
Accumulator - SHORT - term, intermediate storage of arithmetic and logic data computations
What is the role of the Accumulator in the CPU?
It serves as short-term, intermediate storage for results of arithmetic and logic computations.
What is a system bus?
It is a set of physical connection which allows communication between the CPU, memory, and input/output devices.
What are the three types of system buses in the von Neumann Architecture, and what do they carry?
- Control Bus - Carries commands from the CPU and returns status signals from the devices
- Data Bus - carries the actual data
- Address bus - carries memory addresses from the processor to other components
What is the role of Memory (RAM) in the von Neumann Architecture?
It stores both data and instructions temporarily while the system is running.
What is the purpose of Input/Output Units in the von Neumann Architecture?
They allow the CPU to communicate with external devices like keyboards, screens, and storage drives.
What does the clock cycle do in the Von Neumann Architecture?
It provides a high/low oscillating signal to synchronize (coordinate) CPU actions.
How does the clock affect CPU performance?
- The number of clock cycles per second determines CPU speed, measured in megahertz (MHz) or gigahertz (GHz).
- The rate of the Fetch/Execute Cycle is controlled by the computer’s clock.
How much time does a 1 GHz clock give between ticks, and what happens during that time?
One nanosecond per tick; the CPU tries to start the Fetch/Execute Cycle in that time.
What is pipelining in computer architecture?
Pipelining is when completing an instruction is handed off to other circuitry, allowing the fetch unit to start the next instruction before the current one finishes.
Why is it not exactly true that 1,000 instructions execute in 1,000 clock ticks?
Because even with pipelining, overlaps and delays mean that instructions aren’t completed perfectly one per tick.
What are the structures in the Harvard Architecture?
- Separate memory for instructions and Data
- Parallelism
What are the purposes of the two structures in the Harvard Architecture?
- There are two memory spaces inline VNA, where one is for instructions and the other one for data
- Instructions and data can be fetched at the same time, leading to faster execution.
What is the MIPS R4000, and how does it differ from the von Neumann architecture?
The MIPS R4000 is a microprocessor without interlocked pipeline stages. It is similar to von Neumann but has separate interfaces for instructions and data, resembling a modified Harvard architecture.
What is the significance of the “modified Harvard architecture” in the MIPS R4000?
It allows separate handling of instructions and data, improving performance by reducing bottlenecks in data processing.
What are the key features of the MIPS R4000 microprocessor?
- First 64-bit architecture.
- Integrated caches (on-chip and off-chip secondary cache).
- Integrated Floating Point Unit (FPU).
What was the performance and technical setup of the MIPS R4000 when it was implemented in 1992?
- Deep pipeline.
- 1.4 million transistors.
- Initially 100 MHz with over 50 MIPS performance.
What makes the MIPS R4000 programming model simple and efficient?
It has a compact set of instructions with a regular format (MIPS III), making it easy to translate high-level code to machine language.
Where is the IF tag check done in the MIPS R4000 pipeline?
The IF tag check is performed in the Register File (RF) stage.
What happens in the IF and IS stages of the MIPS R4000 pipeline?
IF: First half of instruction fetch; PC selection and initiation of instruction cache access.
IS: Second half of instruction fetch; completes instruction cache access.
What occurs during the RF and EX stages in the MIPS R4000 pipeline?
RF: Instruction decode, register fetch, hazard checking, and instruction cache hit detection.
EX: Execution; includes effective address calculation, ALU operations, branch target completion, and data cache access.
Describe the functions of the DF, DS, TC, and WB stages in the MIPS R4000 pipeline.
DF: First half of data cache access.
DS: Second half of data fetch; completes data cache access.
TC: Tag check to determine whether the data cache access hit.
WB: Write-back for loads and register-register operations.