5. Logic Design Essentials

Question.7

A combinational circuit is described by the truth table below. What is the minimized Boolean expression? 

Need Help? Refer to the Quick Guide below

Logic gate is a combinational circuit that combines binary inputs to produce a binary output. Its output depends on the present input values, changing after the circuit's propagation delay; it does not store a previous state. 

Logic synthesis is the process of converting a required behaviour into a Boolean expression and implementing that expression with the permitted gates.   

Basic design flow: 

Requirement → Truth Table or Conditions → Boolean expression → Simplification → Gate circuit → Verification 

bassic-logic-gates-and,or,xor,nand
basic-logic-gates-nor,xnor,not,buffer

Binary Logic and Basic Gate Behaviour 

1 represents HIGH and 0 represents LOW. A truth table lists the output for every possible input combination. 

Table 1: Two-Input Gate Behaviour

Input A Input B 

AND

OR

NAND

NOR

XOR

XNOR

00001101
01011010
10011010
11110001
   GateOutput is HIGH when...
   ANDEvery input is HIGH
    ORAt least one input is HIGH
   NOTThe input is LOW
  NANDThe AND result is LOW
   NOREvery input is LOW
   XORThe inputs are different
  XNORThe inputs are equal

From a Requirement to a Logic Function 

Before selecting gates, convert the written requirement into clear binary conditions. 

Design method 

1. List every input and output. 

2. Decide what 0 and 1 mean for each signal. 

3. Mark active-HIGH and active-LOW inputs. 

4. Identify the conditions that must make the output HIGH. 

5. Use AND for conditions required together, OR for alternative paths, NOT for an active-LOW condition, and XOR for an exactly-one or difference condition. 

6. Write a truth table or test cases before building the circuit. 

Requirement patternTypical expressionMeaning
All conditions must be trueA·B·COutput is HIGH only when every condition is HIGH
Any condition can activate the outputA+B+COne or more conditions can make the output HIGH
An active-LOW condition must be inactive~LHIGH when the lockout or fault signal is LOW
Enable a requestE·RThe request works only when enabled
Exactly one input is HIGHA⊕BOne input is HIGH, but not both
Add an override pathNormal + OverrideEither path can activate the output

Cascading Gates and Gate Fan-In 

When a required gate has more inputs than the available gate, divide the operation into smaller stages and name the intermediate nodes. 

Example: three-input AND using two-input gates 

  • N1 = A·B 

  • Y = N1·C = A·B·C 

The same method applies to an OR function: 

  • N1 = A+B 

  •  Y = N1+C = A+B+C 

Inversion and Active Levels 

The symbol ~ means NOT or complement: 

Y = ~A 

Therefore, A=0 produces Y=1, and A=1 produces Y=0. 

Signal conditionBoolean formInterpretation
Active-HIGH requestRAsserted when R=1
Active-LOW lockout~LOperation is allowed when L=0
Active-LOW sensor condition~SThe physical condition is represented by S=0
Inverted output~YReverses the output polarity

An inversion can appear as a NOT gate, a bubble on a gate symbol, an active-LOW pin label, or a complemented term in an equation. Include it at the correct point in the signal path.

XOR detects a difference. XNOR detects equality.

  • A⊕B = ~A·B + A·~B
  • XNOR(A,B) = A·B + ~A·~B
  • For two inputs, XOR means exactly one input is HIGH.
  • For three or more inputs, XOR is HIGH when an odd number of inputs are HIGH.

Table 2: XOR and XNOR Operation

ABXORXNORInterpretation
0001Equal
0110Different
1010Different
1101Equal

Reading a Circuit and Writing Its Equation

Read a combinational circuit from the inputs toward the output.

Analysis method

1. Name each intermediate node.

2. Write one equation for every gate.

3. Substitute the intermediate equations into the output equation.

4. Check all inversions and gate polarities.

5. Simplify the expression and verify it with a truth table or a few distinguishing input combinations.

 Table 3: Common Boolean Laws

 

Boolean lawFormTypical use
De Morgan~(A·B) = ~A + ~Bconvert NAND-style logic to OR-style logic
De Morgan~(A+B) = ~A·~Bconvert NOR-style logic to AND-style logic
DistributiveA·B + A·C = A·(B+C)factor a common term
ComplementA+~A=1, A·~A=0remove impossible or always-true conditions
AbsorptionA + A·B = Aremove a redundant path
IdentityA+0=A, A·1=Aremove neutral inputs

 

Generic reduction

·       F = X·Y + X·Z

·       F = X·(Y+Z)

 

The factored expression may use fewer gates or less duplicated logic, but the allowed gate types, fan-in, and propagation delay must still be checked. 

Synthesis with Gate Restrictions

Restricted synthesis means implementing the required function without using one or more convenient gate types.

Design method

1. Write the required Boolean function.

2. List the allowed and prohibited gates.

3. Apply Boolean identities to match the allowed set.

4. Replace each operation with an allowed gate connection.

5. Check the output polarity of every intermediate node.

6. Verify the final truth table, gate count, and gate depth.

NAND and NOR as Universal Gates

NAND and NOR are universal gates because suitable connections can create NOT, AND, OR, and larger combinational functions.

Table 4: Basic Universal-Gate Conversions

Required functionNAND-only formNOR-only form
NOT ~A~(A·A)~(A+A)
AND A·B~(~(A·B)·~(A·B))~(~(A+A)+~(B+B))
OR A+B~(~(A·A)·~(B·B))~(~(A+B)+~(A+B))

Tying both inputs of a NAND or NOR gate to the same signal creates an inverter. The tied-input gate still counts as one physical gate and adds a logic level.

Reusable NAND pattern: sum of two product terms

  • F = P·Q + R·S
  • N1 = ~(P·Q)
  • N2 = ~(R·S)
  • F = ~(N1·N2)

The final NAND performs the required OR through De Morgan's theorem. This pattern can be extended to more product terms by using a suitable NAND tree.

Other Restricted Gate Sets

Boolean identities can convert a target function into a form using the available gates.

Target operationExample identity
AND using OR and XORA·B = (A+B) ⊕ (A⊕B)
OR using AND and XORA+B = (A·B) ⊕ (A⊕B)
Inversion using a tied-input NAND~A = ~(A·A)
Inversion using a tied-input NOR~A = ~(A+A)
Inversion using XOR and HIGH~A = A⊕1

Do not assume that a gate's name describes the polarity of its output. Write the equation of the gate actually used, then simplify it.

Timing, Logic Depth, and Hardware Reuse

Propagation delay is the time between an input change and the corresponding output change. The critical path is the longest input-to-output path.

For equal gate delays:

Critical-path delay = number of gate levels on the longest path · delay per gate

Table 6: Structural Effects on a Combinational Circuit

Circuit featureEffect
Gates in seriesdelays add
Independent parallel branchesonly the longest branch matters before the next common gate
Balanced gate treecan reduce the number of levels
Factored expressionmay reduce duplicated logic and hardware
More gates in paralleldoes not automatically mean a longer critical path

When comparing equivalent implementations, evaluate both resource use and logic depth. Fewer total gates do not always mean a faster circuit if the longest path is deeper.

If multiple outputs use the same complete product term or intermediate expression, generate it once and fan it out where the circuit technology allows. Sharing reduces hardware, but added fan-out can affect delay.

Fault Diagnosis and Equivalence Checking

For a suspected combinational fault, compare the expected behaviour with the observed behaviour at the internal nodes and final output.

Fault-analysis method

1. Write the expected equation or truth-table result.

2. Identify the suspected gate, connection, or internal node.

3. Choose a sensitizing input—an input combination that makes the node's value affect the output rather than masking it.

4. Propagate the correct and faulty values through the remaining gates.

5. Compare the expected and observed output.

Suspected faultUseful test condition
Node stuck at 0choose inputs for which the node should be 1
Node stuck at 1choose inputs for which the node should be 0
Wrong inversiontest both active and inactive input conditions
Wrong gate typetest an input combination where the two candidate gates differ
Missing connectionactivate the missing path while holding unrelated inputs inactive

One input combination with different outputs proves that two implementations are not equivalent. To establish equivalence, compare their truth tables or simplify both expressions to the same form. 

Always check inversion bubbles, active-LOW signals, intermediate nodes, and the conditions required to make a fault observable.

Quick Design Checklist

Before finalising a logic-gate or synthesis circuit, check:

  • Are all inputs and outputs labelled clearly?
  • Do the HIGH/LOW meanings and active levels match the requirement?
  • Does the truth table or behaviour reference match the circuit?
  • Are intermediate equations and inversions written correctly?
  • Does the circuit use only the permitted gate types and fan-in?
  • Are tied-input gates counted as real gates?
  • Is the longest gate-level path acceptable?
  • Can repeated logic be shared safely?
  • Have likely faults been tested with input combinations that expose them?
  • Could unequal delays create a hazard during a signal transition?

Select Answer

Restart quiz!