Zum Inhalt springen

English:Logic gates and combinational systems - Electronics Year 10

Aus MOOCsWiki Staging
aiMOOC-Siegel aiMOOC

Logic gates and combinational systems - Electronics Year 10

QR-Code



Introduction

A model greenhouse display should show a reminder when monitoring is enabled and at least one of two conditions is present. Translate the requirement into a truth table and two circuit designs. Check them against each other and use an unexpected output to trace a possible fault.


Read the gates and their states

A logic signal has two model states, 0 and 1. In a particular circuit these can correspond to specified low and high voltage ranges. In a truth table we use the states to reason about the circuit after its inputs have settled. An AND gate gives 1 when both inputs are 1. An OR gate gives 1 when either or both inputs are 1. A NOT gate reverses its single input.

Logic diagram symbols for AND and OR gates and a NOT inverter
Learn to recognise the gate shapes and the small inversion circle at the output of the inverter. Diagram by Vaughan Pratt.

NAND inverts the result of AND and NOR inverts the result of OR. In a diagram you can put an inversion circle on the output of the corresponding gate shape to show this change.

A B AND OR NAND NOR
0 0 0 0 1 1
0 1 0 1 1 0
1 0 0 1 1 0
1 1 1 1 0 0

Observation task: identify the two-input circuits and compare their rules. Written route: use the table to explain what happens when both inputs are 1 for OR and NOR. In each row one is the inversion of the other.


Translate the greenhouse reminder into a table

Let E = 1 mean monitoring is enabled, D = 1 mean the model soil is dry, and R = 1 mean the reservoir is low. All signals have already been converted into binary states. Output Y = 1 requests a reminder. Requirements state that Y is 1 when E is 1 and at least one condition is present. The reminder is for the learner to read and interpret. It has no physical control function.

Name the intermediate signal X = D OR R. Then Y = E AND X. The complete table for three inputs contains eight rows. The order here counts from binary 000 to 111.

E D R X Y
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 1 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1

This is a combinational system. For each stable input combination the output is determined by those input states. No previous input or output is needed. The enable condition matters even when both sensor flags are active.

BBC micro:bit board with buttons and a grid of small lights
A digital display can represent a reminder with a symbol or text. The exercises model the logical command, and the device photo offers an example of a possible display. Photograph by Adelaidev2008t.


Build equivalent decisions from different gates

In the mixed-gate version, feed D and R to OR. Feed the resulting X and the enable E to AND. A second expression is (E AND D) OR (E AND R). It means either enabled-and-dry or enabled-and-reservoir-low. Factoring the common enable gives E AND (D OR R). This is the same output decision, though the intermediate signals differ.

Implement the second expression with three NAND gates. Let N₁ = NAND(E, D) and N₂ = NAND(E, R). Let Y = NAND(N₁, N₂). For example, with E = 1, D = 0 and R = 1, the first NAND gives 1 and the second gives 0. NAND of 1 and 0 gives 1, as the requirement predicts.

Observation task: identify how a NAND can invert a signal and how NAND outputs can be combined. Written route: a single NAND with its two inputs set to A gives NOT A because A AND A equals A. Try both A values. For comparison, a NOR with both inputs set to A also gives NOT A because A OR A equals A. Then use the three-gate plan to check the row with E = 1, D = 1, R = 1.


Verify all input combinations in software

This simple software model evaluates both gate plans and compares them with the requirement. The code uses Boolean operations. The conversion to an integer at the output displays False as 0 and True as 1.

def nand(first, second):
    return not (first and second)

for enable in [False, True]:
    for dry in [False, True]:
        for low in [False, True]:
            expected = enable and (dry or low)
            first = nand(enable, dry)
            second = nand(enable, low)
            actual = nand(first, second)
            print(int(enable), int(dry), int(low), int(expected), int(actual))

The two output columns should match in all eight rows. Use the hand-written truth table to check the last three outputs and make sure no combination was skipped. A gate model describes stable ideal states. Real devices also specify which voltages count as 0 and 1 and how long an output needs to change after an input changes.


Use a failing row to localise a fault

Imagine a simulated test returns Y = 1 for E = 0, D = 1 and R = 1. In the mixed-gate design X = 1 is expected but Y should be 0. A model in which the display reads X directly could give this observation. Another possibility is that the enable signal is reaching the final gate as 1. Check the enable signal at the final decision, and trace which signal the display receives. Final output readings alone can agree for both faults. Use further combinations to see how broadly the observed behaviour differs from the intended rule. Include E = 0, D = 0, R = 1 and E = 1, D = 0, R = 0.

One mismatched row is a start. Use all eight rows against the written requirement before deciding that a change is correct. In the test record, name the intermediate signal and state whether the checks refer to the mixed-gate circuit or the NAND-only circuit. Test a physical claim such as switching time separately. This course uses software and paper models.


Interactive Tasks


Quiz: Test Your Knowledge

When does a two-input NAND give zero? (When both inputs are one.) (!When both inputs are zero.) (!When the two inputs differ.) (!Every time either input is zero.)



What is the output of NOR for inputs 0 and 0? (1) (!0) (!A stored previous state) (!An undefined value in this model)



Which gate reverses one input? (NOT) (!AND) (!OR) (!A two-input OR with both inputs copied)



How many rows are needed to test every combination of three binary inputs? (8) (!3) (!6) (!9)



What is X when D is 1 and R is 1? (1) (!0) (!Only 1 when E is 1) (!Only 1 when the signals differ)



What is Y for E = 0, D = 1 and R = 1? (0) (!1) (!2) (!The previous value of Y)



Which expression is equivalent to E AND (D OR R)? (OR of the enabled-and-dry case and the enabled-and-reservoir-low case.) (!AND of the enabled-or-dry case and the enabled-or-reservoir-low case.) (!AND of the enabled-and-dry case and the enabled-and-reservoir-low case.) (!OR of the enabled-or-dry case and the enabled-or-reservoir-low case.)



What does NAND(A, A) compute? (NOT A) (!A unchanged) (!Always zero) (!Always one)



Which result could suggest the enable input is being bypassed? (E = 0 and one flag is 1, but Y is also 1.) (!E = 1 and exactly one flag is 1, with Y = 1.) (!All input states are 0, with Y = 0.) (!E = 1 and both flags are 0, with Y = 0.)



What can a truth table of stable states verify? (The expected mapping for all combinations in the model.) (!The maximum electrical operating voltage of a particular chip.) (!How long a real circuit takes to respond.) (!The current required by every physical load.)





Memory Game

AND Both inputs are required
OR Either or both inputs are enough
NOT The output reverses one input
NAND The only zero row is when both inputs are one
NOR The only one row is when both inputs are zero
Combinational output Determined by the current stable inputs





Drag and Drop

D and R are both zero X is zero
Either flag is one and E is zero Y remains zero
E and both flags are one Y is one for inclusive OR
The two NAND inputs are the same signal The NAND inverts that signal
Y is wrong when the enable input is zero Trace the enable path and check the final gate





Crossword Puzzle

Logic Rules about two-state signals
Truth This kind of table lists inputs and expected outputs
Enable Input that permits the reminder in the model
Inverter Gate with a single input that reverses it
NAND Inversion of AND
Disjunction The inclusive OR operation





LearningApps

Optional extra practice. Choose an appropriate activity with your teacher. If the external collection is unavailable, use the native activities and independent tasks in this course.


Cloze Text

Complete the explanation.
A two-input

gate requires both inputs to be 1. An

gate is satisfied by either or both. A

gate reverses its input. A

gate inverts AND. A

gate inverts OR. A three-input truth table lists

rows.



Open Tasks


Easy

  1. Read AND: Give the output of AND for inputs 1 and 0.
  2. Read NOR: Give the output of NOR for inputs 0 and 1.
  3. Name the enable: Which input decides whether any reminder is permitted?
  4. Find the number of rows: How many rows are needed for two binary inputs?


Standard

  1. Use two gates: For E = 1, D = 0 and R = 1, give X then Y.
  2. Trace a NAND version: Evaluate N₁, N₂ and Y for E = 1, D = 1 and R = 0.
  3. Compare designs: Explain why the last row tests the inclusive use of OR.
  4. Read a truth table: List all rows of the greenhouse table for which Y is 1.


Advanced

  1. Verify a second implementation: Show that the mixed-gate and NAND-only versions are equivalent for two cases of your choice, including a disabled case.
  2. Explain a fault case: Suggest two reasons why the display could report 1 with E disabled and X high.
  3. Change a requirement: Suppose a reminder should occur only when both flags are present and E is 1. Write the new rule and identify the rows that change.
  4. Qualify a test result: Explain what an exhaustive truth table does and what electrical timing evidence would still be needed for an actual circuit.



Learning Check

  1. Read inverted gates: Give NAND and NOR for inputs 1 and 0, explaining your rule.
  2. Translate a requirement: Write the logic for a reminder only when E is 1 and D or R is 1.
  3. Check a critical row: What are X and Y for E = 0, D = 1 and R = 1? Why are they different?
  4. Verify a NAND equivalence: For E = 1, D = 1, R = 0, give NAND(E,D), NAND(E,R) and the NAND of those results.
  5. Investigate a mismatch: The mixed-gate output is 1 while the displayed enable is 0 and X is 1. Give a next check.
  6. State what was tested: How would you show that both designs meet the original combinational requirement?


Worked checks and assessment guidance

  1. AND gives 0, so NAND gives 1. OR gives 1, so NOR gives 0.
  2. Let X be D OR R, using inclusive OR. Then Y is E AND X.
  3. X is 1 because at least one flag is active. Y is 0 because the enable input is disabled.
  4. The intermediate values are 0 and 1. Their NAND is 1, matching the expected reminder.
  5. Check the enable value that actually reaches the final gate. Also check whether the display is reading Y or the intermediate X.
  6. Evaluate all eight input combinations against the independently written truth table and compare each design’s final output. Treat any separate hardware timing requirement as a separate test.


Learning evidence

Hand in the system requirement, the eight-row truth table and labelled mixed-gate and NAND-only versions. Explain why their outputs agree and use two test rows to investigate a simulated enable fault. Include one limitation of testing only stable states.


OER and Wikipedia

Department for Education, GCSE Electronics subject content. Eduqas, GCSE Electronics guidance for teaching. Texas Instruments, SN74HC00 NAND gates and electrical data. Micro:bit Educational Foundation, device features. The greenhouse conditions and test results are synthetic.

Logic gates, Vaughan Pratt, CC BY 3.0. Microbit, Adelaidev2008t, CC BY-SA 4.0. Both files are from Wikimedia Commons. The historic SN7400N photograph, Mister rf, CC BY-SA 4.0, is an optional reference.

Boolean Logic and Logic Gates, CrashCourse. NAND Gate as Universal Gate, Neso Academy. The written routes are included alongside the videos.

iFrame blockiert

Diese externe Quelle ist für aiMOOC-iFrames nicht freigegeben.


Linked learning areas


aiMOOC Projects



Schulfach+




aiMOOCs



aiMOOC Projekte









MOOCwiki · Deutsch

Nach dem Lernen ist vor dem Lernen

Entdecke direkt den nächsten Lernkurs. Weitere Inhalte erscheinen, wenn Du weiter nach unten scrollst.

Zur MOOCwiki-Hauptseite

Mediathek

Suche verfeinern

Dein Lernplan bestimmt, was oben steht. Alle anderen Inhalte bleiben erreichbar. Seitenaufrufe beeinflussen die Auswahl nicht.

Inhalte werden geladen ...

Mediathek wird aus dem Wiki geladen ...