Output depends only on current inputs; no memory/state/clock.
Half adder Sum expression?
Sum=A⊕B
Half adder Carry expression?
Carry=A⋅B
Why is the half-adder Sum XOR and not OR?
OR wrongly outputs 1 when both inputs are 1; XOR excludes that case (it becomes a carry instead).
Full adder Sum expression?
A⊕B⊕Cin (odd parity of the three bits).
Full adder Carry-out expression?
AB+ACin+BCin=AB+Cin(A⊕B) (majority function).
How many half adders + gates build a full adder?
Two half adders + one OR gate.
2-to-1 MUX output equation?
Y=SˉI0+SI1
What do select lines of a MUX control?
Which data input is routed to the single output (they don't appear in the output value).
What does a 2-to-4 decoder output for input 10?
One-hot 0100 (only D2 high).
General output of a decoder line Dk?
The k-th minterm of the inputs.
How do decoder + OR gates implement any Boolean function?
OR together the minterm outputs corresponding to the function's 1-rows.
Recall Feynman: explain to a 12-year-old
Imagine you're adding two LEGO-coin piles, but each spot can only hold ONE coin. Half adder: put two coins together; if both are there you'd have two, so you keep one as a "carry" to give to the next spot — that carry-keeping is the AND, and the "leftover here" is the XOR. Full adder: same, but now a friend also hands you a coin from the previous spot. Multiplexer: a TV remote that, depending on the channel number you press, lets ONE channel through. Decoder: you say a number out loud, and exactly ONE light bulb labeled with that number turns on.
Dekho, combinational logic ka matlab hai aise circuits jinka output sirf abhi ke inputs par depend karta hai — koi memory nahi, koi clock nahi. Same input daalo, same output milega, har baar. Yahi cheez sequential logic se alag hai jahan flip-flop "yaad" rakhte hain.
Half adder: do single bits ko add karta hai. 1+1=102 hota hai, isliye do output chahiye — Sum aur Carry. Sum tab 1 hota hai jab dono bits alag hon — yeh exactly XOR hai. Carry tab 1 jab dono 1 hon — yeh AND hai. Common galti: log Sum ke liye OR laga dete hain, par OR dono-1 wale case mein galat 1 deta hai, isliye XOR sahi hai.
Full adder mein ek extra input aata hai — Cin (pichli column ka carry). Sum ban jaata hai A⊕B⊕Cin (odd parity), aur carry-out majority function AB+ACin+BCin. Trick: do half adders + ek OR gate se poora full adder ban jaata hai.
MUX ek switch jaisa hai — kayi inputs mein se ek ko select line ke hisaab se output tak bhejta hai. Decoder ulta kaam karta hai — ek binary number ko leke us number wali ek hi line ko ON karta hai (one-hot). Yaad rakho: MUX chunta hai, Decoder jalata hai. Aur sabse bada point — har Boolean function minterms se banta hai, aur decoder + OR se kuch bhi banaya ja sakta hai. Yeh CPU ke ALU aur memory addressing ki foundation hai!