© 2026 schoolict.net (Ruwan Mangala Suraweera)
4.3 Designing Digital Circuits: From Everyday Needs to Logic Gatesසංඛ්යාංක පරිපථ නිර්මාණය: එදිනෙදා අවශ්යතාවල සිට තර්ක ද්වාර දක්වා
Grade 12 A/L ICT · Lesson 412 ශ්රේණිය A/L ICT · පාඩම 4
In this videoමේ වීඩියෝවේ
- Design flow: need → truth table → simplify expression → draw gates.නිර්මාණ ප්රවාහය: අවශ්යතාව → සත්යතා වගුව → ප්රකාශනය සරල කරන්න → ද්වාර අඳින්න.
- Door alarm: F = D · N (one AND).දොර එලාමය: F = D · N (AND එකක්).
- Majority: F = AB + BC + AC (also full-adder carry).බහුතරය: F = AB + BC + AC (සම්පූර්ණ එකතුකරන්නාගේ carry ද).
- Seatbelt warning: F = E · S′ (NOT then AND).Seatbelt අනතුරු ඇඟවීම: F = E · S′ (NOT පසු AND).
- Syllabus designs use at most three inputs (8-row truth tables).විෂය නිර්දේශ නිර්මාණ ආදාන තුනක් දක්වා භාවිත කරයි (පේළි 8 වගු).
Notesසටහන්
Syllabus 4.3. Now you design small circuits yourself. You pick a real situation (a door alarm, a majority vote, a car seatbelt light), write its truth table (up to three inputs), turn the table into a Boolean expression, simplify it, and finally draw the gate circuit. This is how engineers start every digital design.විෂය නිර්දේශය 4.3. දැන් ඔබ කුඩා පරිපථ නිර්මාණය කරයි. සැබෑ අවස්ථාවක් තෝරා (දොර එලාමයක්, බහුතර ඡන්දයක්, මෝටර් රථ seatbelt එළියක්), එහි සත්යතා වගුව ලියා (ආදාන තුනක් දක්වා), වගුව බූලියානු ප්රකාශනයකට හරවා, සරල කර, අවසානයේ ද්වාර පරිපථය අඳින්න. ඉංජිනේරුවන් සෑම සංඛ්යාංක නිර්මාණයක්ම අරඹන්නේ මෙසේය.
1. The design steps1. නිර්මාණ පියවර
Four clear steps take you from a need to a working circuit:අවශ්යතාවක සිට ක්රියාකාරී පරිපථයක් දක්වා පැහැදිලි පියවර හතරක් ඇත:
2. Example A – Door alarm at night2. උදාහරණය A – රාත්රියේ දොර එලාමය
A house alarm should sound when the door is open (D = 1) AND it is night (N = 1). By day, or when the door is shut, the alarm stays off.නිවසක එලාමය දොර විවෘත (D = 1) සහ රාත්රිය (N = 1) වූ විට නාද විය යුතුය. දවසේ හෝ දොර වැසී ඇති විට එලාමය නිහඬව තිබේ.
DN: 00→0, 01→0, 10→0, 11→1. So F = D · N. The circuit is a single AND gate.DN: 00→0, 01→0, 10→0, 11→1. එබැවින් F = D · N. පරිපථය එක් AND ද්වාරයකි.
| D (door)D (දොර) | N (night)N (රාත්රිය) | Alarm Fඑලාම F |
|---|---|---|
| 00 | 00 | 00 |
| 00 | 11 | 00 |
| 11 | 00 | 00 |
| 11 | 11 | 11 |
3. Example B – Majority of three votes3. උදාහරණය B – ඡන්ද තුනක බහුතරය
Three people A, B, C vote yes (1) or no (0). The decision F is yes when at least two vote yes – the majority function.පුද්ගලයින් තිදෙනෙක් A, B, C ඔව් (1) හෝ නැත (0) ඡන්දය දෙති. අවම වශයෙන් දෙදෙනෙක් ඔව් කිවූ විට තීරණය F ඔව් වේ – බහුතර ශ්රිතය.
F = A·B + B·C + A·C. F = 1 for ABC = 011, 101, 110, 111 (the rows with two or three 1s).F = A·B + B·C + A·C. F = 1 වන්නේ ABC = 011, 101, 110, 111 (1 දෙකක් හෝ තුනක් ඇති පේළි).
| AA | BB | CC | FF |
|---|---|---|---|
| 00 | 00 | 00 | 00 |
| 00 | 00 | 11 | 00 |
| 00 | 11 | 00 | 00 |
| 00 | 11 | 11 | 11 |
| 11 | 00 | 00 | 00 |
| 11 | 00 | 11 | 11 |
| 11 | 11 | 00 | 11 |
| 11 | 11 | 11 | 11 |
4. Example C – Seatbelt warning light4. උදාහරණය C – Seatbelt අනතුරු එළිය
A car warning light turns on when the engine is on (E = 1) AND the seatbelt is not fastened (S = 0). So F = E · S′.මෝටර් රථ අනතුරු එළිය එන්ජිම ක්රියාත්මක (E = 1) සහ seatbelt අමුණා නැත (S = 0) වූ විට දැල්වේ. එබැවින් F = E · S′.
ES: 00→0, 01→0, 10→1, 11→0. Gates: one NOT on S, then one AND with E.ES: 00→0, 01→0, 10→1, 11→0. ද්වාර: S මත NOT එකක්, පසුව E සමඟ AND එකක්.
5. Turning an expression into a circuit5. ප්රකාශනයක් පරිපථයක් බවට හරවන ආකාරය
Reading an expression left to right: every ′ becomes a NOT bubble (or a NOT gate), every · becomes an AND gate, every + becomes an OR gate. Draw inputs on the left, output on the right. Share NOT gates when the same inverted signal is used twice.ප්රකාශනයක් වමේ සිට දකුණට කියවීම: සෑම ′ NOT කවයක් (හෝ NOT ද්වාරයක්) වේ, සෑම · AND ද්වාරයක් වේ, සෑම + OR ද්වාරයක් වේ. ආදාන වමේද, ප්රතිදානය දකුණේද අඳින්න. එකම පෙරළුණු සංඥාව දෙවරක් භාවිත වේ නම් NOT ද්වාර බෙදා ගන්න.
One NOT (for A′), two AND gates (A·B and A′·C), one OR gate joining them – 4 gates total.NOT එකක් (A′ සඳහා), AND ද්වාර දෙකක් (A·B සහ A′·C), ඒවා එකතු කරන OR ද්වාර එකක් – මුළු ද්වාර 4.
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1List the four steps of digital circuit design.සංඛ්යාංක පරිපථ නිර්මාණයේ පියවර හතර ලැයිස්තුගත කරන්න.
2What is the Boolean expression for a door-open-at-night alarm?රාත්රියේ දොර විවෘත එලාමයේ බූලියානු ප්රකාශනය කුමක්ද?
3Write the majority function of three inputs.ආදාන තුනක බහුතර ශ්රිතය ලියන්න.
4How many rows does a 3-input design truth table have?ආදාන 3 ක නිර්මාණ සත්යතා වගුවක පේළි කීයක්ද?
5Why simplify before drawing the circuit?පරිපථය ඇඳීමට පෙර සරල කරන්නේ ඇයි?
6For F = E · S′, which gates do you need?F = E · S′ සඳහා අවශ්ය ද්වාර මොනවාද?
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
1The first step in designing a digital circuit isසංඛ්යාංක පරිපථයක් නිර්මාණය කිරීමේ පළමු පියවර
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Start from the real-world need.සැබෑ ලෝක අවශ්යතාවෙන් අරඹන්න.
2Door alarm F = D · N uses which gate?දොර එලාම F = D · N භාවිත කරන ද්වාරය
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
AND of door and night.දොර සහ රාත්රියේ AND.
3Majority of A,B,C equalsA,B,C හි බහුතරය සමාන වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
At least two inputs are 1.අවම වශයෙන් ආදාන දෙකක් 1.
4A 3-input truth table hasආදාන 3 ක සත්යතා වගුවක
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
2³ = 8.2³ = 8.
5F = E · S′ needsF = E · S′ ට අවශ්ය
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Invert S, then AND with E.S පෙරළා E සමඟ AND.
6· in a Boolean expression becomes which gate?බූලියානු ප්රකාශනයක · යනු කුමන ද්වාරයද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
· denotes AND.· යනු AND.
7+ in a Boolean expression becomes which gate?බූලියානු ප්රකාශනයක + යනු කුමන ද්වාරයද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
+ denotes OR.+ යනු OR.
8For the alarm, F is 1 only whenඑලාමය සඳහා F 1 වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Both D and N must be 1.D සහ N දෙකම 1 විය යුතුය.
9The majority circuit is also used asබහුතර පරිපථය භාවිත වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Cout = majority(A,B,Cin).Cout = බහුතර(A,B,Cin).
10Simplifying F = A·B + A·B′ before drawing savesඇඳීමට පෙර F = A·B + A·B′ සරල කිරීමෙන් ඉතිරි වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
A·B + A·B′ = A.A·B + A·B′ = A.
11Syllabus designs are limited to how many inputs?විෂය නිර්දේශ නිර්මාණ ආදාන කීයකට සීමාද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Up to three inputs.ආදාන තුනක් දක්වා.
12Shared inverters are used whenබෙදාගත් පෙරළන භාවිත වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Reuse one NOT.NOT එකක් නැවත භාවිත කරන්න.
13Which term means: “Turning a real need into a truth table, expression and gate circuit”?“සැබෑ අවශ්යතාවක් සත්යතා වගුවක්, ප්රකාශනයක් සහ ද්වාර පරිපථයක් බවට හැරවීම” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Digital circuit design – Turning a real need into a truth table, expression and gate circuit.සංඛ්යාංක පරිපථ නිර්මාණය – සැබෑ අවශ්යතාවක් සත්යතා වගුවක්, ප්රකාශනයක් සහ ද්වාර පරිපථයක් බවට හැරවීම.
14Which term means: “A binary signal that feeds a circuit (door, night, vote, …)”?“පරිපථයකට පෝෂණය වන ද්වීමය සංඥාවක් (දොර, රාත්රිය, ඡන්දය, …)” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Input variable – A binary signal that feeds a circuit (door, night, vote, …).ආදාන විචල්යය – පරිපථයකට පෝෂණය වන ද්වීමය සංඥාවක් (දොර, රාත්රිය, ඡන්දය, …).
15Which term means: “The single binary result the circuit must produce”?“පරිපථය නිපදවිය යුතු එකම ද්වීමය ප්රතිඵලය” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Output function – The single binary result the circuit must produce.ප්රතිදාන ශ්රිතය – පරිපථය නිපදවිය යුතු එකම ද්වීමය ප්රතිඵලය.
16Which term means: “Output is 1 when at least two of three inputs are 1. F = AB+BC+AC”?“ආදාන තුනෙන් අවම වශයෙන් දෙකක් 1 වූ විට ප්රතිදානය 1 වේ” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Majority function – Output is 1 when at least two of three inputs are 1. F = AB+BC+AC.බහුතර ශ්රිතය – ආදාන තුනෙන් අවම වශයෙන් දෙකක් 1 වූ විට ප්රතිදානය 1 වේ.
17Which term means: “Example: F = D · N (door open AND night)”?“උදා: F = D · N (දොර විවෘත සහ රාත්රිය)” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Alarm circuit – Example: F = D · N (door open AND night).එලාම පරිපථය – උදා: F = D · N (දොර විවෘත සහ රාත්රිය).
18Which term means: “A drawing that shows each AND, OR and NOT gate”?“සෑම AND, OR සහ NOT ද්වාරයක්ම පෙන්වන ඇඳීමකි” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Gate-level circuit – A drawing that shows each AND, OR and NOT gate.ද්වාර-මට්ටමේ පරිපථය – සෑම AND, OR සහ NOT ද්වාරයක්ම පෙන්වන ඇඳීමකි.
19Which term means: “Reduce the expression so the circuit uses fewer gates”?“අඩු ද්වාර භාවිත වන සේ ප්රකාශනය අඩු කරන්න” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Simplification before drawing – Reduce the expression so the circuit uses fewer gates.ඇඳීමට පෙර සරල කිරීම – අඩු ද්වාර භාවිත වන සේ ප්රකාශනය අඩු කරන්න.
20Which term means: “Syllabus limit: truth tables with at most three inputs (8 rows)”?“විෂය නිර්දේශ සීමාව: ආදාන තුනක් දක්වා සත්යතා වගු (පේළි 8)” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Three-input design – Syllabus limit: truth tables with at most three inputs (8 rows).ආදාන තුනේ නිර්මාණය – විෂය නිර්දේශ සීමාව: ආදාන තුනක් දක්වා සත්යතා වගු (පේළි 8).
MCQ answer keyMCQ පිළිතුරු
- B – Start from the real-world need.සැබෑ ලෝක අවශ්යතාවෙන් අරඹන්න.
- C – AND of door and night.දොර සහ රාත්රියේ AND.
- D – At least two inputs are 1.අවම වශයෙන් ආදාන දෙකක් 1.
- B – 2³ = 8.2³ = 8.
- E – Invert S, then AND with E.S පෙරළා E සමඟ AND.
- E – · denotes AND.· යනු AND.
- A – + denotes OR.+ යනු OR.
- C – Both D and N must be 1.D සහ N දෙකම 1 විය යුතුය.
- A – Cout = majority(A,B,Cin).Cout = බහුතර(A,B,Cin).
- B – A·B + A·B′ = A.A·B + A·B′ = A.
- A – Up to three inputs.ආදාන තුනක් දක්වා.
- E – Reuse one NOT.NOT එකක් නැවත භාවිත කරන්න.
- D – Digital circuit design – Turning a real need into a truth table, expression and gate circuit.සංඛ්යාංක පරිපථ නිර්මාණය – සැබෑ අවශ්යතාවක් සත්යතා වගුවක්, ප්රකාශනයක් සහ ද්වාර පරිපථයක් බවට හැරවීම.
- D – Input variable – A binary signal that feeds a circuit (door, night, vote, …).ආදාන විචල්යය – පරිපථයකට පෝෂණය වන ද්වීමය සංඥාවක් (දොර, රාත්රිය, ඡන්දය, …).
- C – Output function – The single binary result the circuit must produce.ප්රතිදාන ශ්රිතය – පරිපථය නිපදවිය යුතු එකම ද්වීමය ප්රතිඵලය.
- A – Majority function – Output is 1 when at least two of three inputs are 1. F = AB+BC+AC.බහුතර ශ්රිතය – ආදාන තුනෙන් අවම වශයෙන් දෙකක් 1 වූ විට ප්රතිදානය 1 වේ.
- C – Alarm circuit – Example: F = D · N (door open AND night).එලාම පරිපථය – උදා: F = D · N (දොර විවෘත සහ රාත්රිය).
- D – Gate-level circuit – A drawing that shows each AND, OR and NOT gate.ද්වාර-මට්ටමේ පරිපථය – සෑම AND, OR සහ NOT ද්වාරයක්ම පෙන්වන ඇඳීමකි.
- B – Simplification before drawing – Reduce the expression so the circuit uses fewer gates.ඇඳීමට පෙර සරල කිරීම – අඩු ද්වාර භාවිත වන සේ ප්රකාශනය අඩු කරන්න.
- E – Three-input design – Syllabus limit: truth tables with at most three inputs (8 rows).ආදාන තුනේ නිර්මාණය – විෂය නිර්දේශ සීමාව: ආදාන තුනක් දක්වා සත්යතා වගු (පේළි 8).
Structured Questionsව්යුහගත ප්රශ්න
1Describe the four design steps with a short example.කෙටි උදාහරණයක් සමඟ නිර්මාණ පියවර හතර විස්තර කරන්න. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
2Build the truth table and expression for a light that is ON when either switch A or switch B is ON (or both).ස්විච A හෝ B (හෝ දෙකම) ON වූ විට එළිය ON වන සත්යතා වගුව සහ ප්රකාශනය සාදන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3For the majority function, state F and say for which of ABC = 101 and 100 the output is 1.බහුතර ශ්රිතය සඳහා F ප්රකාශ කර ABC = 101 සහ 100 න් කුමක් සඳහා ප්රතිදානය 1 දැයි කියන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
4Design F = E · S′ (seatbelt warning): truth table, expression already given, gates needed.F = E · S′ (seatbelt අනතුරු ඇඟවීම) නිර්මාණය කරන්න: සත්යතා වගුව, ද්වාර. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
5Explain why you should simplify A·B + A·B′ before drawing, and state the simplified form.ඇඳීමට පෙර A·B + A·B′ සරල කළ යුත්තේ ඇයිදැයි පැහැදිලි කර සරල ආකාරය කියන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
Summary & Downloadsසාරාංශය සහ බාගත කිරීම්
Key pointsප්රධාන කරුණු
- Design flow: need → truth table → simplify expression → draw gates.නිර්මාණ ප්රවාහය: අවශ්යතාව → සත්යතා වගුව → ප්රකාශනය සරල කරන්න → ද්වාර අඳින්න.
- Door alarm: F = D · N (one AND).දොර එලාමය: F = D · N (AND එකක්).
- Majority: F = AB + BC + AC (also full-adder carry).බහුතරය: F = AB + BC + AC (සම්පූර්ණ එකතුකරන්නාගේ carry ද).
- Seatbelt warning: F = E · S′ (NOT then AND).Seatbelt අනතුරු ඇඟවීම: F = E · S′ (NOT පසු AND).
- Syllabus designs use at most three inputs (8-row truth tables).විෂය නිර්දේශ නිර්මාණ ආදාන තුනක් දක්වා භාවිත කරයි (පේළි 8 වගු).
