Digital Logic & Microprocessor — Digital Logic, NEC licence examination syllabus (Nepal Engineering Council).
Turning a table of what you want into a circuit that does it.
You know what your circuit should do — you can write down, for every combination of inputs, what the output should be. That is a truth table, and it is easy to produce.
But you cannot build a truth table out of gates. You need an expression. SOP is the method that turns one into the other, and it is entirely mechanical.
For a row that outputs 1, ask: what would have to be true for the inputs to be exactly this?
Input is 1Write the letter as it is: A
Input is 0Write the letter with a bar: A̅ — meaning "A is NOT true"
Join them with ANDBecause ALL of them must hold at once for this row
So a row with A=0 and B=1 becomes A̅·B — "A is off and B is on". That single term is 1 for that row and 0 for every other, which is exactly what you want.
Two rows give 1, so we write two terms and OR them:
The names are older than computers and come from ordinary algebra:
Productmeans AND — because AND behaves like multiplying: 1·1 = 1, and anything times 0 is 0.
Summeans OR — because OR behaves like adding: anything plus 1 gives 1.
So SOPis a sum (OR) of products (ANDs). The name is a description of the shape.
SOP always works, and it is often wasteful. Ten rows outputting 1 gives ten AND terms and a very wide OR — a lot of silicon for something that may simplify enormously.
That is what Boolean algebra and Karnaugh maps are for. SOP gets you a circuit that is correct; those two get you one that is small. Always do them in that order.
Table to expressionStraight application. Marks are for the correct bars — a 0 means barred, and getting that backwards loses the question.
Then simplifyUsually the second half of the same question, by K-map or Boolean laws.
Count your termsThe number of terms must equal the number of 1s in the output column. A quick check that catches dropped rows.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…