Aircraft Digital Electronics & Computer SystemsSelf-study AE2.021 · USTH
Tiếng Việt
🎨

← Home

MODULE 02

Logic Gates & Boolean Algebra

Tooley ch.5 (p.70-94) · Floyd ch.3-4 (p.125-260), ch.7 (bistables, p.387+)

📚 Chapter mapping: 9 lectures ↔ textbook chapters

Tooley: Ch.5 Logic circuits (p.70-94): gates, Boolean algebra, combinational logic, tri-state, monostable/bistable, logic families

Floyd: Ch.3 Logic Gates (p.125-190) + Ch.4 Boolean Algebra and Logic Simplification (p.191-260); the bistable part is cross-referenced with Ch.7 Latches, Flip-Flops, and Timers (p.387-448)

Tooley bundles gates + Boolean algebra + bistables into one chapter; Floyd splits this into three more detailed chapters.

Chapter mapping →

MODULE 02 · Logic Circuits

Logic Gates & Boolean Algebra

Every digital system on an aircraft, from a landing-gear-door warning to APU start control, is built from basic logic gates combined according to Boolean algebra rules. This module moves from single gates to real combinational circuits and the logic families used on aircraft.

Tooley ch.5 (p.70-94) · Floyd ch.3-4 (p.125-260), ch.7 (bistables, p.387+)

PART 1/5
01

From basic gates to a real problem

  • AND, OR, NOT, NAND, NOR, XOR: truth tables and symbols
  • Opening example: landing gear door unlocked warning
PART 1/5 · 02

What is a logic gate?

A logic gate is a circuit with one or more binary inputs (0 or 1) and ONE binary output, determined by a fixed Boolean function of its inputs. It is the smallest building block of every digital system.

📖 Explained for complete beginners

Picture a logic gate as a smart switch: it looks at one or more 0/1 signals coming in, then, following a fixed rule wired into the circuit that never changes, produces exactly one 0 or 1 output.

Everything complex a computer does, from addition to comparison to deciding whether to light a warning on an aircraft, is built by wiring together very large numbers of these simple gates. Mastering the 6 basic gates in this module is a prerequisite before any more complex digital circuit makes sense.

PART 1/5 · 02

AND and OR gates

ABANDOR
0000
0101
1001
1111

AND outputs 1 only when ALL inputs are 1. OR outputs 1 when AT LEAST ONE input is 1.

AND and OR gates
Click the image to enlarge
📖 Explained for complete beginners

AND and OR are the two most basic gates, and the ones most often confused. A reliable way to remember them: think of AND like a chain that needs every single link solid to hold weight, one weak link (a 0) and the whole chain fails (result 0). OR is the opposite, like a building with several exit doors: just one open door (a 1) lets people escape, not every door needs to be open.

Looking at the truth table: AND has exactly one row giving 1 (when both A and B are 1), while OR has three rows giving 1 (only one row gives 0, when both A and B are 0). This is the fastest way to tell the two apart from a truth table alone, without recalling the wording of the definition.

PART 1/5 · 02

The NOT gate (inverter)

NOT gate
Y = A′

NOT has a single input and inverts it: a 0 input gives a 1 output, a 1 input gives a 0 output.

The NOT gate (inverter)
Click the image to enlarge
📖 Explained for complete beginners

NOT is the simplest gate because it has only one input, so it needs just 2 rows instead of the 4-row truth table other 2-input gates require. The prime symbol (A′, read "A prime" or "not A") and the bar drawn over a letter both mean exactly the same thing: invert the value.

A visual way to remember it: NOT behaves like a mirror that reflects back the exact opposite of what it receives, with no further "thinking" involved, simply flipping 0 to 1 and 1 to 0.

PART 1/5 · 02

NAND and NOR gates

ABNANDNOR
0011
0110
1010
1100

NAND = NOT(AND), NOR = NOT(OR): each gate simply inverts the entire result column of its underlying AND/OR gate.

NAND and NOR gates
Click the image to enlarge
📖 Explained for complete beginners

NAND and NOR are "derived" gates: take the exact result of AND or OR and invert the whole output column. The fastest way to remember them without building a new truth table from scratch: take the AND table you already know and flip every result (0 becomes 1, 1 becomes 0) to get the NAND table; do the same to OR to get NOR.

This is exactly what the names "NOT-AND" (shortened to NAND) and "NOT-OR" (shortened to NOR) already tell you: no need to memorise two separate new truth tables, just remember the rule "take AND/OR, then invert".

PART 1/5 · 02

XOR and XNOR gates

ABXORXNOR
0001
0110
1010
1101

XOR outputs 1 when the two inputs DIFFER; XNOR (the inverse of XOR) outputs 1 when they are the SAME: often used to compare bits.

XOR and XNOR gates
Click the image to enlarge
📖 Explained for complete beginners

XOR (Exclusive-OR) is the gate most likely to cause confusion, since its name sounds close to OR but its meaning differs sharply. Ordinary OR accepts the case where BOTH inputs are 1, but XOR does not: XOR outputs 1 only when the two inputs are DIFFERENT (one is 0, the other is 1), and outputs 0 when they are the SAME (both 0 or both 1).

XOR's most important practical use is bit comparison: if you want to know whether two signals "agree" with each other, XOR immediately flags 1 whenever they disagree. XNOR is XOR's inverse, so its logic runs the other way: it outputs 1 when the two inputs match.

PART 1/5 · 02

Worked example: A·B + C

Evaluate Y = A·B + C with A=1, B=0, C=1:

  • Step 1: A·B = 1·0 = 0
  • Step 2: Y = 0 + C = 0 + 1 = 1

Result: Y = 1. Always evaluate AND first (like multiplication), then OR (like addition): the same operator precedence as ordinary arithmetic.

📖 Explained for complete beginners

This is the first exercise applying the rule for evaluating a Boolean expression with more than one operator: exactly as in ordinary arithmetic, AND (multiplication) is always computed BEFORE OR (addition) when there are no parentheses, the same "multiply first, add second" rule learned in primary school.

With A=1, B=0, C=1, you must compute A·B first (giving 0), then add C (0+1=1). Getting the order wrong (adding B+C before multiplying by A) gives a completely different answer. Always ask "which part has an AND" and compute that first whenever an expression mixes AND and OR.

PART 1/5 · 02

Worked example: (A+B)·C

Evaluate Y = (A+B)·C with A=0, B=1, C=0:

  • Step 1: A+B = 0+1 = 1
  • Step 2: Y = 1·C = 1·0 = 0

Result: Y = 0. The parentheses force the OR inside to be evaluated first, even though AND usually has 'higher precedence'.

📖 Explained for complete beginners

Parentheses in Boolean algebra play exactly the same role as in ordinary arithmetic: they FORCE the enclosed part to be computed first, regardless of whether it contains AND or OR, and regardless of the usual "AND before OR" rule.

With (A+B)·C, even though OR is normally computed after AND, the OR here sits inside parentheses, so A+B must be computed first (giving 1), then multiplied by C (1·0=0). This is a very easy mistake: forgetting the parentheses and mechanically applying "AND first" leads to a completely wrong order of operations.

PART 1/5 · 02

Summary table of the 6 basic gates

GateSymbolOutputs 1 when
ANDA·Bevery input = 1
ORA+Bat least one input = 1
NAND(A·B)′at least one input = 0
NOR(A+B)′every input = 0
XORA⊕Ban ODD number of inputs are 1
XNOR(A⊕B)′an EVEN number of inputs are 1
Summary table of the 6 basic gates
Click the image to enlarge
📖 Explained for complete beginners

This summary table is the single most useful quick-reference tool in Part 1: instead of memorising a 4-row truth table for each of the 6 gates, you only need one short sentence describing when each gate outputs 1.

A quick way to classify them: AND and NAND are about "all" inputs, OR and NOR are about "at least one" input, and XOR and XNOR are about whether the COUNT of 1-inputs is odd or even. These form three pairs, each pair being one original gate and its inverse (NAND is AND inverted, NOR is OR inverted, XNOR is XOR inverted).

PART 1/5 · 02

⚠️ Trap: confusing AND with OR when reading word problems

Everyday English can be loose about 'and'/'or'. E.g. 'the lamp lights when switch A AND switch B are both closed' is an AND (needs BOTH). But 'the lamp lights when switch A OR switch B is closed' is an OR. Always check for 'both/all' (AND) versus 'either/at least one' (OR) before drawing the circuit.

📖 Explained for complete beginners

Natural language (in both Vietnamese and English) often uses "and"/"or" loosely, not as strictly as Boolean logic does, which makes this a very common source of error when turning a real-world problem into a logic expression.

The most reliable keywords to look for: if the problem says "both", "all", "every", that signals AND; if it says "either", "at least one", "any", that signals OR. Always underline these exact keywords in the problem statement before drawing a circuit, rather than relying on a quick skim.

PART 1/5 · 02

Quick self-check

Not graded: answer before moving on:

  • Which gate outputs 1 only when BOTH inputs are 0?
  • If A=1, B=1, C=0, what is A·B + C·A?

Hint: NOR; A·B+C·A = 1·1+0·1 = 1+0 = 1.

📖 Explained for complete beginners

This practice exercise applies both skills just learned: recognising a gate from its truth-table description (question 1) and evaluating a multi-operator expression in the correct order (question 2).

For question 2: A·B+C·A with A=1, B=1, C=0 requires computing each AND first: A·B=1·1=1, C·A=0·1=0, then adding the two results: 1+0=1. If you got anything other than 1, you likely added before multiplying; review the operator-priority slide above.

PART 2/5
02

Boolean algebra

  • Basic laws (commutative, associative, distributive, absorption)
  • De Morgan's theorem
  • Step-by-step logic expression simplification
PART 2/5 · 02

The 12 basic laws of Boolean algebra

#Law
1A + 0 = A
2A + 1 = 1
3A · 0 = 0
4A · 1 = A
5A + A = A
6A + A′ = 1
7A · A = A
8A · A′ = 0
9A″ = A
10A + AB = A
11A + A′B = A + B
12(A+B)(A+C) = A+BC
The 12 basic laws of Boolean algebra
Click the image to enlarge
📖 Explained for complete beginners

These 12 laws are not 12 disconnected formulas to memorise by rote: each one is simply an obvious fact once you substitute 0 or 1 for A and work it out by hand. Take A+1=1: an OR gate with one input permanently tied to 1 will ALWAYS output 1 no matter what the other input is, exactly like "a room with one door that's always open always has an exit".

Use the following slides to understand the MEANING behind each group of laws (commutative, associative, distributive, De Morgan) rather than trying to cram the whole table from this slide alone.

PART 2/5 · 02

Commutative and associative laws

Commutative & associative
A+B = B+A  ·  (A+B)+C = A+(B+C)

Exactly like ordinary arithmetic: the order of addition/multiplication doesn't matter, and grouping within a chain of all-AND (or all-OR) terms doesn't matter either.

📖 Explained for complete beginners

These two laws simply state that for a pure AND or pure OR gate (not mixing AND and OR), the order the variables are written in, or how parentheses are grouped, does not change the result, exactly as in arithmetic (2+3=3+2, and (2+3)+4=2+(3+4)).

One caveat: these two laws ONLY apply when every term uses the SAME operation (all AND, or all OR). Once AND and OR are mixed in one expression, the distributive law on the next slide is needed; commutative/associative cannot be applied naively there.

PART 2/5 · 02

The distributive law

Distributive
A·(B+C) = A·B + A·C

This is the key step for converting an expression from product-of-sums (POS) to sum-of-products (SOP) form: the standard form used when designing AND-OR circuits.

📖 Explained for complete beginners

The distributive law is the most important bridge connecting mixed AND/OR expressions, playing exactly the role multiplication plays over addition in arithmetic (2×(3+4)=2×3+2×4).

Its practical meaning: this law lets you "expand" a product-of-sums expression (POS, e.g. A·(B+C)) into a sum-of-products form (SOP, e.g. A·B+A·C). SOP is the standard form most commonly used when designing a two-level AND-OR circuit, covered in detail in Part 3.

PART 2/5 · 02

Worked simplification: A + AB

Simplify Y = A + AB using rule 10 (A + AB = A):

  • Apply rule 10 directly → Y = A

Check with a truth table: when A=0, AB=0 so Y=0=A; when A=1, Y=1+B=1=A. Matches in every case: confirms rule 10 is correct.

📖 Explained for complete beginners

Rule 10 (A+AB=A) can seem hard to believe at first: why does adding an entire extra term AB leave the final result unchanged? The answer comes from checking each case: when A=0, the term AB is always 0 (anything times 0 is 0), so Y=0+0=0=A; when A=1, the second term no longer matters because Y=1+B is always 1 (OR with 1 always gives 1), and A also equals 1, so Y=1=A.

The bigger lesson here matters more than the result itself: always verify a simplification rule by testing EACH value of the variable, rather than just trusting the formula blindly.

PART 2/5 · 02

Worked simplification: AB + AB′

Simplify Y = AB + AB′:

  • Step 1: factor out A → Y = A(B + B′)
  • Step 2: apply rule 6 (B+B′=1) → Y = A·1
  • Step 3: apply rule 4 (A·1=A) → Y = A
📖 Explained for complete beginners

This is a complete 3-step simplification, each step applying exactly ONE law already learned, with no shortcuts skipped. Step 1 factors out the common term (exactly like factoring in ordinary algebra: AB+AB′=A(B+B′)). Step 2 applies law 6 (B+B′=1: a variable ORed with its own inverse ALWAYS gives 1, since either B=1 or B′=1, never both 0 at once). Step 3 applies law 4 (A·1=A, multiplying by 1 leaves the value unchanged).

Laying out each step this clearly is exactly the skill to practise: for longer simplifications, always note WHICH numbered law is used at each step, so mistakes are easy to trace back.

PART 2/5 · 02

Multi-step simplification: AB + A′C + BC

Simplify Y = AB + A′C + BC (the consensus theorem):

  • The term BC is redundant once AB and A′C are present
  • Simplified result: Y = AB + A′C

A classic example showing simplification sometimes requires spotting one entirely redundant term (the 'consensus' term), not just applying basic laws step by step.

📖 Explained for complete beginners

This is the hardest example in Part 2, because simplifying away the BC term does not come from mechanically applying any single one of the 12 basic laws, it requires RECOGNISING that BC is a "redundant term" once AB and A′C are already present.

The intuition: if AB=1 then B must be 1; if A′C=1 then A′ must be 1 (meaning A=0). Consider every case where B and C are both 1: either A=1 (in which case AB=1, so BC being present or not makes no difference since Y is already 1), or A=0 (in which case A′C=1, which alone already makes Y=1). So BC can never be the term that "saves" a case that AB and A′C haven't already saved, so dropping it changes nothing.

PART 2/5 · 02

De Morgan's theorem

De Morgan
(A·B)′ = A′ + B′    (A+B)′ = A′·B′
  • Meaningthe complement of a product equals the sum of complements; the complement of a sum equals the product of complements
De Morgan's theorem
Click the image to enlarge
📖 Explained for complete beginners

De Morgan's theorem is arguably the single most important theorem in all of Boolean algebra, because it shows how to "break open" a NOT that spans an entire AND or OR cluster, an operation that comes up constantly when simplifying circuits.

A visual way to remember it without memorising the formula: when inverting an expression inside parentheses, do two things AT ONCE: swap the operation inside (AND becomes OR, or OR becomes AND), and invert EACH variable individually inside the parentheses. Remembering "swap the operation + invert each variable" is enough to apply De Morgan correctly without needing the symbolic formula.

PART 2/5 · 02

Applying De Morgan: simplifying (A′B′)′

Simplify Y = (A′B′)′:

  • Apply De Morgan: (A′B′)′ = (A′)′ + (B′)′ = A + B

Result: Y = A + B: a NAND gate with both inputs inverted is equivalent to a plain OR gate, illustrating why NAND is called a universal gate.

📖 Explained for complete beginners

This is one of the most surprising results De Morgan's theorem produces: a NAND gate (two inputs already inverted before being combined) turns out to be EXACTLY equivalent to an ordinary OR gate. This is exactly why the NAND gate is called a "universal gate": using only NAND gates, one can rebuild AND, OR, and NOT.

In semiconductor manufacturing this is not just a formula trick: a chip maker can mass-produce JUST one type of NAND gate, then wire them together in different combinations to create every other type of gate, greatly simplifying and cutting the cost of production.

PART 2/5 · 02

Truth table and 2-variable Karnaugh map

For Y = A′B + AB′ + AB (1 in three of the four possible combinations):

A\B01
001
111

Grouping the two adjacent cells in the bottom row gives A, and the right column gives B → simplifies to Y = A + B.

📖 Explained for complete beginners

The 2-variable Karnaugh map (K-map) is a tool that turns a truth table into a visual grid, letting the eye SEE adjacent groups of 1s directly instead of working through algebra step by step.

In the given table, the bottom row (A=1) is all 1s: grouping these two cells gives exactly the variable A (independent of B). The right column (B=1) is also all 1s: grouping this gives exactly the variable B. Seeing these two overlapping groups directly on the grid is much faster than working through Boolean algebra step by step, especially once the number of variables grows to 3 or 4.

PART 2/5 · 02

⚠️ Trap: misapplying De Morgan with 3+ variables

A common mistake is inverting only the outermost operator while forgetting to invert EACH inner variable. (ABC)′ is NOT A′B′C: the correct answer is (ABC)′ = A′+B′+C′ (apply De Morgan repeatedly, pair by pair).

📖 Explained for complete beginners

This is an extremely common mistake when applying De Morgan to 3 or more variables: many people only flip the outermost operation and forget to invert EACH variable inside. (ABC)′ is absolutely NOT equal to A′B′C (only inverting the first variable); all three variables must be inverted AND the operation changed: (ABC)′=A′+B′+C′.

A way to check without memorising the formula: apply De Morgan repeatedly, one pair at a time, like peeling layers off an onion. (ABC)′=((AB)C)′, apply De Morgan to the outer parentheses first: =(AB)′+C′, then apply it again to (AB)′: =(A′+B′)+C′=A′+B′+C′. Working in small steps like this never misses a variable.

PART 3/5
03

Combinational logic circuits

  • From truth table to circuit diagram
  • Example: APU starter control circuit
PART 3/5 · 02

What is combinational logic?

A combinational circuit is one whose output at any instant depends ONLY on the current input values, not on any past history/state: unlike sequential circuits which retain state (covered in the bistable section).

📖 Explained for complete beginners

The definition of "combinational circuit" sounds abstract, but there is a very concrete test: if you set the same input values on a combinational circuit, the output will ALWAYS be identical every single time, no matter what the circuit "went through" before. A simple AND gate is the clearest example: A=1, B=1 always gives 1, regardless of what the inputs were a second earlier.

By contrast, sequential circuits (met in Part 4 with flip-flops) have "memory": the same input values can produce two different outputs depending on the circuit's previous state. Telling these two apart is the foundation for understanding everything else in this module.

PART 3/5 · 02

From a real problem to a truth table

Problem: the Landing Gear Door Warning lamp should light when AT LEAST ONE of the two doors (left/right) is unlocked AND the aircraft is in flight (not on the ground).

Let L = left door unlocked, R = right door unlocked, F = in-flight. We need: Warning = (L+R)·F.

📖 Explained for complete beginners

This is the most important step in the entire digital design process: translating a plain-language description into clearly named logic variables and a precise Boolean expression. This step is often rushed through, yet it is exactly where a problem is most easily misread.

For the landing gear door problem: the phrase "at least one door not locked" translates to an OR (L+R), while "AND currently flying" translates to an AND with variable F. Combined in the right order: Warning=(L+R)·F, not L+R·F (missing parentheses would completely change the meaning, since by the usual AND-before-OR priority, R·F would be computed first, breaking the intended logic).

PART 3/5 · 02

Truth table for the landing gear door warning

LRFWarning=(L+R)·F
0010
1011
0111
1100

The last row shows: even with both doors unlocked (L=R=1), if the aircraft is on the ground (F=0) there is NO warning: correctly ANDed with F.

📖 Explained for complete beginners

This truth table only lists the combinations with real practical significance (here F is treated as the decisive variable, so both its values are shown, though a full 3-variable table would have 8 rows; this shortened table picks 4 key illustrative rows).

The most notable row is the last one: L=1, R=1 (both doors unlocked, the most dangerous case looking only at the doors), yet F=0 (aircraft on the ground) still gives Warning=0, NO warning. This is exactly the point of ANDing with F: no matter how bad the door condition, an aircraft on the ground does not need to alert the pilot mid takeoff or landing.

PART 3/5 · 02

From truth table to gate diagram

The circuit for Warning = (L+R)·F needs:

  • One 2-input OR gate (L, R) → produces 'at least one door open'
  • One 2-input AND gate (the OR's output, and F) → produces the final warning signal
From truth table to gate diagram
Click the image to enlarge
📖 Explained for complete beginners

Drawing a gate diagram from a Boolean expression is almost a direct "reverse translation": each operation in the expression corresponds to exactly one physical gate. Warning=(L+R)·F has two operations (one OR, one AND), so the diagram needs exactly two gates.

The drawing order always goes from the INSIDE of the parentheses outward: the OR gate (taking L, R) must be drawn and evaluated first, its output then feeding into one of the two inputs of the AND gate (the other input being F). Drawing it in the wrong order (feeding L, R, F all into a single 3-input AND gate) would compute an entirely wrong meaning for the OR.

PART 3/5 · 02

Example 2: APU starter control (simplified)

Per Tooley: the APU (auxiliary power unit) starter control circuit ANDs together several safety signals (e.g. no fire warning, engine speed within a safe range) before allowing the start relay to close: a real-world example of an AND with multiple inputs, not just the two-variable case above.

📖 Explained for complete beginners

The APU (Auxiliary Power Unit, an engine that supplies power/air when the main engines are not running) start example shows that multi-input AND is far from rare in practice: aviation safety often requires MANY conditions to be simultaneously true before an important action is permitted.

The design principle here is "fail-safe": if just ONE safety condition is not met (for example a fire warning is present), the whole AND chain immediately outputs 0, blocking the starter relay from closing. This is why multi-input AND (not just 2-variable AND) appears so frequently in an aircraft's safety-protection systems.

PART 3/5 · 02

Designing a 3-variable circuit from a truth table (SOP)

Given a truth table where Y=1 for (A,B,C) = (0,1,1) or (1,0,1), write the sum-of-products (SOP) form by ORing the minterm for each row where Y=1:

Y = A′BC + AB′C

Simplify further by factoring out C: Y = C(A′B + AB′) = C(A⊕B).

📖 Explained for complete beginners

SOP (Sum of Products) is a MECHANICAL procedure for writing a Boolean expression directly from a truth table, with no guesswork: for every row where Y=1, write exactly one "minterm" (an AND cluster of every variable, written plain if it is 1 in that row, inverted if it is 0), then OR all these minterms together.

For (A,B,C)=(0,1,1) giving Y=1: A=0 so write A′, B=1 so write B, C=1 so write C, ANDed together gives A′BC. Doing the same for row (1,0,1) gives AB′C. ORing the two minterms: Y=A′BC+AB′C. Only afterward is algebraic simplification applied (here factoring out C and recognising A′B+AB′=A⊕B).

PART 3/5 · 02

The two-level AND-OR circuit

Any general SOP combinational circuit can always be drawn as two levels: LEVEL 1 is a set of AND gates (one per product term), LEVEL 2 is a SINGLE OR gate combining all level-1 outputs: the standard structure used when programming PLDs/PALs.

📖 Explained for complete beginners

The "two-level AND-OR" architecture rests on a very powerful mathematical fact: ANY Boolean function, however complex, can always be written in SOP form, and therefore can always be drawn with exactly 2 layers of gates (an AND layer, then an OR layer), with no need for deeper nested layers.

This is precisely why PLD/PAL chips (Programmable Logic Devices) are built with a fixed "one AND array feeding one OR array" structure: the programmer only needs to configure the right connections, without worrying whether "enough gate layers" exist for any given logic function.

PART 3/5 · 02

SOP versus POS

SOP (sum-of-products)POS (product-of-sums)
FormY = AB + A′CY = (A+C)(A′+B)
Derived fromrows where Y=1 (minterms)rows where Y=0 (maxterms), then inverted
Circuit structureAND then OROR then AND
📖 Explained for complete beginners

SOP and POS are two EQUIVALENT ways of writing the same Boolean function, differing only in their starting point: SOP starts from the rows WHERE Y=1 (minterms), while POS starts from the rows WHERE Y=0 (maxterms), then applies De Morgan to flip it back.

In practice, choosing SOP or POS usually depends on which form gives a SHORTER expression after simplification: if a truth table has FEWER rows with Y=1 than with Y=0, SOP is usually shorter (fewer minterms to OR together); otherwise POS may be shorter.

PART 3/5 · 02

⚠️ Trap: forgetting to re-check the full truth table after simplifying

After algebraically simplifying an expression, ALWAYS rebuild the truth table of the simplified expression and compare it against the original for EVERY combination: checking only 1-2 rows can hide an error in a less common branch.

📖 Explained for complete beginners

This is an extremely important quality-check habit that is very often skipped when doing exercises: after simplifying an expression through several algebraic steps, it is VERY EASY to slip up at some intermediate step without noticing right away.

The surest way to check: rebuild the ENTIRE truth table of the simplified expression (every possible variable combination, not just 1 or 2 random rows), and compare it against the ORIGINAL truth table. If they match at EVERY row, the simplification is certainly correct; checking only 1 or 2 rows "for form's sake" can easily miss a simplification error hiding in a rarely-hit branch.

PART 3/5 · 02

Quick self-check

Not graded: write the SOP expression for a circuit where Y=1 when (A,B)=(0,1) or (1,1). Hint: Y = A′B + AB, which simplifies via the absorption law to Y = B.

📖 Explained for complete beginners

This practice exercise applies the exact SOP procedure just learned: with Y=1 when (A,B)=(0,1) or (1,1), write the two corresponding minterms (A′B for the first row, AB for the second) and OR them: Y=A′B+AB.

The next simplification step applies rule 11 (A+A′B=A+B, with roles slightly rearranged: here it's B+A′B=B+A written differently, or more directly, factor out B: Y=B(A′+A)=B·1=B using laws 6 and 4). The result B is MUCH simpler than the raw SOP expression, showing clearly the value of the algebraic simplification step after writing a raw SOP.

PART 4/5
04

Tri-state logic, monostables & bistables

  • Tri-state logic for bus sharing
  • Monostable (one-shot) and bistable (flip-flop) devices
PART 4/5 · 02

What is tri-state logic?

Tri-state logic adds a third state beyond 0 and 1: high impedance (High-Z), where the output 'disconnects' from the circuit as if not connected at all. This lets MULTIPLE devices share a SINGLE bus line without signal conflicts.

📖 Explained for complete beginners

Tri-state logic sounds like it contradicts the "only 2 voltage levels" principle learned in Module 01, but it does not: High-Z is not a third VOLTAGE LEVEL, it is a state where the output completely "lets go", neither pushing current out nor pulling current in, exactly like a light switch left halfway, connected to nothing.

The core benefit: without High-Z, every device wired onto a shared bus would always "try" to force its own voltage onto the line, causing conflicts when multiple devices share it. High-Z lets a device go completely "silent", yielding the bus to another device.

PART 4/5 · 02

The Enable pin on a tri-state buffer

EnableInputOutput
0X (any)High-Z (disconnected)
100
111

Only when Enable=1 does the buffer pass the input through; Enable=0 always gives High-Z regardless of the input.

📖 Explained for complete beginners

The Enable pin acts like a "master switch" deciding whether the buffer is allowed to speak at all, entirely separate from whatever the Input value happens to be. The truth table shows this clearly: whether Input is 0 or 1, as long as Enable=0, the Output is ALWAYS High-Z, the Input is "locked out" and never passed through.

Only when Enable=1 does the buffer "open the gate" and let Input pass straight through to Output unchanged. This is the mechanism that lets multiple devices share one bus: at any moment exactly one device has Enable=1, while every other device keeps Enable=0 to stay silent at High-Z.

PART 4/5 · 02

Why buses need tri-state

If two devices are wired directly (without tri-state) to one line and one drives logic 1 while the other drives logic 0 at the same time, an electrical conflict (bus contention) results: potentially damaging components. Tri-state solves this by allowing only ONE device to 'talk' on the bus at a time, with all others in High-Z.

📖 Explained for complete beginners

Imagine two people shouting two different words into the same microphone at the exact same time: the recorded sound turns into an unintelligible mess. On an electrical bus, if two devices simultaneously try to force logic 1 and logic 0 onto the same wire, an abnormally large current can flow (bus contention), generating heat and risking permanent damage to components.

The tri-state solution works like a "politeness rule": at any given moment, ONLY one device is allowed to "speak" (Enable=1, driving a clear 0 or 1), and every other device must stay completely "silent" (High-Z), never simultaneously forcing its own signal onto the bus.

PART 4/5 · 02

What is a monostable (one-shot)?

A monostable circuit has only ONE stable state. On receiving a trigger pulse, it switches to a second state for a fixed duration (set by an RC time constant), then AUTOMATICALLY returns to its original stable state.

📖 Explained for complete beginners

The term "one-shot" describes a monostable circuit's behaviour very precisely: it reacts EXACTLY ONCE per trigger pulse, producing an output pulse of a FIXED width (independent of how long the trigger pulse itself lasted), then automatically returns to its resting state with no outside intervention needed.

The key point to remember: the width of the output pulse is set by the external R and C components (the RC time constant), NOT by whether the trigger pulse was long or short. This is exactly why monostables are used to "standardise" a signal's width.

PART 4/5 · 02

Applications of monostables

Monostables are commonly used to generate a pulse of FIXED width from a trigger pulse of arbitrary width (e.g. cleaning up/shaping a noisy signal from a mechanical switch: debouncing), or to create a short time delay between two events in a control sequence.

📖 Explained for complete beginners

The "debounce" application is the classic textbook use of a monostable: when a mechanical switch is flipped, the metal contacts inside actually bounce back and forth rapidly for a few milliseconds before settling, producing a burst of noisy pulses instead of one clean transition edge.

A monostable circuit "filters" this noise by reacting only to the FIRST trigger pulse, then producing one clean output pulse wide enough to "cover" the remaining bounce time, so the digital circuit downstream sees exactly ONE transition event instead of dozens of false pulses.

PART 4/5 · 02

What is a bistable (flip-flop)?

A bistable circuit has TWO stable states and can hold either one indefinitely until a control signal forces a change: this is the flip-flop, the basic 1-bit memory element underlying every sequential circuit (registers, counters, memory).

📖 Explained for complete beginners

The term "bistable" tells you exactly what it is: a circuit with TWO equally stable states, and once it settles into one of them, it STAYS THERE FOREVER (it does not automatically return anywhere, unlike a monostable) until an external control signal actively tells it to switch to the other state.

This is the most basic "memory" mechanism in digital electronics: one bit of data (0 or 1) is stored by having a bistable circuit hold one of its two stable states, until a new write command overwrites it. Every register, counter, and static RAM (SRAM) cell is built on this exact principle.

PART 4/5 · 02

A simple R-S (Reset-Set) flip-flop

SRNext Q
00unchanged
101 (set)
010 (reset)
11invalid

Can be built from two cross-coupled NOR gates or two cross-coupled NAND gates: exactly the dual R-S bistable example built with a 4001 (CMOS NOR) IC mentioned in Tooley's textbook.

📖 Explained for complete beginners

The R-S flip-flop truth table reads exactly as its name suggests: S (Set) forces the output Q to 1, R (Reset) forces Q to 0. The most interesting row is the first one (S=0, R=0): the output Q "holds" its previous value, which is exactly what "memory" looks like, the output is not fully determined by the CURRENT inputs alone, but also by history.

The last row (S=1, R=1) is marked "invalid" because this asks the circuit to set and reset AT THE SAME TIME, a contradictory command that a cross-coupled NOR/NAND circuit cannot resolve consistently: the actual result depends on the fine timing details of each gate and cannot be reliably predicted, so this input combination must always be AVOIDED in a design.

PART 4/5 · 02

Monostable vs bistable comparison

MonostableBistable
Stable states12
After triggeringreturns automaticallyholds until forced to change
Main functionpulse/time-delay generationstoring 1 bit of data
📖 Explained for complete beginners

This comparison table condenses the core difference between the two bistable and monostable circuit types into one single sentence: a monostable AUTOMATICALLY returns after a fixed time (used to CREATE a pulse or a delay), while a bistable STAYS PUT forever until actively changed (used to STORE data).

Remembering this one distinguishing sentence will keep you from ever confusing the two in a real problem: if a problem asks to "create a pulse of fixed length" or "delay a signal by some time", that is a monostable problem; if it asks to "remember a state" or "remember whether a button was pressed", that is a bistable problem.

PART 4/5 · 02

⚠️ Trap: confusing High-Z with logic 0

High-Z is NOT a low voltage level (logic 0): it is a fully 'floating' output state with no current being driven. Measuring it with a voltmeter can give unstable/noisy readings because the output isn't being driven by any source.

📖 Explained for complete beginners

This is one of the most common real-world measurement traps when working with tri-state circuits: beginners often assume High-Z simply means "logic 0" or "low voltage", but High-Z is actually a state where the output is NOT DRIVEN by any source at all, with no current flowing out of that output.

The practical consequence: measuring the voltage at a pin currently in High-Z with a multimeter can give erratic, wildly fluctuating readings, picked up from nearby signals (since the meter's own input has finite impedance), quite unlike measuring a pin genuinely at logic 0 (which stays stable near 0V). Do not rush to conclude "the circuit is broken" just because a High-Z pin reads unstable.

PART 4/5 · 02

Quick self-check

Not graded: on a bus shared by 4 devices, how many devices should be in a state OTHER than High-Z at any one time? Hint: exactly 1 (the bus-sharing principle).

📖 Explained for complete beginners

The core principle of sharing a bus with tri-state fits in one sentence: at any given moment, no matter how many devices are wired onto the bus, ONLY ONE device is ever permitted to have Enable=1 (actually driving a 0 or 1 onto the bus), and every other device must sit at High-Z.

With 4 devices sharing one bus, the answer is always 1, regardless of how many devices are on the bus: this is exactly the bus-contention protection principle learned at the start of this part, applying to ANY number of devices sharing a bus, not just the case of 4.

PART 5/5
05

Logic families

  • TTL and its variants (LS, S…)
  • CMOS: low power, high noise margin
  • Choosing the right logic family for an application
PART 5/5 · 02

Why are there several different logic families?

Each logic family has different electrical characteristics: supply voltage, switching speed, power consumption, noise immunity: so choosing the right family for the right application (high speed, low power, high-noise environment...) is an important design decision.

📖 Explained for complete beginners

A "logic family" is a group of chips built using the same underlying semiconductor technology (for example, all built from bipolar transistors, or all from MOSFETs), which makes them share the same electrical characteristics: the supply voltage they need, how fast they switch between 0 and 1, how much power they consume, and how well they resist noise.

No single logic family is "best" in every situation: a fast family usually consumes more power, and a power-saving family usually runs slower. Choosing the right family for the right application (say, a battery-powered circuit versus one that must process signals extremely fast) is a genuine engineering decision, not a minor footnote.

PART 5/5 · 02

The TTL family (Transistor-Transistor Logic)

Standard TTL supply
V_CC = 5V ± 5%

TTL uses bipolar (BJT) transistors, offering fast switching but higher static current draw than CMOS: suitable for high-speed applications where power is less of a concern.

📖 Explained for complete beginners

TTL (Transistor-Transistor Logic) is an early logic technology built from bipolar transistors (BJTs, the classic transistor type controlled by current, unlike the voltage-controlled MOSFETs found in CMOS).

The key fact to remember: TTL needs a fairly precise supply voltage, only 5V, allowed to vary very little (±5%, i.e. between 4.75V and 5.25V), far less flexible than CMOS. In exchange, bipolar transistors switch quickly, which is why TTL was once a popular choice for high-speed applications during its heyday.

PART 5/5 · 02

TTL variants

VariantCharacteristic
Standard TTLbaseline, fan-out 10, noise margin ~400mV
LS-TTL (Low-power Schottky)lower power, still fairly fast
S-TTL (Schottky)faster than standard, higher power
📖 Explained for complete beginners

The three TTL variants in the table illustrate a very typical engineering trade-off: speed and power consumption usually move TOGETHER, wanting more speed usually costs more power.

LS-TTL (Low-power Schottky) is an improved version using Schottky diodes to significantly cut power consumption compared with standard TTL, while still keeping reasonably good speed: this is why LS-TTL became the most widely used TTL variant in practice, striking a good balance between speed and power compared with the other two options.

PART 5/5 · 02

The CMOS family (Complementary MOS)

CMOS uses complementary MOSFET pairs (one N-channel + one P-channel), drawing virtually NO static current in a steady state (power is drawn mainly while switching) : the reason CMOS dominates modern battery-powered/portable devices.

📖 Explained for complete beginners

CMOS (Complementary MOS) is arguably the single most important technological leap in the history of digital chips, using a COMPLEMENTARY PAIR of MOSFETs (one N-channel, one P-channel) inside every gate.

The key fact that gives CMOS its edge: at any stable moment (not actively switching), exactly one of these two transistors is ALWAYS fully OFF, meaning almost no current flows continuously. CMOS only draws meaningful power during the brief moment of SWITCHING from 0 to 1 or back: this is exactly why CMOS completely dominates modern battery-powered devices, from phones to smartwatches.

PART 5/5 · 02

CMOS advantage: high noise margin

Because CMOS outputs swing almost the entire supply range for its two logic levels (rail-to-rail), its noise margin is typically MUCH LARGER than TTL's: better immunity in harsh electromagnetic environments such as an engine bay/avionics compartment.

📖 Explained for complete beginners

"Noise margin" is the safety gap between a signal's actual voltage and the threshold at which the circuit would misread the logic level: the larger the margin, the more electrical noise a signal can tolerate without being misread.

CMOS typically uses almost the entire supply voltage range for its two logic levels (called "rail-to-rail": the low level sits near 0V and the high level sits near the supply voltage), while TTL uses a narrower slice of that range. As a result, CMOS usually has a significantly larger noise margin than TTL, explaining why CMOS is preferred in harsh electromagnetic environments such as an engine bay or an avionics bay, where interference from other systems is always present.

PART 5/5 · 02

TTL vs CMOS comparison table

TTLCMOS
Transistor technologybipolar (BJT)complementary MOSFET
Supply5V ±5%3V-15V (depending on series)
Static powerhighervery low
Noise margin~400mVlarger (rail-to-rail)
Best suited forhigh speed, power less criticalportable/battery-powered devices
📖 Explained for complete beginners

This comparison table gathers everything learned separately across the previous 4 slides into a single overview, useful for a quick lookup when deciding which logic family suits a given application.

Remember two "decision keywords" when reading this table: if SPEED is the top priority and power consumption matters less, lean toward TTL; if the top priority is SAVING POWER (battery operation) or good NOISE IMMUNITY, lean firmly toward CMOS.

PART 5/5 · 02

Example: choosing a logic family for portable test equipment

Problem (Tooley Ch.5 Q6): which logic family suits a battery-powered, portable piece of test equipment? Since the key requirement is low power consumption to extend battery life, CMOS is the most appropriate choice among CMOS/TTL/LS-TTL.

📖 Explained for complete beginners

Choosing a logic family for portable test equipment is a direct application of the comparison table just learned to a real situation: the key word in the problem is "battery-powered", which immediately signals that the top priority must be SAVING POWER to extend time between charges.

Among the three choices CMOS/TTL/LS-TTL, CMOS has the lowest static power consumption (drawing almost nothing when not switching), making it the most sensible choice. This is exactly the reasoning skill to practise: read the problem, identify the SINGLE MOST IMPORTANT criterion being emphasised, then look up the matching row in the comparison table rather than trying to recall every technical detail.

PART 5/5 · 02

Fan-out and fan-in revisited by family

Standard TTL fan-out is 10 (drives up to 10 same-family TTL inputs). CMOS typically has a much higher DC fan-out (due to its extremely high input impedance), but is limited in practice by speed (each added load slows switching time due to parasitic capacitance).

📖 Explained for complete beginners

Fan-out (the maximum number of loads a gate can drive) and fan-in (the number of inputs a gate can accept) were introduced back in basic logic gate theory, and are now revisited from the angle of differences between logic families.

An interesting point: TTL has a fairly low fixed fan-out (10) because it is limited by the CURRENT each load requires. CMOS in theory has a much larger DC fan-out (since CMOS inputs have extremely high impedance and draw almost no current), but in practice is still limited by SPEED: each added load contributes a little parasitic capacitance, gradually slowing switching time, so the practical load limit still exists even though it is not caused by current.

PART 5/5 · 02

⚠️ Trap: mixing TTL and CMOS incorrectly

TTL's 'logic 1' voltage level (~2.4V or above) may NOT be high enough for standard-power CMOS (threshold ~70% of Vdd, e.g. 3.5V at Vdd=5V) to reliably recognise as high: use a TTL-compatible CMOS variant (74HCT instead of 74HC) when interfacing the two families.

📖 Explained for complete beginners

This is a very real trap when two systems using different logic families need to "talk" to each other: the voltage TTL considers "logic 1" (often as low as about 2.4V) might NOT be HIGH ENOUGH for a standard-power CMOS chip (which uses a higher logic-1 threshold, around 70% of supply voltage, e.g. 3.5V on a 5V supply) to correctly recognise it as high.

The consequence of getting this wrong: a CMOS chip might misread a TTL "1" as a "0", causing a hard-to-find logic error. The standard industry fix: use a CMOS variant marked with a "T" (for example 74HCT instead of 74HC), specifically designed with a threshold backward-compatible with TTL voltage levels.

PART 5/5 · 02

Quick self-check

Not graded: a cockpit system needs logic circuits that resist strong electromagnetic interference and draw low power: which family should be preferred? Hint: CMOS (high noise margin plus low static power).

📖 Explained for complete beginners

This practice exercise ties together the two most important criteria learned across all of Part 5: NOISE IMMUNITY (noise margin) and POWER CONSUMPTION (static power), both of which are CMOS's standout strengths over TTL.

A cockpit system needing both properties at once (withstanding strong electromagnetic interference from nearby equipment, AND consuming little power to reduce the load on the aircraft's electrical system): CMOS is the right choice on both criteria, with no trade-off needed as there would be against TTL.

PART 2-3 · Formula

De Morgan's theorem

De Morgan's theorem
(A·B)′ = A′ + B′ (A+B)′ = A′·B′
  • A, Blogic input variables (0 or 1)
  • ′NOT / inversion
  • · +AND, OR operators
📜 history

📜 Theoretical & historical background

Boolean algebra was published by George Boole in 1854 in An Investigation of the Laws of Thought, originally a pure formalisation of propositional logic with no link to electronics. It only became a precise tool for analysing and designing relay switching circuits after Claude Shannon's 1937 MIT master's thesis: laying the direct foundation for all modern digital circuit design, including aircraft logic systems.

🔎 case

🔎 Real case study: landing gear door warning circuit

A simple aircraft warning circuit must light a warning lamp when AT LEAST ONE landing gear door is not fully locked AND the aircraft is in flight mode (not on ground). This is a classic example from Tooley's textbook: warning output = OR of the gear-door switches, ANDed with the 'in-flight' signal: a direct illustration of combining AND/OR to encode a real safety condition.

⚠️ warn

⚠️ Common trap

Confusing NAND/NOR with 'the everyday negation of AND/OR' by guessing the truth table intuitively instead of computing it step by step: the safest approach is always to write out the full AND/OR truth table first, then invert the result bit by bit, never skip straight to the answer.

📜 Theoretical & historical background

Boolean algebra was published by George Boole in 1854 in An Investigation of the Laws of Thought, originally a pure formalisation of propositional logic with no link to electronics. It only became a precise tool for analysing and designing relay switching circuits after Claude Shannon's 1937 MIT master's thesis: laying the direct foundation for all modern digital circuit design, including aircraft logic systems.

🔎 Real case study: landing gear door warning circuit

A simple aircraft warning circuit must light a warning lamp when AT LEAST ONE landing gear door is not fully locked AND the aircraft is in flight mode (not on ground). This is a classic example from Tooley's textbook: warning output = OR of the gear-door switches, ANDed with the 'in-flight' signal: a direct illustration of combining AND/OR to encode a real safety condition.

⚠️ Common trap

Confusing NAND/NOR with 'the everyday negation of AND/OR' by guessing the truth table intuitively instead of computing it step by step: the safest approach is always to write out the full AND/OR truth table first, then invert the result bit by bit, never skip straight to the answer.

📓 Companion Python notebook

Companion notebook: auto-generates the truth table for any Boolean expression, simplifies it with sympy, and cross-checks the result against the manual simplification steps: plus a section that auto-solves most of Floyd Chapter 4's Problems (Boolean laws, De Morgan, SOP/POS, Karnaugh maps, Quine-McCluskey) using sympy.logic.

📓 View/download notebook (.ipynb) →

✅ Self-check quiz

Book 1: Mike Tooley, Aircraft Digital Electronic and Computer Systems (end-of-chapter MCQs, independently recomputed to verify each answer)

Book 2: Thomas Floyd, Digital Fundamentals (True/False Quiz + Self-Test, cross-checked against the book’s own printed answer key)

Additional practice questions (AI-authored in the same style, answers self-verified by computation)

✍️ Free-response questions (source: Floyd, Digital Fundamentals)

Thomas L. Floyd, Digital Fundamentals, 11th ed., Chapter 3 – Logic Gates and Chapter 4 – Boolean Algebra and Logic Simplification, Problems (Ch.3 p.179-186, Ch.4 p.252-253); answers in the Answers to Odd-Numbered Problems appendix (p.A-2, A-3, A-3 to A-4).

Chapter 3 has 55 problems; only the ODD-numbered ones have printed answers. Added here: waveform and symbol problems (1 to 27), programmable-array/VHDL/parameter problems (29 to 37), faulty-gate and design problems (39 to 51), each with the question figure and the real answer image. Chapter 4 (72 problems): included are 1, 5, 7, 9, 13, 19 to 23, 31 to 41, 45 to 53 and 61, with the original question image (book overlines preserved) and the real answer image. Not included: 3, 11, 15, 17, 25 to 29, 43, 55 to 59, because problems 3 and 15 have printed answers that do NOT match the question (3 asks about 3 variables A, B, C but the answer is ABCD; 15 asks for AB+(AB)′, ABCD, A+BC, ABC+D but the answer figure draws entirely different circuits), problem 11 has multi-level overlines that cannot be read reliably, and 17, 25 to 29, 43, 55 to 59 depend on reading circuits or earlier problems that could not be independently verified. For Chapter 3, not included: problem 41 (reading IC pin diagrams on a board, could not be independently verified), problem 49 (depends on problem 48 and Figure 3–25), problems 53 and 55 (need Multisim files not in the book). Even-numbered problems have no printed answer and are omitted.

1. The input waveform shown in Figure 3–76 is applied to a system of two inverters connected in series. Draw the output waveform across each inverter in proper relation to the input.

Floyd Ch.3 · Problem 1 figure

Two inverters in a row return the original waveform: the final output equals the input.

Floyd Ch.3 · Problem 1

👁️ Show the book's original answer
Floyd Ch.3 · Problem 1

3. If the waveform in Figure 3–76 is applied to point A in Figure 3–77, determine the waveforms at points B through F.

Floyd Ch.3 · Problem 3 figureFloyd Ch.3 · Problem 3 figure

Check: B = A′, C = A, D = A′, E = A, F = A′ (C passes through two inverters, F is taken from C through one inverter).

Floyd Ch.3 · Problem 3

👁️ Show the book's original answer
Floyd Ch.3 · Problem 3

5. Determine the output, X, for a 2-input AND gate with the input waveforms shown in Figure 3–78. Show the proper relationship of output to inputs with a timing diagram.

Floyd Ch.3 · Problem 5 figure

Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 5

👁️ Show the book's original answer
Floyd Ch.3 · Problem 5

7. The input waveforms applied to a 3-input AND gate are as indicated in Figure 3–80. Show the output waveform in proper relation to the inputs with a timing diagram.

Floyd Ch.3 · Problem 7 figure

Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 7

👁️ Show the book's original answer
Floyd Ch.3 · Problem 7

9. Draw the rectangular outline symbol for a 3-input OR gate.

Floyd Ch.3 · Problem 9

👁️ Show the book's original answer
Floyd Ch.3 · Problem 9

11. Determine the output for a 2-input OR gate when the input waveforms are as in Figure 3–79 and draw a timing diagram.

Floyd Ch.3 · Problem 11 figure

Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 11

👁️ Show the book's original answer
Floyd Ch.3 · Problem 11

13. Repeat Problem 8 for a 4-input OR gate.
Problem 8: The input waveforms applied to a 4-input AND gate are as indicated in Figure 3–81. The output of the AND gate is fed to an inverter. Draw the net output waveform of this system.

Floyd Ch.3 · Problem 13 figure

Because "repeat Problem 8" includes the inverter at the output, the printed answer is a NOR (OR followed by inversion): the output is HIGH only when all four inputs are LOW. This was verified across all intervals. Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 13

👁️ Show the book's original answer
Floyd Ch.3 · Problem 13

15. Draw the rectangular outline symbol for a 4-input OR gate.

Floyd Ch.3 · Problem 15

👁️ Show the book's original answer
Floyd Ch.3 · Problem 15

17. For the set of input waveforms in Figure 3–83, determine the output for the gate shown and draw the timing diagram.

Floyd Ch.3 · Problem 17 figure

Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 17

👁️ Show the book's original answer
Floyd Ch.3 · Problem 17

19. Determine the output waveform in Figure 3–85.

Floyd Ch.3 · Problem 19 figure

Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 19

👁️ Show the book's original answer
Floyd Ch.3 · Problem 19

21. Repeat Problem 17 for a 2-input NOR gate.
Problem 17: For the set of input waveforms in Figure 3–83, determine the output for the gate shown and draw the timing diagram.

Floyd Ch.3 · Problem 21 figure

Use only the input waveforms of the figure; ignore the gate symbol drawn in it, since the problem asks for a different gate. Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 21

👁️ Show the book's original answer
Floyd Ch.3 · Problem 21

23. Repeat Problem 19 for a 4-input NOR gate.
Problem 19: Determine the output waveform in Figure 3–85.

Floyd Ch.3 · Problem 23 figure

Use only the input waveforms of the figure; ignore the gate symbol drawn in it, since the problem asks for a different gate. Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 23

👁️ Show the book's original answer
Floyd Ch.3 · Problem 23

25. How does an exclusive-OR gate differ from an OR gate in its logical operation?

Floyd Ch.3 · Problem 25

👁️ Show the book's original answer
Floyd Ch.3 · Problem 25

27. Repeat Problem 17 for an exclusive-NOR gate.
Problem 17: For the set of input waveforms in Figure 3–83, determine the output for the gate shown and draw the timing diagram.

Floyd Ch.3 · Problem 27 figure

Use only the input waveforms of the figure; ignore the gate symbol drawn in it, since the problem asks for a different gate. Printed answer verified: logic levels in every time interval were read directly from the pixels of the question and answer figures, the output was recomputed with the matching gate, and all intervals agree; the inputs in the answer figure match the question figure.

Floyd Ch.3 · Problem 27

👁️ Show the book's original answer
Floyd Ch.3 · Problem 27

29. In the simple programmed AND array with programmable links in Figure 3–89, determine the Boolean output expressions.

Floyd Ch.3 · Problem 29 figure

Self-check: reading every intact link in the figure, gate X1 receives A′ and B, gate X2 receives A′ and B′, gate X3 receives A and B′, matching the printed answer.

Floyd Ch.3 · Problem 29

👁️ Show the book's original answer
Floyd Ch.3 · Problem 29

31. Describe a 4-input AND gate using VHDL.

Note on errors in the printed answer: the entity name "4InputAND" starts with a digit, so it is NOT a legal VHDL identifier (identifiers must start with a letter), and the end entity line reads "4Input AND" with a space. The logic X <= A and B and C and D is correct.

Floyd Ch.3 · Problem 31

👁️ Show the book's original answer
Floyd Ch.3 · Problem 31

33. In the comparison of certain logic devices, it is noted that the power dissipation for one particular type increases as the frequency increases. Is the device bipolar or CMOS?

Reason: CMOS dynamic power grows with frequency (each transition charges/discharges capacitance), while bipolar logic draws nearly constant power regardless of frequency.

Floyd Ch.3 · Problem 33

👁️ Show the book's original answer
Floyd Ch.3 · Problem 33

35. Determine tPLH and tPHL from the oscilloscope display in Figure 3–91. The readings indicate volts/div and sec/div for each channel.

Floyd Ch.3 · Problem 35 figure

Own measurement on the image: at the 50% level, tPLH ≈ 4.1 ns and tPHL ≈ 11.1 ns (5 ns/div). Close to the printed 4.3 ns and 10.5 ns; the small difference comes from how the 50% point is estimated on screen. The order of magnitude and the relation tPHL > tPLH both agree.

Floyd Ch.3 · Problem 35

👁️ Show the book's original answer
Floyd Ch.3 · Problem 35

37. If a logic gate operates on a dc supply voltage of +5 V and draws an average current of 4 mA, what is its power dissipation?

Own calculation: P = V × I = 5 V × 4 mA = 20 mW, matching the printed answer.

Floyd Ch.3 · Problem 37

👁️ Show the book's original answer
Floyd Ch.3 · Problem 37

39. Examine the conditions indicated in Figure 3–92, and identify the faulty gates.

Floyd Ch.3 · Problem 39 figure

Gate-by-gate check: (a) NAND(1,1)=0 correct; (b) AND(1,1,0) must be 0 but shows 1, FAULTY; (c) an OR gate with inverted inputs turns 0,0 into 1,1, so the output must be 1 but shows 0, FAULTY; (d) NOR(0,0,0,1)=0 correct; (e) XOR(1,0) must be 1 but shows 0, FAULTY; (f) XOR(1,1)=0 correct. (b), (c), (e) match the printed answer.

Floyd Ch.3 · Problem 39

👁️ Show the book's original answer
Floyd Ch.3 · Problem 39

43. Every time the ignition switch is turned on in the circuit of Figure 3–17, the alarm comes on for thirty seconds, even when the seat belt is buckled. What is the most probable cause of this malfunction?

Floyd Ch.3 · Problem 43 figure

Reasoning: alarm = A·B·C. With the belt buckled B must be LOW and the alarm cannot sound; if it still sounds while the timer (C) is HIGH, the AND gate's B input must always be read as HIGH, i.e. that input wire is open (an open TTL input floats HIGH). Matches the printed answer.

Floyd Ch.3 · Problem 43

👁️ Show the book's original answer
Floyd Ch.3 · Problem 43

45. Modify the frequency counter in Figure 3–16 to operate with an enable pulse that is active-LOW rather than HIGH during the 1 ms interval.

Floyd Ch.3 · Problem 45 figure

Reasoning: the AND gate only passes pulses while its enable pin is HIGH; with an active-LOW enable it must be inverted before reaching the AND gate, as in the printed answer.

Floyd Ch.3 · Problem 45

👁️ Show the book's original answer
Floyd Ch.3 · Problem 45

47. Design a circuit to fit in the beige block of Figure 3–96 that will cause the headlights of an automobile to be turned off automatically 15 s after the ignition switch is turned off, if the light switch is left on. Assume that a LOW is required to turn the lights off.

Floyd Ch.3 · Problem 47 figure

Logic check of the printed answer: invert the ignition switch and AND it with the light switch; the output goes HIGH only when the ignition is OFF and the lights are ON, after which the timer counts 15 s and outputs a LOW to turn the lights off.

Floyd Ch.3 · Problem 47

👁️ Show the book's original answer
Floyd Ch.3 · Problem 47

51. In a certain automated manufacturing process, electrical components are automatically inserted in a PCB. Before the insertion tool is activated, the PCB must be properly positioned, and the component to be inserted must be in the chamber. Each of these prerequisite conditions is indicated by a HIGH voltage. The insertion tool requires a LOW voltage to activate it. Design a circuit to implement this process.

Check: the requirement "both conditions HIGH gives a LOW output" is exactly a NAND gate, as in the printed answer.

Floyd Ch.3 · Problem 51

👁️ Show the book's original answer
Floyd Ch.3 · Problem 51

1. Using Boolean notation, write an expression that is a 0 only when all of its variables (A, B, C, and D) are 0s.

Floyd Ch.4 · Problem 1

👁️ Show the book's original answer
Floyd Ch.4 · Problem 1

5. Find the values of the variables that make each product term 1 and each sum term 0.
(a) ABC   (b) A + B + C   (c) ABC   (d) A + B + C
(e) A + B + C   (f) A + B + C

Floyd Ch.4 · Problem 5

👁️ Show the book's original answer
Floyd Ch.4 · Problem 5

7. Identify the law of Boolean algebra upon which each of the following equalities is based:
(a) A + AB + ABC + ABCD = ABCD + ABC + AB + A
(b) A + AB + ABC + ABCD = DCBA + CBA + BA + A
(c) AB(CD + CD + EF + EF) = ABCD + ABCD + ABEF + ABEF

Floyd Ch.4 · Problem 7

👁️ Show the book's original answer
Floyd Ch.4 · Problem 7

9. Apply DeMorgan's theorems to each expression:
(a) A + B   (b) AB   (c) A + B + C   (d) ABC
(e) A(B + C)   (f) AB + CD   (g) AB + CD   (h) (A + B)(C + D)

Floyd Ch.4 · Problem 9

👁️ Show the book's original answer
Floyd Ch.4 · Problem 9

13. Write the Boolean expression for each of the logic circuits in Figure 4–57.

Floyd Ch.4 · Problem 13 figure

Self-check by reading each circuit: (a) 4-input AND, X = ABCD; (b) AND(A,B) then OR with C, X = AB + C; (c) invert A, AND with B, then invert the output, X = (A′·B)′ = A + B′; (d) OR(A,B) then AND with C, X = (A + B)C. Matches the printed answer.

Floyd Ch.4 · Problem 13

👁️ Show the book's original answer
Floyd Ch.4 · Problem 13

19. Using Boolean algebra techniques, simplify the following expressions as much as possible:
(a) A(A + B)   (b) A(A + AB)   (c) BC + BC
(d) A(A + AB)   (e) ABC + ABC + ABC

Floyd Ch.4 · Problem 19

👁️ Show the book's original answer
Floyd Ch.4 · Problem 19

21. Using Boolean algebra, simplify the following expressions. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 21 figure

Verified with sympy: (a), (c), (d), (e) match the printed answer. Item (b) does NOT: read at 1200 dpi, the problem is B′C′D + (B+C+D)′ + B′C′D′E, where the long bar spans the whole sum (B+C+D) with no extra bar on D; this simplifies exactly to B′C′, while the printed answer is B′C′D + B′C′E. A likely printing error in the book (the printed answer only fits if D inside the sum were complemented, which the scan does not show).

Floyd Ch.4 · Problem 21

👁️ Show the book's original answer
Floyd Ch.4 · Problem 21

23. Convert the following expressions to sum-of-product (SOP) forms. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 23 figure

Verified with sympy (ocr/floyd/scripts/verify_ch4.py): the expression in the problem and the printed result are logically equivalent.

Floyd Ch.4 · Problem 23

👁️ Show the book's original answer
Floyd Ch.4 · Problem 23

31. Develop a truth table for each of the following standard SOP expressions. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 31 figure

Self-check: (a) is 1 exactly on rows 001, 110, 111; (b) is 1 on 000, 010, 011, 101, 110; matches Tables P–3 and P–4 in the printed answer.

Floyd Ch.4 · Problem 31

👁️ Show the book's original answer
Floyd Ch.4 · Problem 31

33. Develop a truth table for each of the SOP expressions. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 33 figure

Self-check: (a) is 1 on 000, 010, 011, 101, 110; (b) is 0 only on 0100, 0111, 1100 (1 elsewhere); matches Tables P–5 and P–6.

Floyd Ch.4 · Problem 33

👁️ Show the book's original answer
Floyd Ch.4 · Problem 33

35. Develop a truth table for each of the standard POS expressions. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 35 figure

Self-check for (a): 1 on 011, 100, 101, 110, 111, matching Table P–7. Item (b) has a 16-row table, compared row by row by eye against Table P–8 in the answer image.

Floyd Ch.4 · Problem 35

👁️ Show the book's original answer
Floyd Ch.4 · Problem 35

37. Draw a 3-variable Karnaugh map and label each cell according to its binary value.

Rows AB run 00, 01, 11, 10 (Gray order), columns C run 0, 1; each cell is labelled with its ABC value.

Floyd Ch.4 · Problem 37

👁️ Show the book's original answer
Floyd Ch.4 · Problem 37

39. Write the standard product term for each cell in a 3-variable Karnaugh map.

For example cell 000 is A′B′C′ and cell 101 is AB′C; each cell is a minterm with the 0-valued variables complemented.

Floyd Ch.4 · Problem 39

👁️ Show the book's original answer
Floyd Ch.4 · Problem 39

41. Use a Karnaugh map to simplify each expression to a minimum SOP form. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 41 figure

Check: (a) the four minterms 000, 101, 011, 110 have no adjacent pair, so nothing simplifies; (b) AC[B′ + B(B + C′)] = AC; (c) = DF′ + E′F′. All match the printed answer.

Floyd Ch.4 · Problem 41

👁️ Show the book's original answer
Floyd Ch.4 · Problem 41

45. Reduce the function specified in truth Table 4–16 to its minimum SOP form by using a Karnaugh map.

Floyd Ch.4 · Problem 45 figure

Table 4–16 has X = 0 only on rows 010 and 110 (B = 1, C = 0), so X = B′ + C. Computed with sympy, matches the printed answer.

Floyd Ch.4 · Problem 45

👁️ Show the book's original answer
Floyd Ch.4 · Problem 45

47. Solve Problem 46 for a situation in which the last six binary combinations are not allowed.
Problem 46: Use the Karnaugh map method to implement the minimum SOP expression for the logic function specified in truth Table 4–17.

Floyd Ch.4 · Problem 47 figure

Computed with sympy with 1010 to 1111 as don't-cares: minimum SOP = A′B′C′D + BC + AD′ + CD′, matching the printed answer.

Floyd Ch.4 · Problem 47

👁️ Show the book's original answer
Floyd Ch.4 · Problem 47

49. Use a Karnaugh map to simplify each expression to minimum POS form. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 49 figure

Self-check: (a) the three maxterms have no adjacent pair so nothing reduces; (b) sympy gives (W+X)(W+Z′)(X+Y′)(Y′+Z′), logically equivalent to the printed answer (W+X)(W+Z′)(X+Y′)(W′+X′+Y′+Z′) (both are POS forms of the same function).

Floyd Ch.4 · Problem 49

👁️ Show the book's original answer
Floyd Ch.4 · Problem 49

51. Determine the minimum POS expression for the function in Table 4–17.

Floyd Ch.4 · Problem 51 figure

Computed with sympy (POSform over the rows where X = 0): the result has exactly the same 5 sum factors as the printed answer.

Floyd Ch.4 · Problem 51

👁️ Show the book's original answer
Floyd Ch.4 · Problem 51

53. List the minterms in the expression. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 53 figure

Own calculation: the terms are 111, 001, 110, 101, 011, so the minterms are 1, 3, 5, 6, 7, matching the printed answer.

Floyd Ch.4 · Problem 53

👁️ Show the book's original answer
Floyd Ch.4 · Problem 53

61. Write a program in VHDL for the expression. The original problem (with overlines exactly as in the book) is shown in the image below.

Floyd Ch.4 · Problem 61 figure

The logic Y <= (A and not B and C) or ... matches the problem's expression. Note a small error in the printed answer: the output port is declared as X (X: out bit) but the assignment uses Y, so the printed program would not compile as written.

Floyd Ch.4 · Problem 61

👁️ Show the book's original answer
Floyd Ch.4 · Problem 61