Nepal Engineering Council · Electronics, Communication & Information Engineering · Chapter 4
Computer Organization and Embedded System
Tap an option to check it. Wrong picks show the right answer and the hint.
475 questions in 6 syllabus topics · 23 tagged from past exams or NEC model sets.
4.1 Control and central processing units
115 questions · ACtE0401
1. What is an alternative name for pipelining?
Aasadh 2081 examShow hintHide hint
Pipelining divides processing into stages. What manufacturing concept does this resemble?
Show answerHide answer
Answer: A. Assembly line operation
Pipelining is called assembly line operation because it processes instructions in stages, similar to assembly lines where each stage performs specific tasks.
2. In indexed addressing MOV 5(R1), LOC, effective address is?
Show hintHide hint
Displacement plus register content.
Show answerHide answer
Answer: D. EA = 5+[R1]
Indexed addressing: EA = displacement + [register]. Here: EA = 5 + [R1]
3. What is main function of control unit?
Show hintHide hint
First step of fetch-decode-execute.
Show answerHide answer
Answer: A. Fetch instructions
Control unit's primary function is fetching instructions from memory during the fetch phase of execution cycle.
4. What is fetch-decode-execute cycle order?
Show hintHide hint
Sequential processing.
Show answerHide answer
Answer: A. Fetch, decode, execute
Correct order: Fetch instruction → Decode instruction → Execute instruction → Store result
5. What addressing mode accesses stack?
Show hintHide hint
Through register/pointer.
Show answerHide answer
Answer: C. Indirect
Indirect addressing mode is used for stack access through stack pointer register.
6. What is microinstruction in indirect control?
Show hintHide hint
Indirect method stores next address.
Show answerHide answer
Answer: B. Stored in memory
In indirect microinstruction, next microinstruction address is stored in memory location.
7. What is pipeline having multiple stages?
Show hintHide hint
CPU instruction processing.
Show answerHide answer
Answer: A. Instruction pipeline
Instruction pipeline divides instruction processing into multiple stages for parallel execution.
8. What is the primary function of the Control Unit in CPU architecture?
Show hintHide hint
Think about the orchestration of instruction processing in the fetch-decode-execute cycle.
Show answerHide answer
Answer: B. Fetch, decode, and execute instructions from memory
The Control Unit is the central orchestrator of the CPU that manages the entire instruction execution process. It fetches instructions from the main memory using the Program Counter, decodes the instruction to understand what operation must be performed, and then executes the instruction by coordinating with the ALU and other components. The Control Unit generates appropriate control signals and timing pulses that direct every operation in the CPU. Without the Control Unit, the CPU would be unable to coordinate its various components or process instructions in the correct sequence. The Control Unit essentially acts as the 'traffic director' of the processor, ensuring that each instruction flows through the processor in an orderly fashion and that all necessary operations occur at the right time.
9. Explain the concept of Control Memory and its role in microinstruction execution.
Show hintHide hint
Consider the relationship between microinstructions and the basic control operations in the CPU.
Show answerHide answer
Answer: B. A special memory that stores microinstructions and microprogram control sequences
Control Memory (also called Microprogram Memory or ROM) is a specialized storage within the Control Unit that contains the microinstructions and microprograms that define how the CPU executes each machine instruction. Each machine-level instruction (like ADD, MOV, etc.) is broken down into a sequence of microinstructions - smaller, more primitive operations that the hardware can directly execute. These microinstructions include signals for reading from registers, performing ALU operations, writing results, and managing data paths. The Control Memory typically uses ROM (Read-Only Memory) because these microprograms are fixed and don't change during program execution. When the Control Unit needs to execute a machine instruction, it looks up the corresponding microprogram in Control Memory and executes the sequence of microinstructions. This design allows for the implementation of complex instruction sets without making the hardware overly complicated. The size and organization of Control Memory directly impact the complexity of the machine instruction set that can be supported.
10. What is the purpose of microinstruction addressing and sequencing?
Show hintHide hint
How does the Control Unit know which microinstruction to fetch next from Control Memory?
Show answerHide answer
Answer: A. To determine the order in which microinstructions are executed from Control Memory
Microinstruction addressing and sequencing is the mechanism that determines which microinstruction should be executed next in the microprogram. When a machine instruction is decoded, the Control Unit must fetch a sequence of microinstructions from Control Memory to execute that instruction. The microinstruction address sequencing can be implemented in several ways: (1) Sequential - simply incrementing the microprogram counter to fetch the next microinstruction in sequence; (2) Branching - jumping to a different address in Control Memory based on specific conditions; (3) Direct addressing - using bits within the microinstruction itself to specify the address of the next microinstruction; (4) Conditional branching - selecting between different microinstruction sequences based on condition codes. The design of the microinstruction sequencing logic affects both the speed of instruction execution and the complexity of the Control Unit. Efficient sequencing requires careful consideration of data dependencies, pipelining opportunities, and the conditional branching requirements of different machine instructions.
11. Which format is used for microinstruction design in hardwired control units?
Show hintHide hint
Think about the trade-off between Control Memory size and execution speed.
Show answerHide answer
Answer: B. Horizontal microinstruction format with individual control signals
Microinstruction formats in hardwired and microprogrammed control units are typically designed using horizontal or vertical approaches. Horizontal microinstruction format directly encodes individual control signals as separate bits in the microinstruction word. Each bit or group of bits represents a specific control action (e.g., read from register, write to ALU, assert a particular control line). This format has a very wide microinstruction word but offers maximum parallelism - multiple control operations can occur simultaneously in a single microinstruction cycle. Although horizontal format requires more Control Memory (due to the large word width), it enables faster instruction execution because fewer microinstruction cycles are needed. In contrast, vertical microinstruction format is more compact but requires more microinstruction cycles to achieve the same operations, as control actions must be encoded and partially decoded. For high-performance processors, horizontal format is preferred despite the larger memory footprint. Many modern designs use a hybrid approach, combining some aspects of both formats to balance memory efficiency with execution speed.
12. What is Computer Configuration in the context of CPU design?
Show hintHide hint
Consider how different components of a processor are arranged and connected to form a functional unit.
Show answerHide answer
Answer: B. The organization and interconnection of CPU components (ALU, registers, buses, memory)
Computer Configuration refers to the architectural design and physical organization of how CPU components are interconnected to form a cohesive processing system. This includes decisions about: (1) Number and types of registers available; (2) The width and organization of the data, address, and control buses; (3) The connection between the ALU and registers; (4) The placement and role of the Control Unit; (5) The integration of cache memory within the CPU; (6) The address decoding and memory access pathways. Different configurations lead to different processor characteristics - a simple configuration might have a single 32-bit bus and basic registers, while a modern configuration might have multiple buses, extensive register sets, and multi-level cache hierarchies. The configuration also determines the instruction set architecture (ISA) and how instructions interact with hardware resources. Von Neumann architecture with separate control and data paths differs significantly from modified Harvard architectures used in embedded systems. Configuration decisions directly impact processor performance, cost, power consumption, and complexity. These decisions must balance practical constraints (chip size, manufacturing capability, power dissipation) with performance objectives.
13. Describe the structure and organization of a typical Arithmetic and Logic Unit (ALU).
Show hintHide hint
What core operations does the ALU need to support for program execution?
Show answerHide answer
Answer: B. A functional unit that performs arithmetic and logic operations on operands from registers
The Arithmetic and Logic Unit (ALU) is a fundamental functional unit within the CPU responsible for performing all arithmetic and logical operations required by the instruction set. The ALU typically contains: (1) Arithmetic circuits for addition, subtraction, multiplication, and division using binary arithmetic; (2) Logic circuits for AND, OR, XOR, NOT operations; (3) Shift and rotate circuits for bit manipulation; (4) Comparison circuits for detecting condition flags (zero, overflow, carry, sign). The ALU receives two operands (usually from registers) on its input lines, performs the specified operation based on control signals from the Control Unit, and produces a result that is typically stored back in a register or used for conditional branching. Modern ALUs incorporate multiple functional units that can operate in parallel - for example, having a separate adder/subtractor unit, multiplier unit, and logic unit working simultaneously. The width of the ALU (8-bit, 16-bit, 32-bit, 64-bit) determines the size of operands it can handle and significantly impacts processor performance. Advanced ALU designs include support for floating-point operations, SIMD (Single Instruction Multiple Data) operations, and specialized functions. The ALU also generates status/condition flags (stored in the flag register) that indicate properties of the result - these flags are crucial for conditional instructions and program flow control.
14. What are the different instruction formats and how do they affect CPU design?
Show hintHide hint
Think about RISC processors with fixed-length instructions versus CISC processors with variable-length instructions.
Show answerHide answer
Answer: B. Fixed-length and variable-length formats, each with trade-offs in decoding complexity and instruction density
Instruction format design significantly impacts CPU architecture and performance. Fixed-length instruction formats (like in RISC architectures) have constant word length (typically 32 or 64 bits), where each field has a fixed position. Advantages include: simplified instruction decoding hardware, efficient pipeline operation, consistent fetch times, and easier parallel instruction processing. However, fixed-length instructions may waste bits and require more instructions to achieve complex operations. Variable-length instruction formats (like in x86 and other CISC architectures) allow instructions of different lengths (1-15 bytes in x86), optimizing code density and reducing memory/cache requirements. However, variable-length formats complicate decoding logic, require more complex sequencing, and can create pipeline hazards due to unpredictable instruction boundaries. Modern hybrid approaches include: (1) Primarily fixed-length with some variable-length extensions (ARM Thumb mode); (2) Multiple fixed lengths (MIPS has some 16-bit instructions); (3) Pre-decoding to identify instruction boundaries before main decoding stage. The choice of instruction format affects not only hardware complexity but also code size, memory bandwidth requirements, cache efficiency, and instruction-level parallelism achievable through pipelining. Designers must balance instruction density (code size) against decoding simplicity and pipeline efficiency.
15. Explain the concept of addressing modes and their role in instruction execution.
Show hintHide hint
Consider how an instruction specifies where its operands are located.
Show answerHide answer
Answer: A. Methods for calculating the effective address of operands in memory
Addressing modes are the various methods by which instructions specify the location (effective address) of their operands. Different addressing modes provide flexibility in accessing data and enable different programming techniques: (1) Immediate addressing - operand value is directly embedded in the instruction; (2) Direct/Absolute addressing - instruction contains the absolute memory address of operand; (3) Register addressing - operand is located in a register; (4) Indirect addressing - instruction contains an address of a register that holds the operand's address; (5) Indexed addressing - effective address = base address + index register value; (6) Relative addressing - effective address calculated relative to current instruction (used for jumps); (7) Implied addressing - operand location is implicitly determined by the instruction type. Each addressing mode has specific applications: immediate for constants, direct for global variables, indexed for array access, indirect for dynamic data structures, relative for position-independent code. The number and types of addressing modes supported by a processor affect instruction set completeness, code size, and programming flexibility. RISC processors typically support fewer, simpler addressing modes to simplify hardware, while CISC processors support many complex addressing modes. The effective address calculation itself can require additional hardware (adders, shifters) and may introduce pipeline delays. Addressing mode selection during compilation significantly impacts program size and execution efficiency.
16. What is data transfer and manipulation in the context of CPU operations?
Show hintHide hint
Think about instructions like MOV, LOAD, STORE, and bitwise operations.
Show answerHide answer
Answer: A. Moving data between registers and memory, and performing operations like shift, rotate, and bit manipulation
Data transfer and manipulation instructions form a fundamental category of CPU operations essential for program execution. Data transfer operations include: (1) Register-to-register moves; (2) Load operations - transferring data from memory to registers; (3) Store operations - transferring data from registers to memory; (4) I/O operations - data transfer with peripheral devices. Data manipulation operations include: (1) Shift operations - left/right shifting bits; (2) Rotate operations - circular bit rotations; (3) Bitwise logical operations - AND, OR, XOR, NOT for individual bit manipulation; (4) Bit extraction and insertion operations; (5) Byte/word swapping for endianness conversion. These operations are essential for: array and string processing, extracting fields from packed data, implementing algorithms that require bit-level operations, and data format conversions. The efficiency of these operations significantly impacts overall program performance, especially for data-intensive applications. Modern processors include specialized shift and rotate units within the ALU to execute these operations in single or few cycles. Load/store operations are particularly critical because they require memory access which is much slower than register operations. Cache hierarchies and load/store optimization techniques are essential for maintaining processor performance despite this bottleneck. Effective addressing mode support is crucial for making data transfer operations efficient.
17. Compare and contrast RISC and CISC processor design philosophies.
Show hintHide hint
Consider the fundamental design tradeoffs between instruction complexity and execution speed.
Show answerHide answer
Answer: A. RISC uses simple instructions and many registers; CISC uses complex instructions and fewer registers
RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer) represent two major processor design philosophies with fundamental differences: RISC Design: (1) Simple, atomic instructions that execute in single cycle; (2) Large register file (32-128+ registers) for holding operands and intermediate results; (3) Only LOAD/STORE instructions access memory; (4) Uniform instruction format enabling efficient pipelining; (5) Simpler control logic and decoding; (6) Higher clock rates possible due to simpler operations; (7) Examples: MIPS, ARM, PowerPC. CISC Design: (1) Complex instructions that perform multiple operations (e.g., LOAD, operate, STORE in one instruction); (2) Smaller register file (8-16 registers) due to implicit operand locations; (3) Many addressing modes supporting complex memory access patterns; (4) Variable-length instruction format; (5) More complex control logic for decoding and execution; (6) Lower clock rates but fewer instructions needed per program; (7) Examples: x86, x86-64, m68k. Performance Implications: RISC achieves high performance through parallelism and pipelining, requiring more instructions but enabling faster cycles and simpler hardware. CISC achieves efficiency through instruction density, requiring fewer instructions but with more complex hardware. Modern processors increasingly adopt hybrid approaches: modern x86 processors internally decode CISC instructions into RISC-like micro-operations; ARM has added more complex instructions while maintaining RISC core; many RISC architectures added compression extensions for better code density. The RISC vs CISC debate is less about which is definitively better and more about different tradeoffs suitable for different applications.
18. Explain the concept of instruction pipelining and how it improves processor performance.
Show hintHide hint
Think of an assembly line where different stages process different instructions in parallel.
Show answerHide answer
Answer: A. A technique where multiple instructions are executed simultaneously by dividing execution into pipeline stages
Instruction pipelining is a critical performance enhancement technique where instruction execution is divided into multiple stages, and different instructions are processed in different stages simultaneously. In a classic 5-stage pipeline: (1) Fetch (IF) - retrieve instruction from memory; (2) Decode (ID) - decode instruction and read operands from registers; (3) Execute (EX) - perform ALU operation; (4) Memory (MEM) - access memory if needed; (5) Writeback (WB) - write results back to registers. With pipelining, while instruction N is in the execute stage, instruction N+1 is in decode, instruction N+2 is in fetch, etc. Ideally, the pipeline completes one instruction per cycle after filling, compared to 5 cycles per instruction without pipelining - a 5x speedup! However, pipelining introduces complications: (1) Pipeline hazards - dependencies between instructions; (2) Data hazards - when an instruction depends on results from previous instructions; (3) Control hazards - when branch instructions change the instruction flow; (4) Structural hazards - when multiple instructions need the same hardware resource. Modern processors use sophisticated techniques to handle hazards: (1) Forwarding/bypassing - directly routing results to dependent instructions without waiting for writeback; (2) Pipeline stalling - delaying instructions when hazards occur; (3) Branch prediction - speculating branch directions to avoid stalling on branches; (4) Out-of-order execution - executing independent instructions ahead of dependent ones. Deeper pipelines (10-20+ stages in modern processors) increase clock frequency but intensify hazard problems and penalty costs when hazards occur. Cache misses cause pipeline stalls lasting many cycles. The effectiveness of pipelining depends on code characteristics and hazard frequency.
19. What are pipeline hazards and how can they be mitigated?
Show hintHide hint
Consider what prevents a pipeline from sustaining one instruction per cycle throughput.
Show answerHide answer
Answer: A. Situations where pipeline stalls occur due to instruction dependencies or resource conflicts
Pipeline hazards are situations where the pipeline must stall (introduce delays) because the normal flow of instructions cannot proceed. Three main types: DATA HAZARDS occur when an instruction needs a value produced by a preceding instruction not yet available: (1) Read-After-Write (RAW) - most common, instruction needs result from previous instruction; (2) Write-After-Read (WAR) - write to a register needed by preceding instruction (rare in simple pipelines); (3) Write-After-Write (WAW) - multiple writes to same register. Example: ADD R1, R2, R3; ADD R4, R1, R5 - second instruction needs R1 from first. CONTROL HAZARDS occur when branch instructions change instruction flow unpredictably: When a branch instruction is decoded, the next instruction to fetch isn't known until the branch is resolved. The processor may have fetched and partially executed wrong instructions. Example: BEQ R1, L1; ADD R2, R3, R4 - which instruction comes after BEQ? STRUCTURAL HAZARDS occur when multiple instructions need the same hardware resource simultaneously: For example, both an instruction fetch and a load/store operation needing memory access, or multiple instructions needing the ALU. Mitigation techniques: (1) FORWARDING/BYPASSING - route results directly to dependent instructions bypassing writeback; (2) INSTRUCTION SCHEDULING - compiler reorders instructions to avoid hazards; (3) BRANCH PREDICTION - predict branch outcomes, speculatively execute instructions, and correct if prediction wrong; (4) SPECULATION WITH RECOVERY - speculate past uncertain instructions, recovering if speculation incorrect; (5) MULTIPLE PIPELINES - replicate hardware to avoid structural conflicts; (6) REGISTER RENAMING - eliminate WAW and WAR hazards by renaming registers; (7) OUT-OF-ORDER EXECUTION - execute independent instructions out of order to hide hazard latencies. The effectiveness of hazard mitigation significantly impacts pipelined processor performance.
20. Explain parallel processing and its relationship to multiprocessor systems.
Show hintHide hint
Consider how multiple CPUs or cores on a single chip can work together.
Show answerHide answer
Answer: A. Using multiple processors or multiple cores to execute different programs or parts of programs simultaneously
Parallel processing involves using multiple processing units working simultaneously to solve problems faster. This can be achieved through: (1) MULTIPROCESSOR SYSTEMS - multiple independent processors connected via shared memory and buses, each capable of independent computation; (2) MULTI-CORE PROCESSORS - multiple processor cores on a single chip, sharing some resources (cache levels, memory controller) but with independent execution resources; (3) GPU ACCELERATION - specialized graphics processors with massive parallelism for data-parallel tasks. Parallel processing is essential for modern computing because single-processor performance has reached physical limits (heat dissipation, power consumption). Forms of parallelism include: (1) TASK PARALLELISM - different processors execute different programs or different threads of same program; (2) DATA PARALLELISM - same operation applied to different data elements on different processors (SIMD, MIMD); (3) PIPELINE PARALLELISM - different stages of a computation on different processors. Challenges in parallel processing: (1) SYNCHRONIZATION - coordinating access to shared data to prevent race conditions; (2) LOAD BALANCING - distributing work evenly among processors; (3) COMMUNICATION OVERHEAD - time spent moving data between processors may exceed computation benefits; (4) MEMORY CONTENTION - multiple processors contending for memory access; (5) CACHE COHERENCE - ensuring all processors see consistent view of shared memory. Multiprocessor systems require sophisticated designs: (1) Cache coherence protocols (write-through, write-back, invalidation-based); (2) Interconnection networks optimized for low-latency, high-bandwidth communication; (3) Memory hierarchy designed for multiprocessor scenarios; (4) Synchronization primitives (locks, barriers, memory fences). Effective parallel programming requires careful design to minimize synchronization overhead and communication costs. The speedup achievable by parallel processing is limited by Amdahl's Law: speedup depends on the fraction of code that can be parallelized and the number of processors available.
21. Explain the design and function of the Program Counter (PC) in CPU architecture.
Show hintHide hint
How does the CPU know which instruction to fetch next?
Show answerHide answer
Answer: A. A register that holds the address of the currently executing instruction
The Program Counter (PC), also called Instruction Pointer (IP) in some architectures, is a fundamental CPU register that holds the memory address of the instruction currently being executed or about to be fetched. During normal instruction execution: (1) PC is used to fetch the current instruction from memory; (2) After fetching, PC is typically incremented by the instruction length to point to the next instruction; (3) When a branch instruction is executed, PC is loaded with the target address rather than incremented. The PC is essential for: (1) SEQUENTIAL PROGRAM FLOW - allowing instructions to be executed in order; (2) BRANCHING - enabling jump instructions to change program flow; (3) RETURN ADDRESSES - storing where to resume after function calls (saved on stack); (4) EXCEPTION HANDLING - recording where exceptions occurred. PC width determines the maximum addressable memory - a 32-bit PC can address 2^32 different memory locations. In fixed-instruction-length architectures (RISC), PC typically increments by 4 bytes per instruction. In variable-length architectures, incrementing depends on instruction length. Special considerations: (1) PIPELINE - PC must be managed carefully in pipelined processors; (2) BRANCH PREDICTION - processors may speculatively update PC before branch resolves; (3) VIRTUAL MEMORY - PC contains virtual addresses translated to physical by MMU; (4) INTERRUPTS - PC must be saved when interrupts occur; (5) DEBUGGING - PC is critical for debuggers to track program execution. The design and management of PC is crucial for correct program execution and represents one of the simplest yet most important CPU components.
22. What is the role of Status/Condition Flags (also called Flags Register) in CPU operation?
Show hintHide hint
Think about how conditional branches (if statements) work in assembly language.
Show answerHide answer
Answer: A. Storing status bits that reflect results of ALU operations for conditional branching and program flow control
The Status/Condition Flags Register (or Flags Register/EFLAGS in x86) contains individual flag bits that reflect properties of the most recent ALU operation or system state. Common flags: (1) ZERO FLAG (Z) - set if result was zero, used for equality testing; (2) SIGN FLAG (S/N) - set if result was negative; (3) CARRY FLAG (C) - set if arithmetic operation produced carry/borrow; (4) OVERFLOW FLAG (V) - set if signed arithmetic overflowed; (5) PARITY FLAG (P) - set if result had even parity; (6) HALF-CARRY FLAG (H) - set if carry from lower nibble; (7) INTERRUPT FLAG (I) - enables/disables interrupts; (8) TRAP FLAG (T) - enables single-step debugging. These flags enable: (1) CONDITIONAL EXECUTION - branches based on flags (BZ, BNZ, BV, BNC, etc.); (2) LOOP CONTROL - loop conditions often use flags; (3) ERROR CHECKING - overflow flag indicates computation errors; (4) COMPARISON OPERATIONS - subtraction sets flags for comparison without storing result; (5) PROGRAM FLOW CONTROL - essential for if-else, loops, and switch statements. Architectural considerations: (1) FLAG GENERATION - all ALU operations must set appropriate flags; (2) FLAG PRESERVATION - flags must be preserved across function calls if needed; (3) FLAG LATENCY - flags must be available quickly for dependent branches; (4) FLOATING-POINT FLAGS - FP exceptions stored separately in FP status register. Different ISAs define flags differently - x86 has many flags, ARM has 4 primary flags, MIPS has none (conditional test determines branch). Proper use of flags is essential for efficient conditional logic and is typically handled automatically by compilers.
23. Describe the role of general-purpose registers and special-purpose registers in CPU design.
Show hintHide hint
Think about registers needed for holding data versus managing program execution.
Show answerHide answer
Answer: A. General-purpose for data/address storage, special-purpose for specific functions (PC, SP, Flags, etc.)
CPU registers are high-speed storage locations that hold operands and results. They are organized into two categories: GENERAL-PURPOSE REGISTERS: Available for programmer use to hold data and addresses. Typical ISAs provide 8-32 general-purpose registers. Advantages: (1) Extremely fast access (zero latency); (2) Reduce memory traffic; (3) Enable efficient code generation; (4) Support register allocation by compilers. Usage patterns: (1) Holding loop counters and variables; (2) Temporary operand storage; (3) Return values from functions; (4) Arguments to functions; (5) Saved state across function calls. Some ISAs designate roles (accumulator for results, register for specific purposes) but most modern ISAs allow flexible use. SPECIAL-PURPOSE REGISTERS: Dedicated to specific functions in program/system control: (1) PROGRAM COUNTER (PC/IP) - holds next instruction address; (2) STACK POINTER (SP) - points to top of stack for PUSH/POP; (3) STATUS/FLAGS REGISTER - holds condition codes; (4) MEMORY MANAGEMENT REGISTERS - page tables, TLB entries; (5) INSTRUCTION REGISTER - holds current instruction being decoded; (6) MEMORY ADDRESS REGISTER (MAR) - holds address for memory operations; (7) MEMORY DATA REGISTER (MDR) - holds data for memory operations. Some ISAs allow limited programmer access to special-purpose registers while others restrict access. Architectural considerations: (1) REGISTER COUNT - more registers reduce memory traffic but increase chip complexity; (2) REGISTER WIDTH - must match or exceed data word size; (3) REGISTER ORGANIZATION - some ISAs have register windows for function calls; (4) CONTEXT SWITCHING - saving/restoring register state is critical for multitasking. The distinction between general and special-purpose reflects the different needs: general-purpose flexibility for diverse computation versus special-purpose efficiency for critical system functions.
24. In a pipelined processor with control hazards, what is branch prediction and why is it important?
Show hintHide hint
Why does a pipelined processor have a problem with branch instructions?
Show answerHide answer
Answer: A. A technique to guess whether a branch will be taken and speculatively fetch/execute instructions from the predicted path
Branch prediction is a critical optimization technique in modern pipelined processors that addresses the control hazard problem. Without branch prediction, when a branch instruction is decoded, the processor doesn't know the next instruction address until the branch condition is evaluated (which occurs late in the pipeline). This creates a pipeline stall lasting many cycles. Branch prediction solves this by guessing the branch outcome early and speculatively fetching instructions from the predicted path. If prediction is correct, execution continues without stall. If prediction is wrong (mispredict), the speculatively executed instructions are discarded and execution restarts from correct path. Prediction accuracy is crucial - even 90% accurate prediction is very useful because on 10% of branches a small stall penalty occurs. PREDICTION METHODS: (1) STATIC - fixed prediction (always-taken, always-not-taken) based on instruction characteristics; (2) DYNAMIC - hardware learns branch behavior: (a) 1-bit predictor - flips on each misprediction; (b) 2-bit saturating counter - requires 2 misses to change prediction, handles occasional branches differently; (c) Pattern history table (PHT) - indexed by instruction address, stores counters; (3) CORRELATING PREDICTOR - prediction depends on outcomes of previous branches; (4) TOURNAMENT PREDICTOR - multiple predictors compete, chooser selects best. Modern processors use sophisticated predictors achieving 95%+ accuracy. INDIRECT BRANCH PREDICTION: Return address stacks cache function return addresses. Indirect branch target buffers cache previously seen target addresses. PENALTY: Modern processors stall 10-20+ cycles on misprediction due to deep pipelines. Branch misprediction is a major performance limiter alongside cache misses. Effective branch prediction is essential for high-performance execution, especially as pipelines deepen and execution becomes more speculative.
25. Explain superscalar execution and its benefits for processor performance.
Show hintHide hint
What if a processor could execute more than one instruction per cycle?
Show answerHide answer
Answer: A. Issuing and executing multiple instructions per clock cycle from a sequential instruction stream
Superscalar execution is an advanced processor design technique where multiple independent instructions are issued and executed in parallel during a single clock cycle, even from a sequential instruction stream. Unlike VLIW (Very Long Instruction Word) processors where the compiler explicitly schedules multiple instructions, superscalar processors use hardware logic to dynamically identify independent instructions that can execute together. Key aspects: (1) INSTRUCTION FETCH - fetch multiple instructions per cycle from instruction cache; (2) INSTRUCTION DISPATCH - decode multiple instructions and check for dependencies; (3) PARALLEL EXECUTION UNITS - multiple ALUs, multipliers, load/store units allow independent operations; (4) REGISTER RENAMING - eliminates false dependencies (WAW and WAR hazards) allowing more parallelism; (5) OUT-OF-ORDER EXECUTION - execute independent instructions out of order, completing in different order than issued. Example: four 3-issue superscalar can execute up to 4 instructions per cycle from independent operations. Benefits: (1) IMPROVED IPC (Instructions Per Cycle) - from 1 to 2-4+ depending on degree; (2) FREQUENCY INDEPENDENCE - increased throughput without raising clock frequency; (3) BACKWARD COMPATIBLE - works with sequential instruction streams; (4) DYNAMIC OPTIMIZATION - adapts to instruction-level parallelism in actual code. Challenges: (1) COMPLEXITY - multiple fetch, dispatch, execution stages require sophisticated logic; (2) POWER CONSUMPTION - multiple execution units consume significant power; (3) DEPENDENCY DETECTION - must efficiently detect all data dependencies; (4) ISSUE LOGIC - complexity grows quadratically with issue width; (5) MEMORY HIERARCHY - must supply multiple instructions per cycle; (6) CODE CHARACTERISTICS - actual IPC varies greatly with code; (7) VERIFICATION - testing is extremely complex. Modern processors are heavily superscalar: modern x86 (Intel, AMD), ARM, MIPS use 4-6 wide issue. Diminishing returns exist - moving from 3-wide to 4-wide is harder than 2-wide to 3-wide. Out-of-order superscalar is one of most power-hungry components of modern processors.
26. What is speculative execution and what are the associated risks?
Show hintHide hint
Modern processors execute instructions that might not actually be needed - what could go wrong?
Show answerHide answer
Answer: A. Executing instructions ahead of branch/load resolution and discarding if prediction was wrong; risks include security vulnerabilities and power waste
Speculative execution is a fundamental optimization in modern processors where instructions are executed before it's certain they will actually be needed, based on predictions of branch outcomes or load/store dependencies. Examples: (1) Branch prediction allows speculative execution down predicted path; (2) Load speculation in out-of-order processors executes loads before preceding stores are resolved; (3) Address speculation when load address depends on result of previous instruction. Benefits: (1) Masks branch/load latencies; (2) Enables deeper pipelines and higher frequencies; (3) Improves out-of-order execution efficiency. Risks and challenges: (1) POWER WASTE - executing speculative instructions that don't contribute to final result wastes energy; (2) POLLUTION - speculative loads fill caches with data not used, evicting useful data; (3) EXCEPTION HANDLING - exceptions in speculative instructions must be suppressed/deferred; (4) PRECISION - interrupts during speculation can cause imprecise exceptions; (5) SECURITY VULNERABILITIES - (most critical) speculative execution enables Spectre and Meltdown attacks where timing differences from cache state leaked through speculation can reveal secrets (encryption keys, passwords, etc.). Spectre/Meltdown: Attackers trick processor into speculatively executing code that accesses secret data, then observe timing/cache effects to deduce data values even though speculative execution is rolled back. This led to: (1) Microcode patches disabling some speculation; (2) Instruction set extensions (LFENCE) to prevent speculation; (3) Significant performance penalties (5-30% depending on workload); (4) Hardware isolation mechanisms (IBRS, STIBP); (5) Process isolation improvements; (6) Flushing caches on context switches. The Spectre/Meltdown vulnerabilities revealed fundamental security issues with modern CPU designs and created ongoing tension between performance (enabled by speculation) and security.
27. What is the purpose of the control unit in a CPU?
NEC model setShow hintHide hint
The control unit orchestrates CPU operations. What coordinates all the different parts?
Show answerHide answer
Answer: C. To interpret instructions and control the flow of data within the CPU
The control unit's primary purpose is to interpret instructions and control the flow of data within the CPU. Specifically, it: (1) Fetches instructions from memory, (2) Decodes the instruction to determine what operation is needed, (3) Sends control signals to other CPU components to execute the instruction, (4) Manages the instruction sequence and program counter, (5) Coordinates timing and synchronization. The control unit directs: (1) The ALU (Arithmetic Logic Unit) - which performs arithmetic and logical operations, (2) Memory operations - for storing and retrieving data, (3) Register operations - for data movement and storage. Think of the control unit as the 'traffic controller' of the CPU. Other components have specific functions: the ALU performs calculations, registers store data, memory stores programs and data. But the control unit orchestrates how all these parts work together. Without the control unit, the CPU would be like an orchestra without a conductor - individual instruments working but not in harmony. The control unit implements the fetch-decode-execute cycle.
28. An instruction set refers to
NEC model setShow hintHide hint
Instruction set is hardware-level. What does a processor directly understand?
Show answerHide answer
Answer: B. instructions that a processor can execute
An instruction set refers to the complete set of machine instructions that a processor can execute. It's the basic instruction set that the CPU natively understands and can perform. Each instruction set is processor-specific and includes: (1) Arithmetic operations (ADD, SUB, MUL, DIV), (2) Logical operations (AND, OR, XOR, NOT), (3) Memory operations (LOAD, STORE), (4) Control flow (JUMP, CALL, RETURN), (5) I/O operations (INPUT, OUTPUT). Examples of instruction sets: (1) x86/x86-64 (Intel/AMD processors), (2) ARM (mobile processors), (3) RISC-V (open standard), (4) MIPS. Characteristics: (1) Processor-specific - Different processors have different instruction sets, (2) Machine-level - In binary or assembly form, (3) Hardware implementation - Directly executed by CPU circuits. This is different from: (1) Programming language syntax - which is a higher-level abstraction, (2) I/O operations - which are part of but not the entirety of instruction set, (3) Printing commands - which don't constitute an instruction set. The instruction set defines what a processor can do at the most fundamental level.
29. The CPI (Cycles Per Instruction) in an ideal pipeline is:
NEC model setShow hintHide hint
In a perfect pipeline with no stalls, how many cycles per instruction?
Show answerHide answer
Answer: B. 1
In an ideal pipeline with no stalls, dependencies, or hazards, the CPI (Cycles Per Instruction) is 1. This means one instruction completes per clock cycle after the initial pipeline fill. A well-designed pipeline can achieve CPI close to 1 through techniques like superscaling. However, practical pipelines have stalls due to data hazards, control hazards, and cache misses, increasing the actual CPI above 1.
30. Which of the following is a characteristic of CISC architecture?
Recalled from Jan 2026 examShow hintHide hint
CISC has complex instructions. What's the characteristic?
Show answerHide answer
Answer: B. Small number of complex instructions
A characteristic of CISC (Complex Instruction Set Computer) architecture is a small number of complex instructions. CISC uses powerful instructions that perform multiple operations (like MOV, ADD, and MULTIPLY combined). This reduces program size and memory bandwidth. RISC (Reduced Instruction Set Computer) uses a large number of simple instructions. CISC instructions vary in length. CISC can have pipeline challenges due to instruction complexity. x86 and x64 are CISC architectures. CISC was popular before RISC architectures became dominant for many applications.
31. Which CPU design philosophy emphasizes a reduced set of simpler instructions?
Show answerHide answer
Answer: B. RISC
32. Pipelining in CPU design aims to increase:
Show answerHide answer
Answer: B. Instruction throughput
33. Which of the following is NOT a common instruction format component?
Show answerHide answer
Answer: C. Cache line
34. Which addressing mode uses the content of a register plus a constant to determine the effective address?
Show answerHide answer
Answer: C. Indexed addressing
35. A key characteristic of CISC architecture is:
Show answerHide answer
Answer: C. Complex addressing modes
36. Control memory in a computer system is used to store:
Show answerHide answer
Answer: C. Microinstructions
37. The primary function of the ALU in a CPU is:
Show answerHide answer
Answer: C. Mathematical and logical operations
38. The primary advantage of hardwired control unit over microprogrammed control unit is:
Show answerHide answer
Answer: C. Speed
39. In horizontal microinstruction format:
Show answerHide answer
Answer: A. Each bit directly controls a control line
40. Which of the following is NOT a typical field in a microinstruction format?
Show answerHide answer
Answer: C. User data
41. The primary difference between RISC and CISC architectures is:
Show answerHide answer
Answer: C. RISC emphasizes simple instructions and optimized pipelines
42. A hazard in pipelining that occurs when an instruction depends on the result of a previous instruction still in the pipeline is called:
Show answerHide answer
Answer: B. Data hazard
43. Which of the following best describes a Harvard architecture?
Show answerHide answer
Answer: B. Separate memories for instructions and data
44. Which of the following is NOT a common bus in computer organization?
Show answerHide answer
Answer: D. Execution bus
45. Which of the following is not a function of the control unit?
Show answerHide answer
Answer: D. Storing instructions in cache memory
46. Which of the following is responsible for performing arithmetic and logical operations in a CPU?
Show answerHide answer
Answer: B. Arithmetic logic unit
47. Which addressing mode uses a constant value or an expression as an operand to specify the memory location to be accessed?
Show answerHide answer
Answer: A. Immediate addressing mode
48. Which addressing mode uses a memory location as an operand to specify the memory location to be accessed?
Show answerHide answer
Answer: B. Direct addressing mode
49. Which addressing mode uses a memory location that contains the address of the memory location to be accessed?
Show answerHide answer
Answer: C. Indirect addressing mode
50. Which addressing mode adds an offset to a base memory address to calculate the memory location to be accessed?
Show answerHide answer
Answer: D. Indexed addressing mode
51. Which of the following components is responsible for executing instructions in a computer?
Show answerHide answer
Answer: A. Central Processing Unit (CPU)
52. Which of the following is a measure of the clock speed of a CPU?
Show answerHide answer
Answer: A. Gigahertz (GHz)
53. Which of the following is not a factor that affects the performance of a CPU?
Show answerHide answer
Answer: D. Type of operating system
54. Which component of a microinstruction specifies the operation to be performed by the CPU?
Show answerHide answer
Answer: A. Opcode
55. Which of the following is not a benefit of using microprogramming?
Show answerHide answer
Answer: C. Improved performance
56. Which type of microinstruction is used to modify the execution sequence of a program?
Show answerHide answer
Answer: B. Conditional microinstruction
57. In a microprogrammed control unit, the microinstructions are stored in:
Show answerHide answer
Answer: C. The ROM of the control unit
58. Which of the following is not a function of a control unit in a CPU?
Show answerHide answer
Answer: B. Performing arithmetic operations
59. The design of a control unit is typically based on:
Show answerHide answer
Answer: C. A combination of microprogramming and hardwiring
60. Which of the following is not a component of a control unit?
Show answerHide answer
Answer: C. Arithmetic logic unit
61. The instruction register of a control unit holds:
Show answerHide answer
Answer: C. The current instruction being executed
62. The decoder of a control unit is responsible for:
Show answerHide answer
Answer: B. Interpreting the opcode of an instruction
63. Which of the following is not a type of control unit design?
Show answerHide answer
Answer: D. Centralized control unit
64. In a hardwired control unit, the control signals are generated by:
Show answerHide answer
Answer: B. Logic gates and flip-flops
65. Which of the following is not a component of a control unit?
Show answerHide answer
Answer: D. Arithmetic logic unit
66. The control unit is responsible for:
Show answerHide answer
Answer: D. All of the above
67. Which of the following is not a design approach for implementing a control unit?
Show answerHide answer
Answer: C. Sequential control
68. In hardwired control, the control signals are generated by:
Show answerHide answer
Answer: C. A combination of gates and flip-flops
69. Microprogrammed control uses:
Show answerHide answer
Answer: B. A program stored in ROM to generate control signals
70. Which of the following is not an advantage of using microprogrammed control?
Show answerHide answer
Answer: C. Improved performance
71. The microprogram stored in ROM for a microprogrammed control unit is also known as:
Show answerHide answer
Answer: A. Control memory
72. In state machine control, the control unit is implemented as:
Show answerHide answer
Answer: B. A sequential logic circuit
73. Which of the following is not a type of instruction used by a control unit?
Show answerHide answer
Answer: A. Arithmetic instructions
74. The instruction register in a control unit is used to:
Show answerHide answer
Answer: A. Store the current instruction being executed
75. The CPU consists of which two main components?
Show answerHide answer
Answer: B. Control unit and arithmetic logic unit
76. What is the function of the arithmetic logic unit (ALU) in the CPU?
Show answerHide answer
Answer: C. To execute arithmetic and logic operations
77. The clock speed of a CPU is measured in:
Show answerHide answer
Answer: B. Gigahertz
78. What is the purpose of the register file in the CPU?
Show answerHide answer
Answer: C. To store intermediate results of calculations
79. Which of the following is not a type of register in the CPU?
Show answerHide answer
Answer: D. Cache register
80. The program counter (PC) in the CPU is used to:
Show answerHide answer
Answer: C. Store the address of the next instruction to be executed
81. Which of the following is not a function of the control unit in the CPU?
Show answerHide answer
Answer: C. Executing instructions
82. The Von Neumann architecture of CPU design includes:
Show answerHide answer
Answer: C. A single bus for both instructions and data
83. Which of the following is not a component of a CPU?
Show answerHide answer
Answer: B. Memory unit
84. The main function of the control unit is to:
Show answerHide answer
Answer: D. Manage the overall operation of the CPU
85. The arithmetic logic unit (ALU) is responsible for:
Show answerHide answer
Answer: D. Performing arithmetic and logic operations
86. Which of the following is not a type of register found in a CPU?
Show answerHide answer
Answer: C. Memory register
87. The program counter (PC) is used to:
Show answerHide answer
Answer: C. Store the address of the next instruction to be fetched
88. The instruction register (IR) is used to:
Show answerHide answer
Answer: A. Store the current instruction being executed
89. The fetch-decode-execute cycle is the basic operation of a CPU. Which of the following is the correct order of these three steps?
Show answerHide answer
Answer: A. Fetch, decode, execute
90. Clock speed is a measure of:
Show answerHide answer
Answer: B. The frequency at which instructions are executed
91. Which of the following is not a factor that affects CPU performance?
Show answerHide answer
Answer: D. Amount of RAM
92. The Arithmetic and Logic Unit (ALU) is responsible for:
Show answerHide answer
Answer: B. Executing instructions
93. Which of the following operations is not performed by the ALU?
Show answerHide answer
Answer: D. Data transfer
94. The ALU is composed of two types of circuits. What are they?
Show answerHide answer
Answer: B. Adder and logic circuits
95. Which of the following is not a logic operation performed by the ALU?
Show answerHide answer
Answer: D. Addition
96. The carry flag is used to indicate what?
Show answerHide answer
Answer: D. Whether the last operation resulted in an overflow or underflow
97. The zero flag is used to indicate what?
Show answerHide answer
Answer: C. Whether the last operation resulted in a zero
98. Which of the following is not an arithmetic operation performed by the ALU?
Show answerHide answer
Answer: C. Shift left
99. The Arithmetic Logic Unit (ALU) is a part of the:
Show answerHide answer
Answer: A. Control Unit
100. The ALU performs which of the following types of operations?
Show answerHide answer
Answer: C. Both arithmetic and logic operations
101. Which of the following is not an arithmetic operation performed by the ALU?
Show answerHide answer
Answer: D. Comparison
102. Which of the following is not a logical operation performed by the ALU?
Show answerHide answer
Answer: D. Addition
103. The result of an arithmetic operation performed by the ALU is stored in the:
Show answerHide answer
Answer: D. Accumulator
104. The result of a logical operation performed by the ALU is stored in the:
Show answerHide answer
Answer: D. Accumulator
105. Which of the following is not a flag bit that can be set by the ALU?
Show answerHide answer
Answer: B. Overflow flag
106. The carry flag is set when:
Show answerHide answer
Answer: D. The result of an addition operation overflows
107. The overflow flag is set when:
Show answerHide answer
Answer: D. The result of an addition operation overflows
108. In immediate addressing mode, the operand is:
Show answerHide answer
Answer: C. An immediate value
109. Which addressing mode allows for the use of a memory address directly in the instruction?
Show answerHide answer
Answer: B. Direct
110. In indirect addressing mode, the operand is:
Show answerHide answer
Answer: A. A memory address stored in a register
111. Which addressing mode is typically used for accessing elements in an array?
Show answerHide answer
Answer: D. Indexed
112. RISC stands for:
Show answerHide answer
Answer: A. Reduced Instruction Set Computer
113. CISC stands for:
Show answerHide answer
Answer: A. Complex Instruction Set Computer
114. Which type of CPU design uses a small set of simple instructions?
Show answerHide answer
Answer: A. RISC
115. Pipelining is a technique used to:
Show answerHide answer
Answer: D. Increase the number of instructions that can be executed simultaneously
4.2 Computer arithmetic and memory system
115 questions · ACtE0402
116. EEPROM has drain and floating gate gap of
NEC model setShow hintHide hint
Standard EEPROM device specifications for oxide layer thickness.
Show answerHide answer
Answer: B. 10 nm
EEPROM (Electrically Erasable Programmable Read-Only Memory) devices have a characteristic oxide layer (tunnel oxide) between the drain and floating gate with a typical thickness of approximately 10 nanometers. This oxide layer is crucial for the device's operation as it controls electron tunneling for programming and erasing operations. The thickness affects the voltage required for writing/erasing and the data retention characteristics. Modern flash memory devices may have variations in this specification, but for standard EEPROM, 10 nm is the reference value. This thin oxide layer is critical for achieving the low voltages required for EEPROM operation.
117. In which cache replacement algorithm is least frequently used block removed?
Aasadh 2081 examShow hintHide hint
Track how often each block is accessed.
Show answerHide answer
Answer: D. Least Frequently Used (LFU)
LFU removes the block that has been used the least number of times, based on access frequency.
118. What provides fastest data access?
Show hintHide hint
On-chip storage.
Show answerHide answer
Answer: D. Registers
Registers provide fastest access because they're on the CPU with zero latency.
119. Which memory level has shortest latency?
Show hintHide hint
Closest to CPU.
Show answerHide answer
Answer: A. Cache
Cache memory has shortest latency because it's on-chip and closest to the CPU.
120. What level of memory is fastest?
Show hintHide hint
First level cache.
Show answerHide answer
Answer: A. L1 cache
L1 cache is fastest memory level because it's on-chip and has lowest latency.
121. Which cache level is available?
Show hintHide hint
Modern CPUs have multiple cache levels.
Show answerHide answer
Answer: D. All of the above
Modern processors typically have L1, L2, and L3 caches for hierarchical memory access.
122. What is multiplication operation result size?
Show hintHide hint
Multiplying two n-bit numbers.
Show answerHide answer
Answer: C. Twice input size
Multiplying two n-bit numbers produces result of up to 2n bits.
123. What is memory controller function?
Show hintHide hint
Memory management.
Show answerHide answer
Answer: B. Handle memory operations
Memory controller manages all memory read/write operations and controls memory bus.
124. What is arithmetic overflow and how is it detected in CPU operations?
Show hintHide hint
What happens when you add two positive numbers and get a negative result?
Show answerHide answer
Answer: A. When the result of an arithmetic operation exceeds the range that can be represented in the available bits
Arithmetic overflow occurs when the result of an arithmetic operation cannot be properly represented in the designated number of bits. For example, adding 127 + 1 in 8-bit signed representation would overflow because the result 128 cannot be represented in 8-bit signed integer range (-128 to +127). Overflow detection depends on the data representation: UNSIGNED INTEGERS: Overflow occurs when carry-out from the most significant bit is generated. Example: in 8-bit unsigned, 255 + 1 generates a carry that is lost. SIGNED INTEGERS (Two's Complement): Overflow occurs when: (1) Adding two positive numbers produces negative result; (2) Adding two negative numbers produces positive result; (3) The carry-into sign bit differs from carry-out of sign bit. Example: in 8-bit signed, 127 + 1 = -128 (incorrect due to overflow). The CPU sets OVERFLOW FLAG in the status register when overflow is detected. Hardware detection circuits monitor operand signs and result sign, comparing against expected signs. Different ISAs handle overflow differently: (1) Some generate exceptions/traps for overflow; (2) Some set flags but continue; (3) Some wrap-around (saturation arithmetic for DSP applications). Proper handling of overflow is critical for: (1) Numeric computations requiring accuracy; (2) Safety-critical applications; (3) Cryptographic operations; (4) Digital signal processing. Compilers and programmers must be aware of overflow potential and use appropriate data types (wider integers, floating-point) or checking code when necessary. Undefined behavior or silent incorrect results from overflow can be catastrophic in critical applications.
125. What is the purpose of the cache replacement policy?
NEC model setShow hintHide hint
When cache is full, what policy decides which existing data gets removed?
Show answerHide answer
Answer: B. To determine which data to evict from the cache when space is needed
Cache replacement policy determines which data block to evict (remove) from the cache when new data needs to be stored and the cache is full. Common replacement policies: (1) Least Recently Used (LRU) - Removes the block that hasn't been used recently, (2) First-In-First-Out (FIFO) - Removes the oldest block, (3) Least Frequently Used (LFU) - Removes the least frequently accessed block, (4) Random replacement - Randomly selects a block. The effectiveness of a replacement policy impacts cache performance: A good policy ensures frequently accessed data stays in cache, improving hit rate and performance. A poor policy might evict data that's needed again soon, causing cache misses. LRU is widely used because it performs well in practice - data recently accessed is likely needed again soon. Selection criteria: (1) Minimize cache misses, (2) Keep frequently used data in cache, (3) Maximize overall system performance. This is different from deciding what data to initially cache (which is determined by cache coherence and write policies) or determining cache structure (number of levels, size).
126. Increasing cache size generally:
NEC model setShow hintHide hint
Larger caches have more space but may take longer to search. What's the trade-off?
Show answerHide answer
Answer: B. Improves hit ratio but may increase access time
Increasing cache size generally improves hit ratio (more data fits) but may increase access time (larger memory takes longer to search). There's a trade-off: a larger cache stores more data, reducing misses, but adds latency in searching for data. Optimal cache size depends on the workload and the technology used. Modern systems use multiple cache levels (L1, L2, L3) to balance these factors.
127. For faster data access in a computer system, which component should be prioritized?
Recalled from Jan 2026 examShow hintHide hint
The fastest but most expensive memory. What is it?
Show answerHide answer
Answer: C. Cache memory
Cache memory should be prioritized for faster data access in a computer system. Cache memory is extremely fast (accessing data in nanoseconds) but expensive, so it's limited in size. The memory hierarchy prioritizes: (1) CPU registers (fastest, smallest), (2) L1 Cache, (3) L2/L3 Cache, (4) RAM (slower, larger), (5) Disk (slowest, largest). Cache stores frequently accessed data and instructions, reducing average access time dramatically. Hard disk is slowest. Secondary storage is even slower than hard disk. Effective cache usage through cache optimization techniques significantly improves system performance.
128. What type of memory interface does USB typically use?
Recalled from Jan 2026 examShow hintHide hint
USB devices like flash drives use what type of non-volatile memory?
Show answerHide answer
Answer: C. Flash memory
USB typically uses Flash memory interface. USB flash drives store data in flash memory, which is non-volatile (retains data without power). Flash memory provides fast read/write access suitable for portable storage. The USB interface provides power and communication to the flash memory device. SRAM and DRAM are volatile (lose data without power). Cache is internal to CPUs. Flash memory offers a good balance of speed, capacity, and cost for removable storage media.
129. In computer arithmetic, the 2's complement representation is used for:
Show answerHide answer
Answer: B. Signed integers
130. Cache memory improves system performance by:
Show answerHide answer
Answer: B. Reducing memory access time
131. Which memory type has the fastest access time?
Show answerHide answer
Answer: D. Registers
132. Which cache write policy immediately updates both cache and main memory?
Show answerHide answer
Answer: A. Write-through
133. In direct mapping cache organization:
Show answerHide answer
Answer: C. A block can be placed in exactly one location
134. The Least Recently Used (LRU) algorithm is used for:
Show answerHide answer
Answer: C. Cache replacement
135. The memory hierarchy is organized based on:
Show answerHide answer
Answer: D. All of these
136. The primary advantage of a multilevel cache hierarchy is:
Show answerHide answer
Answer: C. Improved hit ratio
137. The hit ratio in cache memory is:
Show answerHide answer
Answer: A. The percentage of time data is found in cache
138. ROM is an example of:
Show answerHide answer
Answer: B. Non-volatile memory
139. The IEEE 754 standard is related to:
Show answerHide answer
Answer: B. Floating-point arithmetic
140. What is the main purpose of the Memory Control Unit (MCU) in a computer system?
Show answerHide answer
Answer: C. To regulate the flow of data between the CPU and memory
141. Which of the following is not a type of memory used in a computer system?
Show answerHide answer
Answer: D. Hard drive
142. Which of the following is responsible for temporarily storing data that the CPU needs to access quickly?
Show answerHide answer
Answer: C. Cache
143. The term "memory hierarchy" refers to:
Show answerHide answer
Answer: B. The organization of different types of memory by speed and capacity
144. Which of the following is responsible for permanently storing the BIOS on a computer system?
Show answerHide answer
Answer: B. ROM
145. What is the difference between volatile and non-volatile memory?
Show answerHide answer
Answer: A. Volatile memory loses its contents when power is lost, while non-volatile memory retains its contents
146. What is the purpose of a memory controller?
Show answerHide answer
Answer: A. To regulate the flow of data between the CPU and memory
147. What is the difference between DDR3 and DDR4 RAM?
Show answerHide answer
Answer: B. DDR4 has a higher clock speed than DDR3
148. Which of the following is responsible for storing frequently used instructions and data in a CPU?
Show answerHide answer
Answer: A. Cache memory
149. Which type of memory is used to store the program and data being currently executed by the CPU?
Show answerHide answer
Answer: C. Main memory
150. Which type of memory is non-volatile and retains data even when the power is turned off?
Show answerHide answer
Answer: A. ROM
151. Which of the following components stores data and programs permanently, even when the computer is turned off?
Show answerHide answer
Answer: C. Hard Disk Drive (HDD)
152. What is the purpose of the cache memory in the CPU?
Show answerHide answer
Answer: B. To store frequently used instructions and data for quick access
153. The ALU can perform logical operations on binary numbers. Which of the following is true for the AND operation?
Show answerHide answer
Answer: B. 0 AND 1 = 0
154. The ALU can perform logical operations on binary numbers. Which of the following is true for the OR operation?
Show answerHide answer
Answer: B. 0 OR 1 = 1
155. The ALU can perform logical operations on binary numbers. Which of the following is true for the NOT operation?
Show answerHide answer
Answer: C. NOT 1 = 0
156. Which level of the memory hierarchy is the fastest, smallest, and most expensive?
Show answerHide answer
Answer: A. Level 1 cache
157. Which level of the memory hierarchy is typically the largest and the slowest?
Show answerHide answer
Answer: D. Secondary storage
158. Which type of memory is volatile and loses its contents when power is turned off?
Show answerHide answer
Answer: A. RAM
159. Which type of memory is non-volatile and retains its contents even when power is turned off?
Show answerHide answer
Answer: B. ROM
160. What is the primary purpose of cache memory?
Show answerHide answer
Answer: A. To store frequently accessed data for faster access
161. Which level of cache memory is closest to the CPU?
Show answerHide answer
Answer: A. L1 cache
162. What is the cache line size?
Show answerHide answer
Answer: A. The amount of data that can be stored in a cache block
163. Which mapping function maps a block of main memory to a single cache line?
Show answerHide answer
Answer: A. Direct mapping
164. Which mapping function allows any block of main memory to be placed in any cache line?
Show answerHide answer
Answer: B. Associative mapping
165. In a direct-mapped cache, how many cache lines can a block of main memory be mapped to?
Show answerHide answer
Answer: A. One
166. Which replacement algorithm replaces the cache line that has been unused for the longest time?
Show answerHide answer
Answer: A. Least Recently Used (LRU)
167. Which write policy updates the cache first and then later updates the main memory when the cache line is replaced?
Show answerHide answer
Answer: B. Write-back
168. What is the advantage of write-through policy in cache memory?
Show answerHide answer
Answer: A. Lower write latency
169. What is the disadvantage of write-through policy in cache memory?
Show answerHide answer
Answer: C. Higher main memory traffic
170. What is the advantage of write-back policy in cache memory?
Show answerHide answer
Answer: C. Lower main memory traffic
171. What is the disadvantage of write-back policy in cache memory?
Show answerHide answer
Answer: A. Higher write latency
172. Which write policy in cache memory is used in systems with multiple processors and a shared cache to ensure consistency?
Show answerHide answer
Answer: B. Write-through policy
173. Which of the following is a benefit of having multiple levels of caches in a computer system?
Show answerHide answer
Answer: A. Reduced latency for memory access
174. What is the primary disadvantage of having multiple levels of caches in a computer system?
Show answerHide answer
Answer: B. Higher cost per cache level
175. Which of the following is an example of a two-level cache hierarchy in a computer system?
Show answerHide answer
Answer: B. L1 cache, L2 cache, and main memory
176. Which write policy in cache memory requires the use of a dirty bit to indicate when a cache line has been modified?
Show answerHide answer
Answer: B. Write-back policy
177. Which cache level is typically the smallest and fastest in a multi-level cache hierarchy?
Show answerHide answer
Answer: A. L1 cache
178. Which cache level is typically the largest and slowest in a multi-level cache hierarchy?
Show answerHide answer
Answer: C. L3 cache
179. Which cache level is typically located on the processor chip in a computer system?
Show answerHide answer
Answer: A. L1 cache
180. Which cache level is typically shared among multiple processor cores in a multi-core computer system?
Show answerHide answer
Answer: C. L3 cache
181. Which of the following is an example of a unified cache that combines instructions and data in a single cache?
Show answerHide answer
Answer: B. Set-associative cache
182. Which cache organization allows a single memory location to be stored in multiple cache locations?
Show answerHide answer
Answer: B. Set-associative cache
183. Which cache organization uses a tag field to determine whether a given memory location is stored in a particular cache location?
Show answerHide answer
Answer: C. Fully-associative cache
184. What is the term used to describe a system with multiple levels of caches?
Show answerHide answer
Answer: A. Cache hierarchy
185. What is the purpose of having multiple levels of caches?
Show answerHide answer
Answer: B. To reduce main memory traffic
186. Which level of cache is usually the smallest and fastest?
Show answerHide answer
Answer: A. L1 cache
187. Which level of cache is usually shared between multiple cores or processors?
Show answerHide answer
Answer: C. L3 cache
188. What is the typical size of an L1 cache in modern processors?
Show answerHide answer
Answer: C. 64-128 KB
189. What is the typical size of an L2 cache in modern processors?
Show answerHide answer
Answer: A. 1-2 MB
190. What is the purpose of having a larger cache?
Show answerHide answer
Answer: B. To reduce main memory traffic
191. Which cache level is usually the largest and slowest?
Show answerHide answer
Answer: C. L3 cache
192. What is the main disadvantage of having multiple levels of caches?
Show answerHide answer
Answer: D. Increased complexity and cost
193. Which cache level is the most expensive to implement?
Show answerHide answer
Answer: A. L1 cache
194. Which of the following is a characteristic of volatile memory?
Show answerHide answer
Answer: B. It loses data when the power is turned off
195. Which of the following is an example of non-volatile memory?
Show answerHide answer
Answer: C. Flash memory
196. Which type of memory is typically used for main memory in a computer system?
Show answerHide answer
Answer: A. Volatile memory
197. Which of the following is a characteristic of write-through caching?
Show answerHide answer
Answer: A. It writes data to both the cache and main memory simultaneously
198. Which of the following is a characteristic of write-back caching?
Show answerHide answer
Answer: C. It writes data to main memory only when it is needed
199. Which of the following is an advantage of write-back caching?
Show answerHide answer
Answer: C. It reduces the number of writes to main memory
200. Which of the following is a disadvantage of write-through caching?
Show answerHide answer
Answer: D. It increases the number of writes to main memory
201. Which of the following is a disadvantage of write-back caching?
Show answerHide answer
Answer: B. It increases the memory access time
202. Which of the following is an example of a non-volatile memory technology used in solid-state drives (SSDs)?
Show answerHide answer
Answer: C. NAND flash
203. Which of the following is a disadvantage of using non-volatile memory for main memory?
Show answerHide answer
Answer: A. It is slower than volatile memory
204. Which type of memory is non-volatile and has the highest storage capacity?
Show answerHide answer
Answer: C. Hard disk
205. What is the purpose of a write buffer in a computer memory system?
Show answerHide answer
Answer: A. To reduce the time it takes to write to main memory
206. What is the difference between volatile and non-volatile memory?
Show answerHide answer
Answer: B. Volatile memory requires power to retain its data, while non-volatile memory retains data even without power
207. Which of the following is an example of volatile memory?
Show answerHide answer
Answer: D. SRAM
208. Which type of memory is typically used to store the BIOS in a computer system?
Show answerHide answer
Answer: B. ROM
209. What is the difference between static RAM (SRAM) and dynamic RAM (DRAM)?
Show answerHide answer
Answer: A. SRAM is faster than DRAM
210. Which type of memory is typically used for level 1 (L1) and level 2 (L2) caches in a processor?
Show answerHide answer
Answer: A. SRAM
211. Which of the following is an advantage of dual In-line memory modules (DIMMs) over single in-line memory modules (SIMMs)?
Show answerHide answer
Answer: A. Faster data transfer rates
212. What is the process of accessing data from multiple memory banks simultaneously called?
Show answerHide answer
Answer: B. Parallel memory access
213. What is the purpose of parity bits in memory systems?
Show answerHide answer
Answer: B. To improve the reliability of the memory system
214. Which type of memory is most commonly used for main memory in modern computers?
Show answerHide answer
Answer: A. DRAM
215. Which type of memory is typically used for virtual memory in a computer system?
Show answerHide answer
Answer: A. Hard disk
216. Which of the following is an advantage of static RAM (SRAM) over dynamic RAM (DRAM)?
Show answerHide answer
Answer: B. Faster access times
217. Which type of memory is commonly used for cache memory in modern computers?
Show answerHide answer
Answer: B. SRAM
218. What is the purpose of composing memory in a computer system?
Show answerHide answer
Answer: A. To increase the total amount of memory available to the system
219. Which of the following is an example of composed memory?
Show answerHide answer
Answer: A. Virtual memory
220. What is the primary disadvantage of composed memory?
Show answerHide answer
Answer: D. Complexity of the design
221. Which type of memory is typically used as the main memory in a computer system?
Show answerHide answer
Answer: D. DRAM
222. Which of the following is not a benefit of composed memory?
Show answerHide answer
Answer: C. Lower power consumption
223. What is the purpose of a memory hierarchy in a computer system?
Show answerHide answer
Answer: D. To optimize memory access times
224. Which of the following is not a type of cache memory?
Show answerHide answer
Answer: D. Static RAM cache
225. Which of the following is not a level in a typical memory hierarchy?
Show answerHide answer
Answer: D. Virtual memory
226. What is the process of combining multiple memory chips to increase memory capacity called?
Show answerHide answer
Answer: D. Memory banking
227. Which of the following is NOT a benefit of memory banking?
Show answerHide answer
Answer: D. Reduced power consumption
228. In memory banking, what is a memory module?
Show answerHide answer
Answer: A. A collection of memory chips
229. Direct access storage?
Show hintHide hint
Random access.
Show answerHide answer
Answer: A. disk
Disk provides direct access to any location without sequential traversal.
230. Memory categories?
Show hintHide hint
Primary and secondary.
Show answerHide answer
Answer: B. 2
Two memory categories: primary (RAM) and secondary storage.
4.3 Input-output organization and multiprocessors
127 questions · ACtE0403
231. What is key feature of bus in computer architecture?
Aasadh 2081 examShow hintHide hint
Bus manages device access arbitration.
Show answerHide answer
Answer: B. Priority handling
Bus provides priority handling for managing simultaneous device access requests.
232. Which connector connects external devices?
Show hintHide hint
Universal Serial Bus.
Show answerHide answer
Answer: A. USB
USB is most common connector for connecting external devices to computers.
233. What component typically controls cursor movement?
Show hintHide hint
Pointing device.
Show answerHide answer
Answer: B. Mouse
Mouse is standard peripheral for cursor control in graphical interfaces.
234. What is cache coherence purpose?
Show hintHide hint
Multiple cache consistency.
Show answerHide answer
Answer: B. Synchronize caches
Cache coherence ensures consistency when multiple caches contain same data in multiprocessor systems.
235. Which of the following is not a type of DMA transfer mode?
NEC model setShow hintHide hint
DMA operates in specific modes for data transfer. Which one is not a recognized DMA mode?
Show answerHide answer
Answer: D. Instruction mode
DMA (Direct Memory Access) has three main transfer modes: (1) Burst mode - The DMA controller takes complete control of the system bus and transfers a block of data in one continuous operation. Maximum throughput but may delay CPU. (2) Cycle-stealing mode - The DMA controller steals CPU cycles to transfer one byte/word at a time, reducing impact on CPU but taking more total time. (3) Transparent mode - Transfers occur only when the bus is idle, not affecting CPU at all (rarely used). 'Instruction mode' is NOT a recognized DMA transfer mode. DMA operates independently of instructions - it doesn't execute instructions. Options for DMA operations: (1) By channel - Multiple DMA channels for different devices, (2) By priority - Higher priority devices get preference, (3) By rotation - Fair sharing among devices. 'Interrupt mode' mentioned in some contexts refers to when DMA signals completion via interrupt, but it's not a transfer mode itself - it's a signaling mechanism. Understanding these modes is important for systems design, particularly in embedded systems and I/O-intensive applications.
236. In DMA (Direct Memory Access), data transfer occurs directly between:
NEC model setShow hintHide hint
DMA allows data transfer without CPU involvement. Which two components exchange data directly?
Show answerHide answer
Answer: C. I/O device and memory
In DMA (Direct Memory Access), data transfer occurs directly between I/O device and memory, bypassing the CPU. This improves performance by allowing the I/O controller to manage data transfer independently. The CPU is freed to do other tasks. DMA requires a DMA controller that handles address generation, data transfer, and interrupt signaling. After transfer completes, the DMA controller interrupts the CPU to indicate completion.
237. In Direct Memory Access (DMA), what is cycle stealing?
Recalled from Jan 2026 examShow hintHide hint
DMA allows I/O devices to access memory. What does cycle stealing mean in this context?
Show answerHide answer
Answer: B. A technique where the DMA controller takes over the bus for one clock cycle to transfer data
Cycle stealing in DMA is a technique where the DMA controller temporarily takes over the system bus for one clock cycle to transfer data between I/O device and memory, stealing a cycle from the CPU. During this time, the CPU is paused or suspended. Cycle stealing allows I/O operations to proceed concurrently with CPU execution without completely halting the CPU. This improves overall system performance compared to the CPU being completely blocked during I/O operations. The number of cycles stolen depends on the amount of data to transfer.
238. How is control maintained on the system bus in a computer architecture?
Recalled from Jan 2026 examShow hintHide hint
Multiple devices need the bus. How is access controlled?
Show answerHide answer
Answer: B. Through priority-based arbitration
Control on the system bus in a computer architecture is maintained through priority-based arbitration. When multiple devices (CPU, I/O controllers, DMA) need bus access, an arbiter grants access based on priority levels. Devices have different priorities (CPU usually highest). This ensures critical operations get bus access first. Arbitration prevents conflicts and ensures orderly sharing of the shared resource. Some systems use round-robin or other arbitration schemes, but priority-based is most common for performance and reliability.
239. Which I/O transfer mode requires CPU intervention for each data byte transferred?
Show answerHide answer
Answer: A. Programmed I/O
240. Direct Memory Access (DMA) is used to:
Show answerHide answer
Answer: B. Transfer data without CPU intervention
241. In a multiprocessor system, the bus arbitration technique determines:
Show answerHide answer
Answer: B. Which processor gets control of the shared bus
242. Which interconnection structure provides the highest bandwidth in multiprocessor systems?
Show answerHide answer
Answer: B. Crossbar switch
243. Cache coherence is an issue in:
Show answerHide answer
Answer: C. Multiprocessor systems with shared memory
244. Memory-mapped I/O means:
Show answerHide answer
Answer: B. I/O devices share the same address space as memory
245. In DMA transfer, the device that initiates the transfer is:
Show answerHide answer
Answer: C. DMA controller
246. Which component is responsible for managing input and output operations of a computer system?
Show answerHide answer
Answer: B. Input/Output Controller (IOC)
247. Which of the following is responsible for providing power to the other components of a computer?
Show answerHide answer
Answer: B. Power Supply Unit (PSU)
248. Which of the following is not a type of peripheral device?
Show answerHide answer
Answer: C. Processor
249. Which of the following is not a function of the input/output unit in the CPU?
Show answerHide answer
Answer: A. To fetch instructions from memory
250. Which type of multiprocessor system is designed to work on multiple independent tasks simultaneously?
Show answerHide answer
Answer: B. Symmetric multiprocessing
251. Which of the following is an example of a peripheral device in Input-Output organization?
Show answerHide answer
Answer: C. Keyboard
252. Which type of device is a printer?
Show answerHide answer
Answer: B. Output device
253. Which type of peripheral device is used to input graphical information into a computer?
Show answerHide answer
Answer: C. Scanner
254. Which type of peripheral device is commonly used to store backups of important data?
Show answerHide answer
Answer: B. External hard drive
255. Which of the following is an example of an input peripheral device?
Show answerHide answer
Answer: B. Scanner
256. Which type of peripheral device is used to display output on a computer?
Show answerHide answer
Answer: C. Monitor
257. Which of the following devices is used to read data from optical storage media?
Show answerHide answer
Answer: C. CD/DVD drive
258. Which type of peripheral device is used to provide additional storage space for a computer?
Show answerHide answer
Answer: B. External hard drive
259. Which type of device is commonly used to control the movement of the cursor on a computer screen?
Show answerHide answer
Answer: B. Mouse
260. Which type of peripheral device is used to input voice commands into a computer?
Show answerHide answer
Answer: A. Microphone
261. Which type of computer system allows multiple processors to work together on a task?
Show answerHide answer
Answer: A. Multiprocessing system
262. Which of the following is an example of an output peripheral device?
Show answerHide answer
Answer: C. Printer
263. Which of the following is NOT an example of a storage peripheral device?
Show answerHide answer
Answer: D. Printer
264. Which type of peripheral device is used to connect a computer to a network?
Show answerHide answer
Answer: D. Communication device
265. Which of the following is an example of a multiprocessor system?
Show answerHide answer
Answer: B. A dual-core processor running multiple tasks simultaneously
266. Which type of multiprocessor system is designed to work on a single task by dividing the task into smaller subtasks?
Show answerHide answer
Answer: A. Symmetric multiprocessing
267. Which of the following is a disadvantage of symmetric multiprocessing?
Show answerHide answer
Answer: D. It can cause performance degradation due to contention for resources
268. What is the purpose of an I/O module in a computer system?
Show answerHide answer
Answer: C. To communicate with peripheral devices
269. Which of the following is not a type of Input-Output interface?
Show answerHide answer
Answer: C. Input-Output Control Unit (IOCU)
270. Which type of I/O interface allows the CPU and peripheral devices to access the same memory location?
Show answerHide answer
Answer: A. Memory-mapped I/O
271. Which of the following is a type of programmable I/O interface?
Show answerHide answer
Answer: B. Parallel
272. Which type of I/O interface uses a separate processor to manage data transfers between the CPU and peripheral devices?
Show answerHide answer
Answer: B. Direct memory access (DMA)
273. Which of the following is not a function of an I/O interface?
Show answerHide answer
Answer: D. Memory management
274. Which type of I/O interface uses a specialized controller to manage data transfers between the CPU and peripheral devices?
Show answerHide answer
Answer: B. Direct memory access (DMA)
275. Which type of I/O interface provides a serial data transfer between the CPU and peripheral devices?
Show answerHide answer
Answer: D. Serial
276. Which type of I/O interface provides a high-speed data transfer between the CPU and peripheral devices?
Show answerHide answer
Answer: B. Parallel
277. Which of the following is a disadvantage of memory-mapped I/O?
Show answerHide answer
Answer: A. It can lead to conflicts between the CPU and peripheral devices accessing the same memory location
278. What is an I/O module?
Show answerHide answer
Answer: A. A device that performs input/output operations on behalf of the CPU
279. What is the purpose of an input-output interface?
Show answerHide answer
Answer: A. To translate data between the computer and its peripherals
280. Which of the following is not an example of an I/O module?
Show answerHide answer
Answer: B. Graphics processing unit (GPU)
281. Which of the following is not a function of an input-output interface?
Show answerHide answer
Answer: D. Data processing
282. Which of the following is an advantage of using DMA (Direct Memory Access) in an I/O module?
Show answerHide answer
Answer: A. Reduced CPU overhead
283. What is an interrupt in the context of input-output operations?
Show answerHide answer
Answer: A. A signal that notifies the CPU of a peripheral event
284. What is the purpose of DMA in a computer system?
Show answerHide answer
Answer: D. To transfer data between memory and peripheral devices
285. Which of the following is not a mode of transfer for DMA?
Show answerHide answer
Answer: D. Interrupt mode
286. In cycle-stealing mode of DMA transfer, when does the DMA controller take control of the system bus?
Show answerHide answer
Answer: B. After the CPU has completed its current instruction cycle
287. Which DMA transfer mode allows for multiple transfers to occur in a single burst?
Show answerHide answer
Answer: B. Burst mode
288. Which DMA transfer mode transfers a fixed number of data bytes or words in a single transfer?
Show answerHide answer
Answer: C. Block mode
289. In which DMA transfer mode does the DMA controller interrupt the CPU after each transfer?
Show answerHide answer
Answer: A. Cycle-stealing
290. Which DMA transfer mode is the most efficient for transferring large amounts of data?
Show answerHide answer
Answer: A. Burst mode
291. Which of the following is not a benefit of DMA transfer?
Show answerHide answer
Answer: C. It reduces the need for specialized hardware
292. Which of the following is a disadvantage of DMA transfer?
Show answerHide answer
Answer: B. It requires specialized hardware
293. Which DMA transfer mode is best suited for real-time applications?
Show answerHide answer
Answer: A. Cycle-stealing
294. What is the purpose of DMA in a computer system?
Show answerHide answer
Answer: D. To transfer data between memory and peripheral devices without CPU intervention
295. Which of the following is not a mode of transfer used by DMA?
Show answerHide answer
Answer: C. Programmed I/O
296. Which mode of DMA transfer uses a fixed number of words to be transferred between memory and the peripheral device?
Show answerHide answer
Answer: D. Block mode
297. Which mode of DMA transfer uses a predetermined number of clock cycles to transfer a word between memory and the peripheral device?
Show answerHide answer
Answer: A. Cycle stealing
298. Which mode of DMA transfer uses multiple words to be transferred between memory and the peripheral device without any intervention from the CPU?
Show answerHide answer
Answer: B. Burst mode
299. Which mode of DMA transfer uses a sequence of commands stored in memory to transfer data between the CPU and peripheral device?
Show answerHide answer
Answer: C. Programmed I/O
300. Which of the following is not an advantage of DMA?
Show answerHide answer
Answer: D. It increases the number of interrupts handled by the CPU
301. Which of the following is a disadvantage of DMA?
Show answerHide answer
Answer: D. It can cause conflicts with the CPU accessing memory
302. Which type of DMA transfer is best suited for transferring large amounts of data between memory and peripheral device?
Show answerHide answer
Answer: B. Burst mode
303. Which of the following is a benefit of DMA when used in multiprocessor systems?
Show answerHide answer
Answer: B. It improves the performance of the system
304. Which of the following best describes a multiprocessor system?
Show answerHide answer
Answer: A. A system with multiple processors that share a common memory and communicate with each other
305. Which of the following is not a characteristic of a multiprocessor system?
Show answerHide answer
Answer: D. Sequential execution
306. What is parallelism in a multiprocessor system?
Show answerHide answer
Answer: A. The ability of multiple processors to execute instructions simultaneously
307. What is scalability in a multiprocessor system?
Show answerHide answer
Answer: B. The ability of the system to increase performance as more processors are added
308. What is fault tolerance in a multiprocessor system?
Show answerHide answer
Answer: C. The ability of the system to recover from failures automatically
309. Which of the following is not a type of multiprocessor architecture?
Show answerHide answer
Answer: C. Virtual memory
310. What is the difference between shared memory and distributed memory architectures?
Show answerHide answer
Answer: A. Shared memory systems have a single memory space that is accessible by all processors, while distributed memory systems have separate memory spaces for each processor.
311. What is cache coherence in a multiprocessor system?
Show answerHide answer
Answer: A. The ability of the system to maintain consistency of data stored in the caches of multiple processors
312. What is a multiprocessor?
Show answerHide answer
Answer: A. A computer with multiple processors
313. Which of the following is not a characteristic of a multiprocessor system?
Show answerHide answer
Answer: D. Single processing unit
314. What is parallelism in a multiprocessor system?
Show answerHide answer
Answer: C. The ability to use multiple processors to complete a single task
315. What is scalability in a multiprocessor system?
Show answerHide answer
Answer: C. The ability to add more processors to the system as needed
316. Which of the following is a benefit of fault tolerance in a multiprocessor system?
Show answerHide answer
Answer: A. Increased reliability
317. What is a shared memory multiprocessor system?
Show answerHide answer
Answer: C. A system where all processors share the same memory
318. What is cache coherence in a multiprocessor system?
Show answerHide answer
Answer: A. The ability to maintain consistency of shared data in different processor caches
319. What is a distributed memory multiprocessor system?
Show answerHide answer
Answer: A. A system where each processor has its own private memory
320. Which of the following is not a benefit of a distributed memory multiprocessor system?
Show answerHide answer
Answer: B. Reduced memory latency
321. What is a NUMA architecture in a multiprocessor system?
Show answerHide answer
Answer: D. A architecture where the memory is organized into multiple banks
322. Which of the following is not a common type of interconnection structure in multiprocessor systems?
Show answerHide answer
Answer: D. Serial
323. What is a bus in a multiprocessor system?
Show answerHide answer
Answer: A. A shared communication channel between all processors
324. Which of the following is not a disadvantage of a bus interconnection structure?
Show answerHide answer
Answer: C. High cost
325. What is a ring interconnection structure in a multiprocessor system?
Show answerHide answer
Answer: B. A circular arrangement of processors where each processor is connected to its adjacent processors
326. Which of the following is a disadvantage of a ring interconnection structure?
Show answerHide answer
Answer: C. Low reliability
327. What is a hypercube interconnection structure in a multiprocessor system?
Show answerHide answer
Answer: B. A three-dimensional cube-like arrangement of processors where each processor is connected to its adjacent processors in all three dimensions
328. Which of the following is a benefit of a hypercube interconnection structure?
Show answerHide answer
Answer: A. High scalability
329. What is a tree interconnection structure in a multiprocessor system?
Show answerHide answer
Answer: A. A tree-like arrangement of processors where each processor is connected to a parent processor
330. Which of the following is a disadvantage of a tree interconnection structure?
Show answerHide answer
Answer: D. Limited bandwidth
331. What is an interconnection structure in a multiprocessor system?
Show answerHide answer
Answer: B. The way in which processors communicate with each other
332. What is a bus-based interconnection structure?
Show answerHide answer
Answer: B. A structure where processors share a single bus
333. Which of the following is a disadvantage of a bus-based interconnection structure?
Show answerHide answer
Answer: C. Limited bandwidth
334. What is a crossbar interconnection structure?
Show answerHide answer
Answer: C. A structure where each processor has a dedicated point-to-point connection to every other processor
335. Which of the following is an advantage of a crossbar interconnection structure?
Show answerHide answer
Answer: A. High scalability
336. What is a mesh interconnection structure?
Show answerHide answer
Answer: B. A structure where processors are arranged in a grid-like pattern
337. Which of the following is a disadvantage of a mesh interconnection structure?
Show answerHide answer
Answer: C. Limited bandwidth
338. What is inter-processor communication in a multiprocessor system?
Show answerHide answer
Answer: D. The transfer of data between two or more processors
339. Which of the following is an example of inter-processor communication?
Show answerHide answer
Answer: C. A processor communicating with another processor
340. What is the purpose of synchronization in a multiprocessor system?
Show answerHide answer
Answer: D. To coordinate the activities of multiple processors
341. What is a critical section in a multiprocessor system?
Show answerHide answer
Answer: B. A section of code that can only be executed by one processor at a time to avoid race conditions
342. Which of the following is a technique for synchronizing multiple processors in a multiprocessor system?
Show answerHide answer
Answer: A. Locking
343. What is the purpose of a barrier in inter-processor communication?
Show answerHide answer
Answer: C. To ensure that all processors have completed a certain operation before continuing
344. What is a deadlock in a multiprocessor system?
Show answerHide answer
Answer: D. A condition in which two or more processors are waiting for each other to release a resource, preventing any progress from being made
345. Which of the following is a disadvantage of inter-processor communication?
Show answerHide answer
Answer: C. Increased complexity
346. What is the purpose of a message passing system in inter-processor communication?
Show answerHide answer
Answer: C. To enable processors to exchange information with each other
347. Which of the following is not a type of input-output organization?
Show answerHide answer
Answer: D. Cache-based I/O
348. What is the purpose of a device controller in input-output organization?
Show answerHide answer
Answer: C. To manage the communication between the input/output device and the rest of the system
349. Which of the following is an example of a message passing system?
Show answerHide answer
Answer: D. MPI
350. What is the purpose of a semaphore in inter-processor communication?
Show answerHide answer
Answer: D. To control access to shared resources
351. Which of the following is not a method of synchronization in input-output organization?
Show answerHide answer
Answer: D. Interrupts
352. Which of the following is a disadvantage of using semaphores for inter-processor communication?
Show answerHide answer
Answer: A. High overhead
353. What is inter-processor communication?
Show answerHide answer
Answer: B. The transfer of data between two or more processors in a multiprocessor system
354. Which of the following is not a method of inter-processor communication?
Show answerHide answer
Answer: D. Interrupts
355. What is synchronization in a multiprocessor system?
Show answerHide answer
Answer: C. The process of coordinating the activities of multiple processors to avoid conflicts and ensure consistency
356. Which of the following is not a method of synchronization in a multiprocessor system?
Show answerHide answer
Answer: D. Remote procedure
357. What is a race condition in a multiprocessor system?
Show answerHide answer
Answer: C. A condition in which two or more processors try to access the same resource simultaneously
4.4 Hardware-software design issues in embedded systems
93 questions · ACtE0404
358. What is purpose of special processor?
Aasadh 2081 examShow hintHide hint
Optimized for specific operations.
Show answerHide answer
Answer: B. Special function
Special processors are optimized for specific functions like graphics, encryption, or floating-point calculations.
359. What is firmware in embedded system?
Show hintHide hint
Permanent software.
Show answerHide answer
Answer: A. Software in ROM
Firmware is software stored in read-only memory (ROM) that controls embedded system behavior.
360. A real-time embedded system must:
Show answerHide answer
Answer: C. Meet specific timing constraints
361. Embedded systems are characterized by:
Show answerHide answer
Answer: B. Dedicated function within a larger system
362. Application-Specific Instruction-Set Processors (ASIPs) are:
Show answerHide answer
Answer: B. Processors with instruction sets tailored to specific applications
363. Custom Single-Purpose Processors are designed to:
Show answerHide answer
Answer: B. Execute a specific algorithm efficiently
364. The primary goal of embedded system optimization is typically:
Show answerHide answer
Answer: B. Minimizing cost and power consumption
365. Which of the following is NOT a common embedded system classification?
Show answerHide answer
Answer: D. Virtual embedded systems
366. What is an embedded system?
Show answerHide answer
Answer: C. A computer system that is embedded within a larger device
367. Which of the following is a typical characteristic of an embedded system?
Show answerHide answer
Answer: C. It is designed to perform a specific task
368. Which of the following is an example of an embedded system?
Show answerHide answer
Answer: C. A digital camera
369. What is the role of a microcontroller in an embedded system?
Show answerHide answer
Answer: D. To control the device's functions
370. Which of the following is an advantage of using an embedded system?
Show answerHide answer
Answer: B. It has a low cost
371. Which of the following is a disadvantage of using an embedded system?
Show answerHide answer
Answer: A. It is difficult to modify and upgrade
372. Which of the following is a common programming language used in embedded systems?
Show answerHide answer
Answer: C. C
373. Which of the following is an example of an application-specific embedded system?
Show answerHide answer
Answer: A. A digital camera
374. What is an embedded system?
Show answerHide answer
Answer: A. A system designed to perform a specific task
375. Which of the following is NOT a characteristic of an embedded system?
Show answerHide answer
Answer: C. General-purpose computing
376. Which of the following is NOT an example of an embedded system?
Show answerHide answer
Answer: B. Home computer
377. Which of the following is NOT a challenge in embedded system design?
Show answerHide answer
Answer: D. Compatibility with standard operating systems
378. What is the purpose of a microcontroller in an embedded system?
Show answerHide answer
Answer: A. To perform real-time processing
379. Which of the following is NOT a programming language commonly used for embedded system development?
Show answerHide answer
Answer: B. Python
380. Which of the following is NOT a method for interfacing with external devices in an embedded system?
Show answerHide answer
Answer: D. Random access memory (RAM)
381. Which of the following is a key consideration in power management for embedded systems?
Show answerHide answer
Answer: C. Maximizing battery life
382. Which of the following is a benefit of using an embedded system in a product?
Show answerHide answer
Answer: C. Increased reliability
383. Which of the following is not a type of embedded system?
Show answerHide answer
Answer: D. Web-based embedded system
384. Which of the following is an example of a real-time embedded system?
Show answerHide answer
Answer: C. Air traffic control system
385. Which of the following is not a characteristic of a networked embedded system?
Show answerHide answer
Answer: D. Standalone operation
386. An automotive embedded system is an example of a(n) ________ embedded system.
Show answerHide answer
Answer: D. Hybrid
387. Which of the following is not a characteristic of an embedded system?
Show answerHide answer
Answer: C. Standard operating system
388. Which of the following is not a component of an embedded system?
Show answerHide answer
Answer: D. Monitor
389. A thermostat is an example of a(n) ________ embedded system.
Show answerHide answer
Answer: C. Standalone
390. What is the main difference between stand-alone and real-time embedded systems?
Show answerHide answer
Answer: B. Stand-alone systems have no interaction with external environment, whereas real-time systems interact with the environment and provide real-time response.
391. Which of the following is true about custom single-purpose processors?
Show answerHide answer
Answer: C. They are optimized for a specific application.
392. What is the primary advantage of using a custom single-purpose processor over a general-purpose processor in an embedded system?
Show answerHide answer
Answer: C. Higher performance
393. Which of the following is NOT a key consideration when optimizing a custom single-purpose processor for an embedded system?
Show answerHide answer
Answer: B. Compatibility with existing software
394. Which of the following is not a design consideration for custom single-purpose processors?
Show answerHide answer
Answer: C. Compatibility with existing software
395. Which of the following is NOT a common application for custom single-purpose processors in embedded systems?
Show answerHide answer
Answer: D. General-purpose computing
396. Which of the following is a disadvantage of using a custom single-purpose processor in an embedded system?
Show answerHide answer
Answer: A. Higher cost
397. Which of the following is a key consideration when designing a custom single-purpose processor for an embedded system?
Show answerHide answer
Answer: C. Small code size
398. Which of the following is a key advantage of using a custom single-purpose processor in an embedded system?
Show answerHide answer
Answer: C. Higher performance
399. Which of the following is NOT a benefit of using a custom single-purpose processor in an embedded system?
Show answerHide answer
Answer: D. Greater flexibility
400. Which of the following is a common approach to reducing the code size of a custom single-purpose processor?
Show answerHide answer
Answer: C. Removing unused instructions
401. Which of the following is a common method for optimizing a custom single-purpose processor for an embedded system?
Show answerHide answer
Answer: B. Removing unused instructions
402. Which of the following is an example of a custom single-purpose processor design?
Show answerHide answer
Answer: A. FPGA
403. What is the main objective of optimizing custom single-purpose processors?
Show answerHide answer
Answer: C. To improve the performance
404. Which of the following techniques is used for optimizing custom single-purpose processors?
Show answerHide answer
Answer: D. All of the above
405. Which of the following is a disadvantage of using custom single-purpose processors?
Show answerHide answer
Answer: D. All of the above
406. Which of the following is not a factor in the design of custom single-purpose processors?
Show answerHide answer
Answer: D. All of the above are factors
407. Which of the following is not a technique used for optimizing custom single-purpose processors?
Show answerHide answer
Answer: A. Data compression
408. Which of the following is not an application of custom single-purpose processors?
Show answerHide answer
Answer: D. General-purpose computing
409. What is an embedded system?
Show answerHide answer
Answer: A. A computer system used in industrial control applications
410. Which of the following is not an example of an embedded system?
Show answerHide answer
Answer: D. Personal computer
411. What is the primary function of an embedded system?
Show answerHide answer
Answer: C. To control a specific device or process
412. Which of the following is not a characteristic of an embedded system?
Show answerHide answer
Answer: C. High processing speed
413. Which of the following is an example of an event-driven system?
Show answerHide answer
Answer: A. A vending machine
414. Which of the following is not a type of embedded system?
Show answerHide answer
Answer: D. Mainframe system
415. What is the main advantage of using a microcontroller in an embedded system?
Show answerHide answer
Answer: C. It has built-in peripherals and memory
416. Which of the following is not a factor to consider when selecting a microcontroller for an embedded system?
Show answerHide answer
Answer: D. Color display resolution
417. What is firmware?
Show answerHide answer
Answer: C. Software that is permanently stored in ROM or flash memory
418. What is the primary difference between a microcontroller and a microprocessor?
Show answerHide answer
Answer: A. A microcontroller includes on-board memory and I/O, while a microprocessor does not.
419. Which type of memory is commonly used for program storage in embedded systems?
Show answerHide answer
Answer: D. Flash
420. What is the function of a watchdog timer in an embedded system?
Show answerHide answer
Answer: A. To reset the system if it becomes unresponsive.
421. Which of the following is an advantage of using an FPGA in embedded system design?
Show answerHide answer
Answer: C. Flexibility in design
422. What is the primary advantage of using a digital signal processor (DSP) in an embedded system?
Show answerHide answer
Answer: C. High accuracy in mathematical calculations
423. Which of the following statements about the programmer's view of an embedded system is true?
Show answerHide answer
Answer: A. It provides a detailed understanding of the software components
424. Which of the following statements about the operation of an embedded system is true?
Show answerHide answer
Answer: C. It can be either deterministic or nondeterministic depending on the system design and implementation.
425. Which of the following statements about the execution of programs on an embedded system is true?
Show answerHide answer
Answer: B. Programs are executed directly on the hardware of the system.
426. Which of the following is NOT a typical operation performed by an embedded system?
Show answerHide answer
Answer: C. Performing complex computations
427. Which of the following best describes the programmer's view of an embedded system?
Show answerHide answer
Answer: C. The programming language used to write software for the system
428. Which of the following is a typical input device in an embedded system?
Show answerHide answer
Answer: C. Touchscreen
429. Which of the following is a typical output device in an embedded system?
Show answerHide answer
Answer: B. Speaker
430. Which of the following is a typical communication protocol used by embedded systems?
Show answerHide answer
Answer: C. TCP/IP
431. Which of the following is a typical memory component used in an embedded system?
Show answerHide answer
Answer: C. DRAM
432. Which of the following is NOT a typical programming language used in embedded systems?
Show answerHide answer
Answer: D. Python
433. Which of the following is NOT a typical application for an embedded system?
Show answerHide answer
Answer: D. Web development
434. Which of the following best describes the purpose of an interrupt in an embedded system?
Show answerHide answer
Answer: B. To allow communication between components
435. What is the purpose of the instruction set architecture (ISA) in an embedded system?
Show answerHide answer
Answer: D. To provide a standard interface between the software and hardware components
436. Which of the following is not a common method of communication between embedded systems and external devices?
Show answerHide answer
Answer: D. FTP
437. Which of the following is not a common component of an embedded system development environment?
Show answerHide answer
Answer: D. Printer
438. Which of the following is a common method for programming an embedded system?
Show answerHide answer
Answer: C. Using a high-level programming language and a compiler
439. Which of the following is true regarding Application-Specific Instruction-Set Processors (ASIPs)?
Show answerHide answer
Answer: A. They are designed to be used for a specific application or a set of applications.
440. Which of the following is an advantage of using an ASIP in an embedded system?
Show answerHide answer
Answer: D. It provides a better performance than general-purpose processors.
441. Which of the following is an example of an ASIP?
Show answerHide answer
Answer: C. Tensilica Xtensa
442. Which of the following is true regarding the instruction set of an ASIP?
Show answerHide answer
Answer: C. It is designed to be optimized for a specific application.
443. Which of the following is an advantage of using an ASIP in a real-time embedded system?
Show answerHide answer
Answer: C. It can be optimized for the specific real-time requirements of the system.
444. Which of the following is a disadvantage of using an ASIP over a general-purpose processor?
Show answerHide answer
Answer: D. Reduced flexibility
445. Which of the following is an example of an ASIP?
Show answerHide answer
Answer: D. Digital Signal Processor (DSP)
446. Which of the following statements is true regarding ASIPs?
Show answerHide answer
Answer: A. They are designed for a specific application
447. Which of the following is a limitation of using an ASIP?
Show answerHide answer
Answer: C. Limited functionality
448. Which of the following is an advantage of using an ASIP in a multimedia processing embedded system?
Show answerHide answer
Answer: C. It can provide a higher level of performance compared to general-purpose processors.
449. Which of the following is an example of an application that would benefit from using an ASIP?
Show answerHide answer
Answer: B. Video encoding
450. Purpose of special processor?
Show hintHide hint
Optimized.
Show answerHide answer
Answer: B. Special function
Special processors optimized for specific functions like GPU or crypto.
4.5 Real-time operating and control systems
16 questions · ACtE0405
451. What is preemption in real-time system?
Show hintHide hint
High-priority interrupts low-priority.
Show answerHide answer
Answer: A. Interrupt and switch tasks
Preemption is ability to interrupt currently executing task and switch to higher priority task.
452. What is purpose of RTOS?
Show hintHide hint
Real-time management.
Show answerHide answer
Answer: B. Manage resources and scheduling
Real-time operating system manages system resources and scheduling to meet time constraints.
453. What is a real-time kernel?
NEC model setShow hintHide hint
Kernel is the core of any OS. What does 'real-time' mean it must do?
Show answerHide answer
Answer: A. The core component of a real-time operating system
A real-time kernel is the core component of a real-time operating system (RTOS). It manages resources and task scheduling with strict timing constraints. Characteristics of a real-time kernel: (1) Deterministic behavior - Response times are predictable and bounded, (2) Priority-based scheduling - Tasks are scheduled by priority, high-priority tasks preempt low-priority ones, (3) Preemption - Can interrupt lower-priority tasks to serve urgent ones, (4) Low latency - Minimal delay between interrupt and response. Real-time kernels are used in: (1) Embedded systems - Industrial controllers, medical devices, automotive systems, (2) Time-critical applications - Flight control, power plants, robotics. Distinction from general-purpose kernels: (1) General-purpose kernels optimize for throughput and fairness, (2) Real-time kernels optimize for meeting deadlines. Types: (1) Hard real-time - Missing deadline is unacceptable (aircraft systems), (2) Soft real-time - Missing deadline is undesirable but tolerable (multimedia). The kernel's job is to enforce timing guarantees for all tasks in the system. Examples: VxWorks, QNX Neutrino, FreeRTOS.
454. Preemptive scheduling allows:
Show answerHide answer
Answer: B. Tasks to be interrupted by higher priority tasks
455. Device drivers are:
Show answerHide answer
Answer: B. Software interfaces between OS and hardware
456. An open-loop control system:
Show answerHide answer
Answer: B. Does not use feedback to adjust output
457. Hard real-time systems:
Show answerHide answer
Answer: B. Must meet deadlines or system fails
458. Which scheduling algorithm is most appropriate for real-time systems?
Show answerHide answer
Answer: C. Rate Monotonic
459. Which of the following is a characteristic of embedded operating systems?
Show answerHide answer
Answer: C. Real-time capabilities
460. In a closed-loop control system:
Show answerHide answer
Answer: C. Feedback is used to adjust the control action
461. What is the purpose of an operating system in an embedded system?
Show answerHide answer
Answer: C. To manage system resources
462. What is the purpose of a real-time operating system (RTOS) in an embedded system?
Show answerHide answer
Answer: B. To manage system resources and scheduling
463. Which of the following is not a benefit of using an RTOS (Real-Time Operating System) in an embedded system?
Show answerHide answer
Answer: C. Lower cost
464. What is the purpose of a Real-Time Operating System (RTOS) in an embedded system?
Show answerHide answer
Answer: A. To schedule and manage tasks in real-time.
465. Which of the following is a typical real-time operating system used in embedded systems?
Show answerHide answer
Answer: D. FreeRTOS
466. Health monitoring systems, emergency braking systems, and airplane control systems are examples of which type of real-time system?
Recalled from Jan 2026 examShow hintHide hint
These systems must respond within strict time limits or failures are catastrophic. What type?
Show answerHide answer
Answer: C. Hard real-time systems
Health monitoring systems, emergency braking systems, and airplane control systems are examples of hard real-time systems. Hard real-time systems have strict timing constraints where missing deadlines can cause catastrophic failures or loss of life. Hard real-time systems must guarantee response within specific time limits 100% of the time. Soft real-time systems (multimedia) have timing constraints but missing deadlines causes degraded performance, not failure. Firm real-time systems (video streaming) miss occasional deadlines but with limited consequences.
4.6 Hardware description language and IC technology
9 questions · ACtE0406
467. What is relationship between Signed integers and library?
Aasadh 2081 examShow hintHide hint
Standard integer types library.
Show answerHide answer
Answer: C. cstdint
cstdint is the C++ standard library for fixed-size integer types including signed integers.
468. Which of the following is NOT a VHDL modeling style?
NEC model setShow hintHide hint
VHDL has Behavioral, Structural, and Dataflow styles. Which is NOT one?
Show answerHide answer
Answer: D. Algorithmic
Algorithmic is NOT a VHDL modeling style. The three main VHDL modeling styles are: (1) Behavioral - describes what the system does using processes, (2) Structural - describes how the system is built from components, (3) Dataflow - describes the flow of data through concurrent statements. 'Algorithmic' is not a distinct modeling style in VHDL, though algorithmic descriptions are often part of behavioral modeling.
469. In a 1:2 DMUX with input d, select line s, and output y, the correct way to write in VHDL is?
Past questionShow hintHide hint
The PROCESS sensitivity list includes only signals that affect the behavior. Outputs don't go in the list.
Show answerHide answer
Answer: C. PROCESS(d, s)
In VHDL, the correct way to write a 1:2 DMUX process is PROCESS(d, s). Understanding VHDL PROCESS Sensitivity List: (1) Lists only INPUT signals that affect process behavior, (2) When any input in list changes, process executes, (3) Outputs are NOT included in sensitivity list. DMUX Behavior: (1) 1 input d, (2) 1 select line s, (3) 2 outputs (typically y0, y1 or y0, y1). How DMUX Works: (1) When s=0: d→output y0 (or first output), (2) When s=1: d→output y1 (or second output), (3) Only selected output gets input value. VHDL Process Example: process(d, s) is begin if s = '0' then y0 <= d; y1 <= '0'; else y0 <= '0'; y1 <= d; end if; end process; Why NOT y in list: (1) y (or y0, y1) are outputs, (2) Outputs are assigned values, not read, (3) Outputs don't trigger process execution, (4) Only inputs in sensitivity list. Sensitivity List Rules: (1) Include all read signals, (2) Exclude all written signals (outputs), (3) Include constants if they're part of logic. Why not other options: (1) d0, d1 - These are not separate inputs in 1:2 DMUX, (2) Includes y - Outputs shouldn't be in list, (3) d0, d1, s - Wrong input names. VHDL Syntax Comparison: (1) Behavioral VHDL - Uses sensitivity list, (2) Structural VHDL - Component instantiation, (3) Dataflow VHDL - Concurrent assignments. Common Mistakes: (1) Including outputs in sensitivity list - No error but unnecessary, (2) Missing inputs - Process won't execute when they change, (3) Extra signals - Slows simulation. This demonstrates VHDL coding practices.
470. VHDL is primarily used for:
Show answerHide answer
Answer: C. Hardware description and modeling
471. In VHDL, the purpose of an entity declaration is to:
Show answerHide answer
Answer: B. Specify the interface of a component
472. Pipelining in VHDL allows for:
Show answerHide answer
Answer: B. Increased throughput
473. In VHDL, a process statement is used to:
Show answerHide answer
Answer: B. Describe sequential behavior
474. The primary difference between combinational and sequential logic in VHDL is:
Show answerHide answer
Answer: A. Sequential logic includes memory elements
475. What is a signal in VHDL?
NEC model setShow hintHide hint
Signals in VHDL represent the wires connecting components. What do wires do in circuits?
Show answerHide answer
Answer: B. A physical wire used to transmit data in a digital circuit
In VHDL (Very High Speed Integrated Circuit Hardware Description Language), a signal represents a physical wire used to transmit data between components in a digital circuit. Signals are fundamental building blocks in VHDL: (1) Carry values of specific types (bit, bit_vector, std_logic, etc.), (2) Connect different components of the design, (3) Have propagation delays in simulation, (4) Update at specific times determined by the simulator. Key differences from variables: (1) Variables are used within processes, updating immediately, (2) Signals are global to the design, updating at end of time step, (3) Signals model hardware wires, variables model software concepts. Signal declaration: signal wire_name : std_logic; signal bus : std_logic_vector(7 downto 0); Signal assignment: wire_name <= source_value; Bus signals can carry multiple bits (buses), similar to real circuit buses. Signals include: (1) Input ports - From external circuits, (2) Output ports - To external circuits, (3) Internal signals - Between internal components. This is why VHDL is suitable for hardware design - signals naturally model the wires in physical circuits.