Combinational Logic Design: From Specification to Gates

Combinational Logic Design turns a description of required behaviour into a network of logic gates. You use it when outputs should depend on the present inputs, without remembering earlier events. A successful design satisfies both a functional requirement, describing the required output values, and implementation constraints, such as available gates and allowed delay. The central task is to keep those requirements consistent as you move from words to expressions to connections.

Specify the required behaviour

A combinational network produces a unique settled output for each allowed combination of present input values. Its governing relationship is


y=f(x),\mathbf{y}=\mathbf{f}(\mathbf{x}),


where x\mathbf{x} represents the inputs and y\mathbf{y} represents the outputs. Physical gates take time to respond, so this relationship describes settled behaviour after propagation delays have elapsed.


Begin by naming each input and output. State what logic 1 and logic 0 mean. Under an active-high convention, a signal is asserted when its value is 1; an active-low signal is asserted when its value is 0. Writing these meanings prevents a correct-looking expression from implementing the opposite behaviour.


For example, a work lamp has enable input EE, occupancy input AA, and manual-request input BB. All signals are active high. The lamp should turn on when enabled and either request is present, including when both requests are present.


Input case

Required lamp output LL

Reason

E=0E=0, any A,BA,B

0

Enable overrides both requests.

E=1E=1, A=B=0A=B=0

0

Neither request is present.

E=1E=1, at least one of A,BA,B is 1

1

An enabled request turns on the lamp.


Specify every input combination that can occur, including startup cases if relevant. An omitted case is an unresolved requirement, rather than automatic permission to choose either output.



Translate the specification into gates

Use ++ for OR, adjacency for AND, and an overbar for NOT. These are Boolean operations, rather than ordinary arithmetic. The lamp specification becomes


L=E(A+B).L=E(A+B).


The parentheses identify the request condition. First form A+BA+B with an OR gate, then combine that result with EE using an AND gate.


Inputs A and B enter an OR block whose output enters an AND block together with enable input E.


Read the connected network back into an expression to check the wiring. Here, the final AND gate requires both an enable and a request. Moving BB directly to a final OR gate would allow the manual request to bypass the enable.


For several outputs, derive each required function. An intermediate signal may feed more than one gate, allowing you to share logic. Sharing can reduce gate count, but its loading can also change delay. Count gates using the stated library: one three-input operation may require multiple gates when only two-input gates are available.

Verify function and timing

Check the implementation against the specification for every allowed input combination. With three unrestricted binary inputs, there are 23=82^3=8 combinations. Include cases where requests overlap and where an overriding condition is asserted. Agreement on a few typical cases does not establish agreement everywhere.


Next, check timing. The critical path is the input-to-output path with the largest accumulated delay under the stated timing model. With simultaneous input arrival, a conservative network propagation-delay bound is


tbound=max⁡input-output paths(∑gates on the pathtpd),t_{\text{bound}}=\max_{\text{input-output paths}}\left(\sum_{\text{gates on the path}}t_{pd}\right),


where tpdt_{pd} is each gate's propagation-delay bound. Gates on parallel branches are not all added together. If inputs arrive at different times, propagate arrival bounds through each gate by taking its latest input arrival and adding its delay.



Use delay values valid for the specified loading, and include wire delay when the problem requires it. Passing a steady-state functional check alone does not establish when an output becomes valid.


What to remember

  • Define signal meanings and every relevant input case.
  • Translate conditions into expressions, then check the gate connections.
  • Verify all allowed input combinations.
  • Evaluate gate count and timing for the actual implementation.

Example: Design a Cabinet Exhaust Controller

An equipment cabinet has three active-high inputs:

  • M=1M=1: an operator requests exhaust.
  • H=1H=1: the temperature sensor requests exhaust.
  • D=1D=1: the cabinet door is open.

The exhaust output FF must be 1 when either request is present, including both together, but only while the door is closed. It must be 0 in every other case. The output depends only on the current inputs.


Use two-input AND and OR gates and single-input NOT gates. At the actual loading, their propagation-delay bounds are 3.0 ns3.0\ \text{ns} for AND, 4.0 ns4.0\ \text{ns} for OR, and 2.0 ns2.0\ \text{ns} for NOT. Neglect wire delay.


a) Write the complete input-output specification, listing all input combinations, and derive a Boolean expression for FF.


First identify the two conditions for exhaust. A request is present when M+H=1M+H=1. The door is closed when D‾=1\overline{D}=1. Both conditions are required:


F=(M+H)D‾.F=(M+H)\overline{D}.


The complete specification has 23=82^3=8 input combinations. Using input order (M,H,D)(M,H,D), the outputs are:

  • (0,0,0)(0,0,0) gives F=0F=0.
  • (0,0,1)(0,0,1) gives F=0F=0.
  • (0,1,0)(0,1,0) gives F=1F=1.
  • (0,1,1)(0,1,1) gives F=0F=0.
  • (1,0,0)(1,0,0) gives F=1F=1.
  • (1,0,1)(1,0,1) gives F=0F=0.
  • (1,1,0)(1,1,0) gives F=1F=1.
  • (1,1,1)(1,1,1) gives F=0F=0.

Every combination with D=1D=1 produces 0, confirming that the door-open condition overrides either request. There are three input combinations that produce F=1F=1.


b) Implement the expression using the available gates and state the gate count.


Build the network in three steps:

  1. Use an OR gate to form request signal R=M+HR=M+H.
  2. Use a NOT gate to form closed-door signal C=D‾C=\overline{D}.
  3. Use an AND gate to form F=RCF=RC.


Manual and temperature requests enter an OR block, while the door signal enters a NOT block, and both results enter an AND block.


Reading the connections back gives


F=RC=(M+H)D‾,F=RC=(M+H)\overline{D},


which matches the required expression. The network uses


N=1 OR+1 NOT+1 AND=3 gates.N=1\ \text{OR}+1\ \text{NOT}+1\ \text{AND}=3\ \text{gates}.


The OR and NOT branches operate in parallel; neither feeds the other.


c) All inputs become valid at t=0t=0 and remain stable. Find a conservative output-settling bound, and decide whether the design meets an 8.0 ns8.0\ \text{ns} limit.


Calculate the accumulated gate-delay bound along each input-to-output path. The manual and temperature inputs each pass through the ________ gate and then the ________ gate:


tM→F=tH→F=4.0+3.0=7.0 ns.t_{M\rightarrow F}=t_{H\rightarrow F}=4.0+3.0=7.0\ \text{ns}.


The door input passes through the ________ gate and then the AND gate:


tD→F=2.0+3.0=5.0 ns.t_{D\rightarrow F}=2.0+3.0=5.0\ \text{ns}.


The network bound is the largest path sum:


tbound=max⁡(7.0,7.0,5.0)=7.0 ns.t_{\text{bound}}=\max(7.0,7.0,5.0)=7.0\ \text{ns}.


Do not add all three gates together: no signal path passes through all three. Since 7.0 ns≤8.0 ns7.0\ \text{ns}\leq8.0\ \text{ns}, the implementation meets the stated limit. Its timing margin under the supplied model is


8.0−7.0=1.0 ns.8.0-7.0=1.0\ \text{ns}.

A coolant pump has three active-high inputs: enable EE, automatic demand DD, and manual request MM. Its output PP must be 1 exactly when the pump is enabled and at least one request is present. Both requests may be present together.


Which expression implements this specification? Use ++ for OR and adjacency for AND.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A parts sorter has binary inputs AA, BB and CC. Its output FF must equal 1 exactly for the input patterns (A,B,C)=(0,1,0)(A,B,C)=(0,1,0) and (1,0,1)(1,0,1), and must equal 0 otherwise.


Complete the gate types for an implementation that detects each accepted pattern separately and then combines the results. Write NOT, AND or OR in each blank.


Obtain each complemented input needed to detect a required 0 using a gate. Combine the three matching input signals for each accepted pattern using a three-input gate. Combine the two pattern-detection signals using a two-input gate.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A sorting machine uses binary sensor inputs XX and YY to produce routing output RR. The specification gives the following requirements:


XX

YY

Required RR

0

0

0

0

1

1

1

0

1

1

1

Unspecified


The sensors are mutually exclusive during normal sorting, but X=Y=1X=Y=1 can occur during startup. The startup routing output matters to the machine's operation, and no other requirement defines it.


What should the designer do before selecting a final gate network?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice