Multi Atoms
Multi AtomsSep 27
Education

Computer Organization Unit-1 One Shot BBC304 AKTU BCA 2nd Year | PYQ Solution OOPS With C++ | Aktu

201 min video5 key momentsWatch original
⚡
TL;DR

AKTU's Computer Organization Unit-1 covers buses, registers, arithmetic circuits, and ALU design — Booth's algorithm and carry lookahead adders are exam favorites.

Key Insights

1

Three bus types control communication — CPU acts as the brain controlling all data transfer. The address bus runs unidirectional (CPU to memory only), data bus is bidirectional, and control bus is bidirectional for commands and acknowledgments.

2

Two's complement solves dual zero problem — Two's complement is the standard for signed numbers in modern computers because it produces only one zero representation, unlike one's complement which has both +0 and -0.

3

CLA beats RCA on speed — Ripple Carry Adder becomes too slow for large bit widths — a 32-bit RCA takes 320 nanoseconds due to carry propagation delay. Carry Lookahead Adder solves this by generating all carries in parallel.

4

Booth avoids unnecessary operations — Booth's algorithm multiplies signed binary numbers by checking adjacent bit pairs — when bits differ, it adds or subtracts; when they're the same, it skips, reducing total operations needed.

5

Modular ALU design with multiplexers — ALU consists of three separate units (Arithmetic, Logic, Shift) combined with multiplexers. Control signals S2 and S3 select which unit runs; S0 and S1 pick the operation within that unit.

6

Address bus width determines memory capacity — A 16-bit address bus lets the CPU address 2^16 = 65,536 memory locations. Wider address bus = more addressable memory; the relationship is exponential, not linear.

Want this for every new video Multi Atoms posts? Brevyd summarizes each upload automatically, the morning it drops.

Deep Dive

Computer Organization Fundamentals and System Architecture

Computer Organization refers to the internal working and low-level design of how components connect and execute instructions, while Computer Architecture describes what the system provides to programmers at a higher level. A digital computer has five functional units: Input (accepts data and converts to binary), Memory (stores data and instructions in primary RAM/ROM and secondary storage like SSDs), Output (converts binary results to readable format), CPU (containing the ALU for arithmetic/logic and Control Unit for managing operations), and auxiliary units. All units connect through buses — communication pathways that carry data, addresses, and control signals. The address bus runs unidirectional from CPU to memory only, determining how much memory can be addressed using the formula 2^n locations for n-bit address width. The data bus is bidirectional, moving actual data both directions. The control bus is also bidirectional, with the CPU sending commands while devices send back signals like interrupts. Understanding these distinctions is critical for exam success; this topic appears worth 2-7 marks frequently.

Registers, Bus Architectures, and Data Transfer Mechanisms

Registers are the smallest and fastest storage units located inside the CPU, and data cannot access main memory directly — it must first load into registers before operations proceed. Special-purpose registers include the Accumulator (stores results), Program Counter (holds next instruction address), Instruction Register (current instruction), Stack Pointer (top of stack address), Flag Register (operation status like carry and zero), Memory Address Register (for CPU-memory addresses), and Memory Data Register (for CPU-memory data). Single bus architecture uses one common path for all components, reducing cost but creating bottlenecks. Multiple bus architecture uses separate buses, improving speed at higher cost. To prevent data contention when multiple registers try to send simultaneously, multiplexer-based bus systems select only one register at a time using selection lines following the formula log₂(n) for n registers. Tri-state buffers offer an alternative, using three output states — logic 0, logic 1, and high impedance — where a control signal determines output: when C=1, input passes through; when C=0, the circuit opens into high impedance, disconnecting that register from the bus.

Binary Arithmetic, Number Representations, and Overflow

Binary addition follows straightforward rules: 0+0=0 (carry 0), 0+1=1 (carry 0), 1+1=0 (carry 1). CPUs perform subtraction by converting it to addition using Two's complement representation, avoiding costly borrowing circuits. One's complement inverts all bits but creates two zero representations (+0 and -0), introducing hardware complexity. Two's complement performs one's complement then adds 1, producing only one zero and becoming the standard in modern computers. A practical shortcut: copy rightmost bits through the first 1, then invert remaining leftmost bits. For n-bit Two's complement, the range is -2^(n-1) to 2^(n-1)-1. Overflow occurs when results exceed this range, detected by sign inconsistencies — adding two positive numbers and getting a negative result indicates overflow. For example, in 4-bit representation (-2) + (-2) should equal -4, but overflows to positive 6 because the range is only -8 to +7.

Adder Circuits: Half Adder, Full Adder, and Ripple Carry Adder

Addition is the most fundamental arithmetic operation because subtraction, multiplication, and division can all be performed through addition. A Half Adder adds two bits, producing Sum (A XOR B) and Carry (A AND B). Its limitation: it cannot process carry input from previous stages, making it unsuitable for multi-bit addition. A Full Adder overcomes this by accepting three inputs (A, B, and carry-in) and producing Sum = A XOR B XOR Cin and Carry = (A AND B) OR (A XOR B AND Cin). Two Half Adders can be combined into one Full Adder. A Ripple Carry Adder cascades Full Adders in series for multi-bit numbers — the carry output of one becomes the carry input of the next. Example: adding 0110 (6) and 0011 (3) produces 1001 (9). However, RCA has severe speed limitations due to carry propagation delay. If each Full Adder takes 10 nanoseconds, a 4-bit RCA takes 40 nanoseconds, an 8-bit takes 80 nanoseconds, and a 32-bit takes 320 nanoseconds — using the formula n×t where n is bits and t is time per adder.

Carry Lookahead Adder: Solving Carry Propagation Delay

Carry Lookahead Adder solves RCA's speed problem by generating all carries in parallel rather than sequentially. The two key functions are: Generate (Gi = Ai AND Bi) determines when a carry is definitely produced, and Propagate (Pi = Ai XOR Bi) indicates when an incoming carry will propagate. For a 4-bit CLA, the carry equations are: C1 = P0·C0 + G0; C2 = P1·P0·C0 + P1·G0 + G1; C3 = P2·P1·P0·C0 + P2·P1·G0 + P2·G1 + G2; C4 = P3·P2·P1·P0·C0 + P3·P2·P1·G0 + P3·P2·G1 + P3·G2 + G3. These equations are implemented using AND and OR gates configured as a carry generator block. The comparison: RCA is simpler and cheaper but slow; CLA is complex and expensive but fast. RCA generates carries sequentially (one by one); CLA generates them in advance (all at once). RCA is rarely used in modern CPUs; CLA is standard. CLA's complexity pays for itself in speed on high-performance systems.

Booth's Algorithm and ALU Design

Booth's Algorithm performs multiplication of signed binary numbers using Two's complement representation. It uses four registers: M (multiplicand), Q (multiplier), A (accumulator), and Q-1 (extra bit, initially 0). The decision table based on Q0 and Q-1: if both 0 or both 1, perform no operation; if Q0=0 and Q-1=1, compute A=A+M; if Q0=1 and Q-1=0, compute A=A-M. After each operation, perform arithmetic right shift (copying the MSB to preserve sign) and repeat for a number of iterations equal to the number of bits. Example: -5 × +3 in 4-bit representation (range -8 to +7) yields -15; -15 × -16 in 5-bit representation (range -16 to +15) yields 240. The final product appears in the AQ register. The ALU is the computational core, combining three units: Arithmetic (7 operations: transfer, increment, decrement, addition, addition with carry, subtraction, subtraction with borrow), Logic (AND, OR, XOR, NOT), and Shift (left and right). Control signals S2 and S3 select which unit operates (S2S3=00 for arithmetic, 01 for logic, 10 for right shift, 11 for left shift), while S0 and S1 select the specific operation within that unit. The three units connect through a 4×1 multiplexer that routes the correct unit's output as the final ALU output based on control signals.

Takeaways

  • ✓Master Two's complement representation and the shortcut method (copy bits through first 1, then invert left side) — overflow detection appears frequently on exams.
  • ✓Memorize the decision table for Booth's Algorithm and understand why arithmetic right shift (not logical) is required to preserve sign bit throughout multiplication.
  • ✓Understand the speed trade-off between Ripple Carry Adder (simple, slow) and Carry Lookahead Adder (complex, fast) — exam questions frequently compare these two.
  • ✓Know the three bus types (address unidirectional, data and control bidirectional) and the formulas: 2^n for address capacity, log₂(n) for selection lines, and n×t for RCA delay.

Key moments

2:00Computer Organization vs Architecture Definition

“Computer Organization हमारा होता है low level design। अगर आप internally काम देखना है तो Organization, अगर आपको ऊपर ऊपर से higher level pe design देखनी है तो Computer Architecture।”

8:00Address Bus Capacity Formula

“अगर हमारी जो address bus है वो n bits की है तो CPU address 2 की power n unique location pe कर सकता है।”

20:00Two's Complement Solution

“Two's complement का मतलब सबसे simple है कि सबसे पहले one's complement करो और उसके अंदर एक one को add कर दो। और modern computers में two's complement use होता है।”

40:00Ripple Carry Adder Speed Limitation

“RCA slow होता है क्योंकि carry propagation delay होता है। 4-bit RCA = 40 nanoseconds, 8-bit = 80 nanoseconds, 32-bit = 320 nanoseconds।”

60:00Booth's Algorithm Decision Table

“अगर Q0 = 0 और Q-1 = 0 तो कोई operation perform नहीं करेंगे। अगर Q0 = 0 और Q-1 = 1 तो A = A+M। अगर Q0 = 1 और Q-1 = 0 तो A = A-M।”

You just read one. Brevyd does this for every upload.

Follow Multi Atoms and every new video comes back as a summary like this, in your morning briefing. No watching required.