Professional Documents
Culture Documents
Design
Step 1: Consider the statements of the problem.
Step 2:Define the inputs and outputs:
o The inputs are considered the variables.
o The outputs are considered functions
Step 3: Draw the block diagram of the circuit
Step 4: Write the Truth Table to express the relationship between the
inputs and outputs so that the requirements of the problem are met.
SCSE
Design
The Truth Table consists of 2n binary combinations for n inputs. The
outputs’ binary values are defined based on the statements of
problem.
+ If the inputs’ binary combinations are valid: The output will be
“0” or “1”.
+ If the inputs’ binary combinations are not mentioned (or do not
happen): The output is considered “don’t care” case.
SCSE
Design
Step 5: Define the Boolean functions simplified for the output
functions . The output’s Boolean functions are defined from the
Truth Table by algebraic methods or K-map.
Step 6: Draw the logic diagrams.
SCSE
Example
Given a function F with 4 inputs. The function F=1 if the number of
inputs “1” is greater than or equal to the number of inputs “0”.
Otherwise, F=0.
a. Represent the function F in K-map.
b. Simplify the function F and draw the circuit using only NAND gates.
SCSE
Example
Given a combinational circuit having the operation as in the table.
E X1 X0 Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1 0 0 1 0 0 0
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
Example
We can use common MSI chips such as:
o Decoder/Encoder.
o Multiplexer- MUX.
o Demultiplexer- DEMUX.
o Adder, ...
to implement a combinational logic circuit.
SCSE
Example
Consider the decoder 2 to 4, high active outputs.
Design
SCSE
Example
Circuit diagram
SCSE
Example
Consider the decoder 2 to 4, low active outputs.
SCSE
Example
Circuit diagram
SCSE
Example
Consider the decoder 2 to 4, low active outputs, 1 low active enable input.
SCSE
Example
Circuit diagram
SCSE
Example:
Using 74LS138 and logic gates to implement the following functions
SCSE
Example:
Using 74LS138 and logic gates to implement the following functions
SCSE
Example
Consider the encoder 4 to 2.
SCSE
Example
Circuit diagram
SCSE
Example
Priority encoder 4 to 2: priority order is increased from x3 to x0.
SCSE
Example
Circuit diagram
SCSE