Q1a2MUnit 1 — Functional units of digital system and their interconnections
Survival ModeRepeated
Enlist the basic functional units of a digital system?
The functional units of a digital computer are the input unit, output unit, central processing unit with its arithmetic logic unit and control unit, and memory. Buses connect them so data and instructions flow from input through memory to the processor and results return to output under control signals.
Key Points
Input and output units
CPU with ALU and control
Memory and connecting buses
Q1b2MUnit 1 — general registers organization
Core Concept
Define general-purpose registers in a processor?
Answer: General-purpose registers (GPRs) are CPU registers that can be used by the programmer or compiler for any common purpose, such as holding operands, intermediate results, memory addresses, or counters.
Unlike special-purpose registers (PC, IR, SP), GPRs are not restricted to one fixed function. A larger GPR set improves performance by reducing memory accesses. Example: R0-R31 in MIPS/ARM, EAX/EBX/ECX/EDX in x86.
Key Points
GPRs hold operands, results, addresses temporarily
Not tied to a fixed CPU function
Reduce memory access and improve speed
Examples: R0-R31, AX/BX/CX/DX
Q1c2MUnit 2 — Floating point arithmetic operation
Survival ModeRepeated
Explain floating point representation?
Floating point representation stores a number as a sign, an exponent and a significand or mantissa. The value is the significand multiplied by the base raised to the exponent, with the sign indicating polarity. Normalisation keeps one nonzero digit before the point to maximise precision and gives a unique representation.
Key Points
Sign exponent significand
Value is mantissa times base power
Normalisation gives uniqueness
Q1d2MUnit 2 — Arithmetic & logic unit design
Core Concept
Discuss the role of ALU in a processor?
The arithmetic and logic unit performs the data processing operations of the processor, including addition, subtraction, AND, OR, XOR, complement and shifts, selected by control signals from the control unit. It produces the result and status flags such as zero, carry, sign and overflow that influence conditional branches.
Key Points
Performs arithmetic and logic
Selected by control signals
Sets status flags
Q1e2MUnit 3 — micro operations
Core Concept
Discuss the micro operations in computer architecture?
Micro-operations are the elementary actions performed in one clock cycle, such as register transfers, arithmetic, logic and shifts. Examples are loading the program counter into the address register, adding two registers, masking bits with AND and shifting a word left. The control unit sequences them to execute instructions.
Key Points
Atomic one-cycle actions
Include transfers arithmetic logic shifts
Sequenced by control unit
Q1f2MUnit 4 — ROM memories
Core Concept
Explain the purpose of ROM memories in computer systems?
Read only memory retains its contents without power and is used to store firmware, boot code, lookup tables and fixed programs that should not be changed during normal operation. Its nonvolatile nature makes it suitable for startup instructions and embedded programs, while variations such as EPROM and flash allow controlled reprogramming.
Key Points
Nonvolatile storage
Stores firmware and boot code
Reprogrammable variants exist
Q1g2MUnit 5 — Peripheral devices
Core Concept
Enlist the peripheral devices in a computer system?
Peripheral devices are external or internal units that exchange data with the computer. Examples include keyboard, mouse, monitor, printer, scanner, hard disk, solid state drive, optical drive, modem, network card, speakers and webcam. Connected through ports and controllers, they convert between the computer's digital signals and the physical world.
Key Points
Input devices keyboard mouse
Output devices monitor printer
Storage and network devices
Section B
7 Marks Each · 5 questions
Q2a7MUnit 1 — bus and memory transfer
Core Concept
Discuss the process of data transfer between registers, buses, and memory units in a digital system. Include explanations of read and write operations?
Answer: Data transfer in a digital system occurs among registers, common buses, and memory units using control signals synchronized by clock.
1. Register-to-register transfer:
Data moves from source register to destination register over internal bus.
RTL: R2←R1 (on clock edge when control signal is active).
Control unit enables output of R1 and load input of R2.
2. Bus transfer:
A common bus carries data between selected source and destination.
Only one source drives bus at a time; tri-state buffers or multiplexers prevent contention.
Example: BUS←R1,R2←BUS.
3. Memory read operation:
CPU places memory address in MAR: MAR←Address.
Control unit asserts Read signal (RD/MEMR).
Memory places content on data bus: MDR←M[MAR].
Data is transferred to CPU register: R←MDR.
4. Memory write operation:
CPU places address in MAR: MAR←Address.
CPU places data in MDR: MDR←R.
Control unit asserts Write signal (WR/MEMW).
Memory stores data: M[MAR]←MDR.
Operation
Key RTL
Control Signal
Direction
Register transfer
R2←R1
Register load/enable
Internal
Memory read
DR←M[MAR]
MEMR/RD
Memory -> CPU
Memory write
M[MAR]←DR
MEMW/WR
CPU -> Memory
Conclusion: Read and write are controlled by MAR/MDR, bus selection, and read/write control lines, ensuring correct and synchronized data movement.
Moving data between registers, buses and memory. Information moves through a digital system over shared buses under the control of the control unit. To transfer data from one register to another, the source register's output is enabled onto the bus and the destination register's load input is asserted on the appropriate clock edge. Only one source may drive the bus at a time or contention occurs and the value is corrupted. For a memory read, the processor places the address on the address bus, asserts the read control line and waits for the memory to place the requested word on the data bus, which the processor latches into a register. For a memory write, the processor places the address and data on their buses, asserts the write line and the memory captures the data at the appropriate edge. Because memory is slower than the processor, transfers may need wait states or handshaking signals that indicate when the data is valid or has been accepted. Direct memory access allows a peripheral to take control of the buses and transfer blocks of data without continuous processor involvement. A bus transfer therefore involves enabling the correct driver, selecting the correct receiver, asserting the proper control signals and respecting timing. A good answer describes each step for both read and write, explains the role of tri-state buffers and control signals, and states why timing and arbitration matter. Mentioning that the number of clock cycles per transfer affects overall performance ties the mechanism to system speed.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Register transfer: R2<-R1 via internal bus and control signals
Tri-state/mux ensures only one bus driver; control+clock synchronize
Q2b7MUnit 2 — Booths algorithm and array multiplier
Predicted
Describe Booth's algorithm for signed binary multiplication. Explain how it optimizes the multiplication process and discuss its advantages over traditional methods?
Answer: Booth's algorithm is a signed binary multiplication algorithm for two's-complement numbers that recodes the multiplier by examining adjacent bit pairs.
Algorithm:
Registers: A (accumulator, n bits), Q (multiplier, n bits), Q−1=0, M (multiplicand).
Repeat n times:
Check (Q0,Q−1):
10: A←A−M
01: A←A+M
00,11: no arithmetic operation
Perform Arithmetic Right Shift on (A,Q,Q−1).
Final product is in (A,Q).
How it optimizes multiplication:
A sequence of 1s in the multiplier (e.g., 0011110) is treated as 2k−2m instead of many separate additions.
It replaces multiple add/shift operations for consecutive 1s with one subtraction at the beginning and one addition at the end of the run.
This reduces the number of arithmetic operations for multipliers with long runs of 1s or 0s.
Advantages over traditional shift-and-add:
Aspect
Traditional Shift-and-Add
Booth's Algorithm
Signed numbers
Needs sign correction / separate handling
Handles signed two's-complement directly
Runs of 1s
One addition per 1 bit
One add + one subtract for a run
Control
Simple but may do many adds
Slightly more control, fewer arithmetic ops in favorable cases
Hardware
Simple
Requires add/subtract and arithmetic shift
Conclusion: Booth's algorithm efficiently multiplies signed two's-complement numbers by bit-pair recoding and arithmetic right shifts, reducing operations for consecutive 1s.
Multiplying signed numbers efficiently. Booth's algorithm multiplies two signed binary numbers in two's complement form without treating the sign separately. It examines pairs of bits of the multiplier, including an implicit zero appended at the right. For each pair, if the bits are zero zero or one one, no addition is needed; if they are zero one, the multiplicand is added to the accumulator; if they are one zero, the multiplicand is subtracted. After each step the accumulator and multiplier are shifted right arithmetically, preserving the sign. This recoding turns long runs of ones into a single subtraction at the start of the run and no operations in the middle, so it reduces the number of additions compared with ordinary shift and add multiplication. For multiplying minus twelve by minus eighteen using six bit two's complement representations, the multiplier bits end with the pattern one one zero zero one one zero, producing add and subtract steps whose accumulated result is two hundred and sixteen, the correct positive product. For minus five times three, the multiplier has a run that requires a subtraction and then a shift, again giving the correct negative result after the fixed number of cycles. An array multiplier takes a different approach and forms all partial products simultaneously with an AND gate array, then sums them with a network of adders, giving regular hardware and high speed at the cost of area. A good answer explains the bit pair rules, shows a step by step table of accumulator, multiplier and operation for the given numbers, explains why the algorithm works for signed operands and contrasts it with the array approach. Mentioning that the arithmetic right shift must preserve the sign is a common marking point.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Then arithmetic right shift of (A,Q,Q-1), repeat n times
Optimizes runs of 1s as add/subtract instead of many additions
Advantage: direct signed two's-complement multiplication
Q2c7MUnit 3 — concept of horizontal and vertical microprogramming
Core Concept
Describe the concept of horizontal and vertical microprogramming in control unit design?
Answer: Horizontal and vertical microprogramming are two formats for designing microinstructions in a microprogrammed control unit.
Basis
Horizontal Microprogramming
Vertical Microprogramming
Control field format
Wide word; one bit/field per control signal or minimally encoded
Narrow word; highly encoded fields
Parallelism
High; can activate many control signals simultaneously
Limited; fewer parallel operations per microinstruction
Decoding
Little or no decoding needed
Requires decoder to generate control signals
Word length
Long microinstruction
Short microinstruction
Control memory size
May be larger due to wide words
Smaller due to compact encoding
Speed
Faster execution
Slightly slower due to decoding
Flexibility/ease
Harder to write/compact
Easier to program and compact
Horizontal example: Separate bits for ALU_ADD, REG_A_LOAD, MEM_READ etc. in one microinstruction.
Vertical example: A 3-bit ALU field encoded as 000=ADD,001=SUB,... decoded to actual control line.
Conclusion: Horizontal microprogramming favors speed and parallel control; vertical microprogramming favors compactness and easier microcode design.
Turning instructions into signals. The control unit directs the operation of the processor by generating the timing and control signals that select registers, gate buses, choose ALU operations and enable memory accesses. In a hardwired control unit these signals are produced by combinational logic built from the instruction opcode, the current state of the instruction cycle, timing signals and condition flags. The design typically includes an instruction decoder, a step counter or state register, a timing generator and a control logic network that implements the Boolean equations for each output. Hardwired control is fast because signals come directly from gates, but it is inflexible and difficult to modify or debug, and its complexity grows rapidly with the instruction set. In a microprogrammed control unit each machine instruction is represented by a sequence of microinstructions stored in a control memory. Each microinstruction specifies a set of control signals and the address of the next microinstruction. Sequencing can be by incrementing the control address register, by branching to the routine for the fetched opcode, or by conditional branching based on flags. Microprogramming is systematic, flexible and easy to extend, but slower because each microinstruction requires a control memory access. Horizontal microprogramming emits many control bits directly with high parallelism and wide words, while vertical microprogramming encodes fields into fewer bits and needs extra decoding, saving memory at the cost of speed. A good answer defines both approaches, describes the components of a hardwired unit, explains microinstruction sequencing with a simple example and compares speed, flexibility, size and ease of design. Mentioning that modern processors often use a mixture, with hardwired control for simple common instructions and microcode for complex ones, shows current practice.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Horizontal: wide, minimally encoded, high parallelism, fast, little decoding
Vertical: narrow, highly encoded, needs decoder, compact control memory
Trade-off between speed/parallelism and memory compactness
Both used in microprogrammed control unit design
Q2d7MUnit 4 — address mapping and replacement Auxiliary memories: magnetic disk
Predicted
Discuss the characteristics and functionalities of auxiliary memories such as magnetic disks, magnetic tapes, and optical disks?
Answer: Auxiliary memories are non-volatile secondary storage devices used to store large amounts of data permanently at lower cost per bit.
1. Magnetic Disk (Hard Disk):
Characteristics: Direct/random access, large capacity, non-volatile, moderate access time, reusable.
Construction: Circular platters coated with magnetic material, rotating at constant speed; read/write heads on actuator arm; concentric tracks divided into sectors.
Functionality: Stores OS, programs, files; supports read/write/update. Access time = seek time + rotational latency + transfer time + controller overhead.
2. Magnetic Tape:
Characteristics: Sequential access, very large capacity, low cost per bit, non-volatile, slow for random access.
Construction: Plastic tape coated with magnetic oxide wound on reels/cartridges; read/write head station.
Functionality: Used for backup, archival, batch processing, disaster recovery. Data accessed in sequence.
3. Optical Disk (CD/DVD/Blu-ray):
Characteristics: Non-volatile, portable, inexpensive distribution media, moderate capacity, usually slower than hard disk; read-only or write-once/rewriteable types.
Construction: Polycarbonate disk with pits/lands (pressed) or dye/phase-change layer; laser reads/writes by reflection.
Conclusion: Magnetic disks are best for online storage, magnetic tapes for archival/backup, and optical disks for portable distribution and backup.
Storage outside main memory. Auxiliary or secondary memory provides large, nonvolatile storage for programs and data. Memories are classified by access method into random access, where any location takes the same time to reach; sequential access, where data must be traversed in order as on magnetic tape; and direct access, where a seek moves to a track or cylinder and then waits for the desired sector, as on a magnetic disk. A magnetic disk consists of one or more rotating platters coated with magnetic material, read write heads mounted on arms, and concentric tracks divided into sectors. A cylinder is the set of tracks at the same radius on all surfaces. Disk access time is the sum of seek time to move the head to the track, rotational delay while the desired sector rotates under the head, transfer time to read or write the data and a small controller overhead. Magnetic tapes store data in blocks along a long strip and are cheap with very high capacity but slow because access is sequential; they are used for backup and archival storage. Optical disks use a laser to read pits and lands on a reflective surface, with formats such as CD, DVD and Blu-ray offering moderate capacity and durability. A good answer classifies memories by access method, draws or describes disk construction, defines track, sector, cylinder and cluster, writes the access time formula and compares disk, tape and optical storage on capacity, speed, cost and typical use. Mentioning that solid state drives now replace magnetic disks in many roles because they have no moving parts and much lower latency is a useful modern note.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Magnetic disk: direct access, platters/tracks/sectors, seek+rotation+transfer time
Magnetic tape: sequential access, very cheap, backup/archival
Discuss the functions and characteristics of I/O ports and their significance in facilitating data exchange between the CPU and external devices?
Answer: I/O ports are hardware registers/interfaces through which CPU communicates with external devices. A port acts as a connection point for data, status, and control signals.
Functions of I/O ports:
Data transfer: Data-in/data-out ports transfer actual data.
Status monitoring: Status port provides READY, BUSY, ERROR, ACK flags.
Device control: Control/command port sends commands like START, READ, WRITE, ENABLE INTERRUPT.
Buffering/latching: Holds data temporarily to match CPU-device timing.
Addressing/selection: Port address decoding selects specific device register.
Characteristics:
Addressable: Each port has unique address (isolated I/O) or memory-mapped address.
Direction: Input, output, or bidirectional.
Width: 8-bit, 16-bit, 32-bit etc.
Handshake support: May include control/status lines for asynchronous transfer.
Programmable/unidirectional: Some ports configurable (e.g., 8255 PPI).
Significance in CPU-device data exchange:
CPU cannot directly handle all peripheral electrical/timing differences.
Ports provide standardized registers for CPU instructions.
They enable polling, interrupt-driven I/O, and device control.
Port type
Purpose
CPU operation
Data port
Send/receive data
IN/OUT or LOAD/STORE
Status port
Read device state
Read flags before transfer
Control port
Configure/control device
Write command bits
Conclusion: I/O ports are essential register-level interfaces that make CPU-peripheral data exchange controlled, synchronized, and reliable.
Connecting peripherals to the processor. An input output interface is the circuitry between the CPU and a peripheral device that makes their different speeds, signal levels and timing compatible. Its functions include address decoding so the device responds to its assigned addresses, data buffering so a burst from the CPU can be held until the device is ready, command decoding to interpret read and write requests, status reporting to indicate busy, ready or error conditions, and error detection such as parity checks. An interface is needed because peripherals are much slower than the processor, use different voltage and current levels and may transfer data serially while the CPU uses a parallel bus. I/O ports are the addressable registers through which the processor communicates, usually classified as data ports, status ports and control ports. They may be memory mapped, sharing the same address space as memory and using ordinary load and store instructions, or isolated I/O with a separate address space and special input and output instructions. Peripheral devices include keyboards, mice, printers, disks, displays, scanners and network adapters, each with its own controller. A good answer defines the interface, lists and explains its functions, contrasts memory mapped and isolated I/O, describes the role of ports and gives examples of peripherals. Mentioning that without buffering and handshaking the processor would have to match the exact timing of every device, which is impractical, is the essential justification.
$IN/OUT\ instructions$ $Port\ mapped\ I/O$
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
I/O ports are addressable registers for CPU-peripheral communication
Types: data, status, control ports
Functions: transfer, buffering, status monitoring, device control, selection
Enable programmed/interrupt I/O through standardized CPU access
Section C
7 Marks Each · 10 questions
Q3a7MUnit 3 — Pipelining
Core Concept
Provide a detailed overview of processor organization, covering topics such as instruction fetch, decode, execute cycles, pipelining, and parallel processing techniques?
Answer:Processor organization describes how CPU components are structured and how instructions flow through fetch, decode, execute, and other stages.
1. Instruction Fetch:
PC holds address of next instruction.
MAR←PC; memory read places instruction in IR; PC←PC+1.
2. Instruction Decode:
Control unit decodes opcode in IR.
Identifies instruction type, addressing mode, operands, and required control signals.
3. Execute Cycle:
Operands fetched from registers/memory.
ALU performs arithmetic/logic operation or memory/I/O operation is carried out.
Data-level parallelism: SIMD/vector instructions operate on multiple data elements.
Thread/task-level parallelism: Multicore/multiprocessor systems execute multiple threads/processes.
MIMD/SMP/cluster: Multiple processors work on different instruction streams.
Technique
Main idea
Benefit
Pipelining
Overlap stages
Higher throughput
Superscalar
Multiple issue per cycle
More ILP
SIMD/Vector
Same op on many data
Fast data-parallel work
Multicore
Multiple cores/threads
Task parallelism
Conclusion: Modern processors combine efficient fetch-decode-execute design with pipelining and parallel processing to maximize performance.
Overlapping instruction execution. Pipelining is a technique that increases processor throughput by overlapping the execution of several instructions. Instead of completing one instruction before starting the next, the processor divides execution into stages such as instruction fetch, instruction decode, operand fetch, execute, memory access and write back. Each stage is a separate piece of hardware, and on each clock cycle every stage works on a different instruction, much like an assembly line. For a pipeline with five stages each taking twenty nanoseconds, one instruction without pipelining takes one hundred nanoseconds, so ten instructions take one thousand nanoseconds. With pipelining, after the first instruction completes at one hundred nanoseconds, one more completes every twenty nanoseconds, so ten instructions take one hundred plus nine times twenty, which is two hundred and eighty nanoseconds. The speedup is one thousand over two hundred and eighty, about three point six, and approaches the number of stages for a long stream of instructions. The throughput improves but the latency of a single instruction does not, and the clock period is limited by the slowest stage. Hazards reduce the ideal speedup. Structural hazards arise when two stages need the same resource, data hazards arise when an instruction needs a result not yet written, and control hazards arise from branches whose target is not known immediately. They are handled by forwarding, stalling, branch prediction and delayed branches. A good answer defines pipelining, lists and explains the stages, works through the numerical example with the pipeline timing, states the speedup formula and explains the three hazard types with remedies. Mentioning that deeper pipelines raise clock speed but worsen branch penalties and increases area and power shows a balanced view.
$MAR \leftarrow PC$ $IR$ $PC \leftarrow PC+1$
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Comparison summary: Address bus tells where to access, data bus carries what is transferred, and control bus tells how/when the transfer occurs. Together they enable proper communication among CPU, memory, and I/O devices.
Conclusion: The three buses differ in direction, width meaning, and signal type, but they operate together to complete every bus transaction.
Shared pathways inside a computer. A bus is a set of parallel conducting lines that carries information between the processor, memory and input output devices. Because a bus is shared, only one device can drive it at a time. The address bus carries the location being accessed and is unidirectional from the processor, its width determining the maximum addressable memory. The data bus carries the actual information and is bidirectional, its width determining how many bits move in one transfer. The control bus carries timing and command signals such as read, write, interrupt acknowledge and clock, coordinating which device uses the bus and when. Bus arbitration is the process of deciding which of several potential masters gains control when more than one wants to use the bus. In daisy chaining, all devices share a bus grant line that passes serially from one device to the next. A device that requests the bus captures the grant as it passes and blocks it from reaching lower priority devices, so priority is determined by physical position along the chain. The scheme needs few control lines and is simple to extend, but a failure in one device can break the chain and devices far from the processor may starve. Other schemes include independent request and grant lines with priority encoders and distributed arbitration. A good answer defines the bus and its three types, explains why arbitration is necessary when several masters exist, describes the daisy chain signal flow with a diagram and lists its advantages and limitations. Mentioning that synchronous buses use a clock while asynchronous buses use handshaking links this topic to transfer timing.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Data bus: bidirectional, carries data/instructions, width affects throughput
Control bus: carries MEMR/MEMW/IOR/IOW/CLK/IRQ/READY signals
Address=where, Data=what, Control=how/when
Q4a7MUnit 2 — Look ahead carries adders
Survival ModePredictedRepeated
Explain the concept of look-ahead carry adders in digital arithmetic circuits. Compare and contrast their performance with conventional ripple carry adders, highlighting advantages and disadvantages?
Answer: A carry look-ahead adder (CLA) improves addition speed by computing carries from generate/propagate signals in parallel.
Concept:
Gi=AiBi (generate), Pi=Ai⊕Bi (propagate).
Si=Pi⊕Ci, Ci+1=Gi+PiCi.
Expanded carries: C1=G0+P0C0, C2=G1+P1G0+P1P0C0, etc. Thus higher carries do not wait for ripple.
Comparison with ripple carry adder (RCA):
Feature
Ripple Carry Adder
Carry Look-Ahead Adder
Carry generation
Carry ripples from LSB to MSB
Carries generated in parallel by look-ahead logic
Propagation delay
O(n); increases with bit width
Much lower, ideally constant for a block / O(logn) with multi-level
Hardware complexity
Simple, fewer gates
More complex, more gates and fan-in
Speed
Slow for large n
Fast, suitable for high-speed ALUs
Cost/power
Lower
Higher
Design regularity
Very regular
Less regular due to carry logic
Advantages of CLA: High speed, reduced carry propagation delay, better for wide adders.
Disadvantages of CLA: Increased hardware complexity, larger area, higher fan-in/fan-out for large bit groups (often solved by multi-level CLA).
Conclusion: CLA trades extra hardware for speed, while RCA is simple but slower for large word sizes.
Adding without waiting for every carry. A ripple carry adder builds an n bit adder from full adders connected in series, so the carry out of each stage becomes the carry in of the next. The sum bit is correct only after the carry has rippled through all preceding stages, giving a delay proportional to n, which is slow for wide words. A look ahead carry adder removes this serial dependency by computing all carry signals in parallel from the input bits and the initial carry. Each bit position defines a generate signal, which is one when both operands are one so a carry is always produced, and a propagate signal, which is one when exactly one operand is one so an incoming carry is passed onward. The carry into stage i is then the generate of the previous stage or the propagate of the previous stage and the carry before it, expanded recursively into a sum of products involving only the input bits and the initial carry. Because these expressions depend only on the operands, all carries can be computed by a few levels of gate logic after the generate and propagate signals are formed. The sum is then the exclusive or of the operands and the computed carry. The advantage is a delay that grows roughly with the logarithm of the word length rather than linearly, which is crucial in fast processors. The disadvantages are increased gate count, more complex wiring and higher power consumption. A good answer draws or describes the block diagram with generate and propagate logic, writes the Boolean carry equations for at least the first few stages, compares delays quantitatively and lists the tradeoffs. Mentioning that the idea is applied hierarchically in carry skip and carry select adders shows how the concept extends.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
CLA: Gi=AiBi, Pi=Ai xor Bi, Ci+1=Gi+PiCi, Si=Pi xor Ci
RCA delay O(n); CLA much faster with parallel carry logic
Use CLA in high-speed ALUs, RCA in simple/low-cost designs
Q4b7MUnit 2 — Multiplication: Signed operand multiplication
Core Concept
Discuss the process of signed operand multiplication in digital arithmetic circuits?
Answer: Signed operand multiplication in digital arithmetic multiplies two numbers where operands may be positive or negative, producing a correctly signed product.
Methods:
1. Sign-magnitude method:
Multiply magnitudes as unsigned numbers.
Product sign = Sp=SA⊕SB (same signs positive, different signs negative).
Simple but needs separate magnitude and sign handling.
Booth's algorithm examines multiplier bit pairs (Q0,Q−1): 10 subtract multiplicand, 01 add multiplicand, 00/11 no operation; then arithmetic right shift.
Arithmetic shift preserves sign bit, so negative numbers are handled directly.
3. Baugh-Wooley / array method for signed numbers:
Uses modified partial products with sign-bit corrections for two's-complement operands.
Process (two's-complement, Booth-style):
Represent multiplicand M and multiplier Q in n-bit two's complement; set A=0, Q−1=0.
For n cycles: based on (Q0,Q−1) do add/subtract/no-op; arithmetic right shift (A,Q,Q−1).
Final 2n-bit product is in (A,Q) in two's-complement form.
Example:(−3)×(+5) in 4-bit: M=1101,Q=0101 gives final product 111100012=−15.
Aspect
Sign-Magnitude
Two's-Complement/Booth
Representation
Separate sign and magnitude
Two's complement
Correction
Sign XOR
Built into algorithm
Hardware/control
Separate sign logic
Add/subtract + arithmetic shift
Conclusion: Signed multiplication is commonly implemented by Booth/two's-complement methods because they handle negative operands directly and produce correct signed products.
Multiplying signed numbers efficiently. Booth's algorithm multiplies two signed binary numbers in two's complement form without treating the sign separately. It examines pairs of bits of the multiplier, including an implicit zero appended at the right. For each pair, if the bits are zero zero or one one, no addition is needed; if they are zero one, the multiplicand is added to the accumulator; if they are one zero, the multiplicand is subtracted. After each step the accumulator and multiplier are shifted right arithmetically, preserving the sign. This recoding turns long runs of ones into a single subtraction at the start of the run and no operations in the middle, so it reduces the number of additions compared with ordinary shift and add multiplication. For multiplying minus twelve by minus eighteen using six bit two's complement representations, the multiplier bits end with the pattern one one zero zero one one zero, producing add and subtract steps whose accumulated result is two hundred and sixteen, the correct positive product. For minus five times three, the multiplier has a run that requires a subtraction and then a shift, again giving the correct negative result after the fixed number of cycles. An array multiplier takes a different approach and forms all partial products simultaneously with an AND gate array, then sums them with a network of adders, giving regular hardware and high speed at the cost of area. A good answer explains the bit pair rules, shows a step by step table of accumulator, multiplier and operation for the given numbers, explains why the algorithm works for signed operands and contrasts it with the array approach. Mentioning that the arithmetic right shift must preserve the sign is a common marking point.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Signed multiplication must handle positive/negative operands correctly
Sign-magnitude: multiply magnitudes, sign = SA xor SB
Two's-complement/Booth: handles signed operands directly with arithmetic shift
Final product in 2n-bit two's-complement form
Q5a7MUnit 3 — concept of horizontal and vertical microprogramming
Core Concept
Describe the concept of horizontal and vertical microprogramming in control unit design?
Answer: Horizontal and vertical microprogramming are two formats for designing microinstructions in a microprogrammed control unit.
Basis
Horizontal Microprogramming
Vertical Microprogramming
Control field format
Wide word; one bit/field per control signal or minimally encoded
Narrow word; highly encoded fields
Parallelism
High; can activate many control signals simultaneously
Limited; fewer parallel operations per microinstruction
Decoding
Little or no decoding needed
Requires decoder to generate control signals
Word length
Long microinstruction
Short microinstruction
Control memory size
May be larger due to wide words
Smaller due to compact encoding
Speed
Faster execution
Slightly slower due to decoding
Flexibility/ease
Harder to write/compact
Easier to program and compact
Horizontal example: Separate bits for ALU_ADD, REG_A_LOAD, MEM_READ etc. in one microinstruction.
Vertical example: A 3-bit ALU field encoded as 000=ADD,001=SUB,... decoded to actual control line.
Conclusion: Horizontal microprogramming favors speed and parallel control; vertical microprogramming favors compactness and easier microcode design.
Turning instructions into signals. The control unit directs the operation of the processor by generating the timing and control signals that select registers, gate buses, choose ALU operations and enable memory accesses. In a hardwired control unit these signals are produced by combinational logic built from the instruction opcode, the current state of the instruction cycle, timing signals and condition flags. The design typically includes an instruction decoder, a step counter or state register, a timing generator and a control logic network that implements the Boolean equations for each output. Hardwired control is fast because signals come directly from gates, but it is inflexible and difficult to modify or debug, and its complexity grows rapidly with the instruction set. In a microprogrammed control unit each machine instruction is represented by a sequence of microinstructions stored in a control memory. Each microinstruction specifies a set of control signals and the address of the next microinstruction. Sequencing can be by incrementing the control address register, by branching to the routine for the fetched opcode, or by conditional branching based on flags. Microprogramming is systematic, flexible and easy to extend, but slower because each microinstruction requires a control memory access. Horizontal microprogramming emits many control bits directly with high parallelism and wide words, while vertical microprogramming encodes fields into fewer bits and needs extra decoding, saving memory at the cost of speed. A good answer defines both approaches, describes the components of a hardwired unit, explains microinstruction sequencing with a simple example and compares speed, flexibility, size and ease of design. Mentioning that modern processors often use a mixture, with hardwired control for simple common instructions and microcode for complex ones, shows current practice.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Horizontal: wide, minimally encoded, high parallelism, fast, little decoding
Vertical: narrow, highly encoded, needs decoder, compact control memory
Trade-off between speed/parallelism and memory compactness
Explain the concept of microprogram sequencing and how it enables the execution of complex instructions through a sequence of microinstructions?
Answer: Microprogram sequencing is the method of determining the next microinstruction address in a microprogrammed control unit so that microinstructions execute in the correct order.
Concept:
Each machine instruction is implemented by a sequence of microinstructions stored in control memory (CM).
A microinstruction contains control signals and next-address/sequencing information.
The Control Address Register (CAR) holds the address of the next microinstruction; Control Data Register (CDR) holds the fetched microinstruction.
How sequencing enables complex instructions:
Fetch micro-routine: Common microinstructions fetch instruction into IR.
Mapping/dispatch: Opcode is mapped to starting address of corresponding micro-routine in control memory.
Sequential execution: CAR increments to execute next microinstruction in sequence.
Conditional branch: Status/flag bits select different next microaddresses (e.g., zero flag, carry).
Unconditional branch/jump: Microinstruction specifies next CAR value for loops or common routines.
Subroutine/call-return: Microsubroutine address saved and restored for shared micro-operations.
End/return: Last microinstruction transfers control back to fetch cycle.
Sequencing method
Purpose
Example
Increment CAR
Next sequential microinstruction
CAR←CAR+1
Opcode mapping
Start routine for instruction
CAR←MAP(IRopcode)
Conditional branch
Decision based on flags
if Z=1 branch
Subroutine call/return
Reuse common microcode
save/restore CAR
Conclusion: Microprogram sequencing provides flexible control flow in control memory, allowing complex machine instructions to be executed as ordered microinstruction sequences.
Turning instructions into signals. The control unit directs the operation of the processor by generating the timing and control signals that select registers, gate buses, choose ALU operations and enable memory accesses. In a hardwired control unit these signals are produced by combinational logic built from the instruction opcode, the current state of the instruction cycle, timing signals and condition flags. The design typically includes an instruction decoder, a step counter or state register, a timing generator and a control logic network that implements the Boolean equations for each output. Hardwired control is fast because signals come directly from gates, but it is inflexible and difficult to modify or debug, and its complexity grows rapidly with the instruction set. In a microprogrammed control unit each machine instruction is represented by a sequence of microinstructions stored in a control memory. Each microinstruction specifies a set of control signals and the address of the next microinstruction. Sequencing can be by incrementing the control address register, by branching to the routine for the fetched opcode, or by conditional branching based on flags. Microprogramming is systematic, flexible and easy to extend, but slower because each microinstruction requires a control memory access. Horizontal microprogramming emits many control bits directly with high parallelism and wide words, while vertical microprogramming encodes fields into fewer bits and needs extra decoding, saving memory at the cost of speed. A good answer defines both approaches, describes the components of a hardwired unit, explains microinstruction sequencing with a simple example and compares speed, flexibility, size and ease of design. Mentioning that modern processors often use a mixture, with hardwired control for simple common instructions and microcode for complex ones, shows current practice.
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Microprogram sequencing selects next microinstruction address in CAR
Complex instructions are broken into micro-routines in control memory
Provides flexibility; changing microcode can modify instruction behavior
Q6a7MUnit 4 — Basic concept and hierarchy
Survival Mode
Design and explain the fundamental concept of computer memory hierarchy?
Answer: The memory hierarchy is a structured arrangement of storage systems in a computer to provide high average speed, large capacity, and reasonable cost.
Fundamental concept:
CPU needs very fast memory, but fast memory is expensive and small.
Large memory is cheap but slow.
Hierarchy combines both by placing small fast memory near CPU and larger slower memory farther away.
Levels:
CPU Registers: Fastest, word-size storage, directly used by ALU.
Cache Memory (L1/L2/L3): SRAM buffer between CPU and RAM; stores recently/frequently used blocks.
Main Memory (RAM): DRAM holds active programs and data.
Secondary Storage: HDD/SSD for persistent storage.
Tertiary Storage: Tape/optical for backup/archive.
Conclusion: Memory hierarchy gives the illusion of large, fast memory by exploiting locality and moving data between levels as needed.
Fast, small, expensive storage near the CPU. Memory hierarchy organises storage into levels that trade speed against size and cost. At the top are registers inside the processor, which are fastest and smallest, followed by cache levels, main memory, solid state storage, magnetic disks and finally removable or archival media. Each level is larger, slower and cheaper per bit than the one above it. The hierarchy works because of locality of reference: programs tend to access the same locations repeatedly in a short time, called temporal locality, and nearby locations in succession, called spatial locality. Keeping the currently active data in the fastest level therefore gives most accesses short latency. A memory chip of capacity sixty four K by eight has sixteen address lines because sixty four K is two to the sixteen, and eight data lines. To build a two hundred and fifty six K by sixteen memory system requires four times the words and twice the word width, so eight such chips arranged as four banks of two. Cache performance is measured by hit ratio and effective access time, which is hit time plus miss rate times miss penalty. A good answer draws the hierarchy pyramid with representative sizes and speeds, explains both forms of locality, works through the chip count calculation with address and data line reasoning and states why the arrangement is efficient. Mentioning that the hierarchy gives the apparent speed of the fastest memory and the capacity and cost of the cheapest storage is the key idea.
Tavg=h×Tcache+(1−h)×Tmemory
h
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Hierarchy balances speed, capacity, cost: registers to tertiary storage
Locality of reference: temporal and spatial
Average access time: Tavg = h*Tcache + (1-h)*Tmemory
Operation: Stores bit as charge on capacitor. Read is destructive; sense amplifier restores data. Capacitor leaks charge, so periodic refresh is required.
Characteristics: Slower than SRAM, high density, low cost/bit, used as main memory.
Feature
SRAM
DRAM
Cell
6T latch
1T1C
Refresh
Not required
Required periodically
Speed
Faster
Slower
Density
Lower
Higher
Cost/bit
Higher
Lower
Power
Lower standby in some cases; overall higher per bit
Needs refresh power
Use
Cache memory
Main memory
Architecture/operation (common RAM): Address decoder selects row/column; R/W control enables read or write; data buffers connect selected cell to data bus.
Conclusion: SRAM is fast and used for cache; DRAM is dense and economical for main memory but needs refresh.
RAM and its two main forms. Semiconductor random access memory is organised as an array of cells with address decoders and read write circuitry. Static RAM uses a flip flop, typically six transistors, to store each bit. It holds its content as long as power is applied, needs no refresh, is very fast and is used for cache memory, but it is expensive, consumes more area and has lower density. Dynamic RAM stores each bit as charge on a tiny capacitor with one transistor per cell. The charge leaks away over time, so every row must be refreshed periodically, typically every few milliseconds. DRAM is much denser and cheaper per bit and is used for main memory, but it is slower because of the need to refresh and because the sense amplifier must read and restore the charge. Address multiplexing is often used in DRAM so that row and column addresses share the same pins, reducing package size at the cost of extra cycles. Synchronous DRAM operates in step with the system clock and burst transfers increase throughput. A good answer describes the cell structure of SRAM and DRAM, compares them on density, speed, refresh, power and cost, explains why refresh is needed and states where each is used. Mentioning that nonvolatile memory such as flash retains data without power but has limited write endurance contrasts these two volatile technologies and completes the picture.
$Capacity=2^m\times n$ $SRAM,\ DRAM$
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
SRAM: 6T latch, no refresh, fast, low density, cache
DRAM: 1T1C capacitor, periodic refresh, slower, high density, main memory
DRAM read is destructive and needs sense amplifier restore
RAM organized with row/column decoders, R/W control, data buffers
Q7a7MUnit 5 — I/O interface
Survival ModePredicted
Describe the role of peripheral devices in a computer system and explain how they interact with the CPU through I/O interfaces and ports?
Answer: Peripheral devices provide input, output, storage, and communication capabilities to a computer system. They extend the computer's ability to interact with users and external environment.
Role of peripheral devices:
Input: Keyboard, mouse, scanner, microphone convert external data to digital form.
Storage: HDD, SSD, optical disk, USB drive store data.
Communication: NIC, modem, Wi-Fi adapter enable data exchange.
Interaction with CPU through I/O interfaces and ports:
I/O interface/module: Sits between system bus and device. It performs address decoding, buffering, command decoding, status reporting, and timing/format conversion.
I/O ports: Addressable registers in interface: data port, status port, control/command port.
Communication methods:
Programmed I/O: CPU polls status port and transfers data through data port.
Interrupt-driven I/O: Device interrupts CPU when ready.
Addressing: Memory-mapped I/O or isolated I/O instructions (IN/OUT).
Component
Role in interaction
Peripheral device
Performs actual I/O function
I/O port
Register access point for data/status/control
I/O interface
Adapts device to CPU bus
System bus/CPU
Issues commands, reads status, transfers data
Conclusion: Peripherals interact with CPU not directly, but through I/O interfaces and ports that manage compatibility, control, and data transfer.
Connecting peripherals to the processor. An input output interface is the circuitry between the CPU and a peripheral device that makes their different speeds, signal levels and timing compatible. Its functions include address decoding so the device responds to its assigned addresses, data buffering so a burst from the CPU can be held until the device is ready, command decoding to interpret read and write requests, status reporting to indicate busy, ready or error conditions, and error detection such as parity checks. An interface is needed because peripherals are much slower than the processor, use different voltage and current levels and may transfer data serially while the CPU uses a parallel bus. I/O ports are the addressable registers through which the processor communicates, usually classified as data ports, status ports and control ports. They may be memory mapped, sharing the same address space as memory and using ordinary load and store instructions, or isolated I/O with a separate address space and special input and output instructions. Peripheral devices include keyboards, mice, printers, disks, displays, scanners and network adapters, each with its own controller. A good answer defines the interface, lists and explains its functions, contrasts memory mapped and isolated I/O, describes the role of ports and gives examples of peripherals. Mentioning that without buffering and handshaking the processor would have to match the exact timing of every device, which is impractical, is the essential justification.
$I/O\ mapped\ vs\ memory\ mapped$ $Port\ address$
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
Peripherals provide input, output, storage, communication
I/O interface handles buffering, decoding, timing, format conversion
I/O ports: data, status, control registers
Transfer modes: programmed I/O, interrupt-driven I/O, DMA
Q7b7MUnit 5 — interrupt initiated I/O and Direct Memory Access
Core Concept
Explain the Direct Memory Access (DMA) techniques for data transfer?
Answer: Direct Memory Access (DMA) techniques transfer data between memory and I/O device with minimal CPU involvement. The DMA controller takes control of the system bus during transfer.
DMA transfer techniques/modes:
1. Burst Mode:
DMAC acquires bus and transfers entire block continuously.
Advantage: Fastest for large blocks. Disadvantage: CPU may be blocked for long time.
2. Cycle Stealing Mode:
DMAC transfers one word/byte at a time, stealing one bus cycle when CPU does not need bus or by briefly pausing CPU.
Advantage: CPU not blocked for long. Disadvantage: Slower overall block transfer.
3. Transparent/Interleaved Mode:
DMA transfers only when CPU is not using system bus.
Advantage: No CPU slowdown. Disadvantage: Slowest, depends on CPU bus idle time.
DMA operation sequence:
CPU initializes DMAC: source/destination address, count, mode, direction.
I/O device sends DMA request.
DMAC sends bus request; CPU grants bus.
DMAC performs transfer(s) in selected mode.
After count=0, DMAC issues interrupt to CPU.
Mode
Bus ownership
CPU impact
Best use
Burst
Whole block
High blocking
High-speed disk/network block
Cycle stealing
One cycle at a time
Moderate
Balanced systems
Transparent
Only idle cycles
Minimal
Low-priority background transfer
Conclusion: DMA techniques differ in bus ownership strategy; burst is fastest, cycle stealing balances CPU access, transparent minimizes CPU interference.
Programmed I/O, interrupts and DMA. Data transfer between a computer and its peripherals can use several methods. In programmed I/O the processor repeatedly reads the device status port until the device signals ready, then transfers one word. It is simple but wastes processor time in a busy wait loop. In interrupt initiated I/O the device sends an interrupt request when it is ready, the processor finishes its current instruction, saves its context and jumps to an interrupt service routine that performs the transfer and returns. This removes polling overhead and lets the processor do useful work meanwhile, but each interrupt has context saving overhead and many small interrupts can be costly. Interrupt hardware includes request lines, an interrupt mask register to disable sources, a priority encoder to select the highest priority pending interrupt, and an interrupt acknowledge signal; interrupts may be vectored, supplying the address of the service routine directly, or non vectored, requiring software to poll for the source. Direct memory access goes further by letting a DMA controller take control of the buses and transfer an entire block of data between device and memory without processor involvement. The processor sets up the controller with the starting address, word count and direction, then continues other work. The controller steals memory cycles when the device is ready and interrupts the processor only when the whole block is complete. DMA is therefore far more efficient for large blocks such as disk transfers. A good answer compares the three methods with respect to CPU involvement, speed and overhead, describes the DMA controller registers and cycle stealing, explains interrupt hardware and gives applications for each method. Mentioning that DMA can compete with the CPU for memory bandwidth explains a limitation of the technique.
$DMA:\ source,\ dest,\ count$ $Cycle\ stealing$
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.
Key Points
DMA modes: burst, cycle stealing, transparent
Burst: whole block transfer, fastest but CPU blocked
Cycle stealing: one word/cycle, balanced
Transparent: during CPU idle bus cycles, minimal CPU impact