Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Document preview thumbnail
Voorbeeld 3 van de 21 pagina's
Interview

GCE OLevels Computer 2210- Logic Gates (Notes&Topical)

Document preview thumbnail
Voorbeeld 3 van de 21 pagina's

These Handouts are designed for computer science students who opted for GCE Olevels Computer code 2210 for the preparation of their exams.

Voorbeeld van de inhoud

COMPUTER 2210 HANOUTS
GCE OLEVELS


3 Logic gates and logic circuits
3.1 Logic Gates
Electronic circuits in computers, many new memories and controlling devices are made
up of thousands of LOGIC GATES. Logic gates take binary inputs and produce a binary output.
Several logic gates combined together form a LOGIC CIRCUIT and these circuits are designed
to carry out a specific function.
3.2 Truth Tables
Truth tables are used to trace the output from a logic gate or logic circuit. The NOT gate
is the only logic gate with one input; the other five gates have two inputs.
When constructing truth tables, all possible combinations of 1s and 0s which can be
input are considered. For the NOT gate (one input) there are only 21 (2) possible binary
combinations. For all other gates (two inputs), there are 22 (4) possible binary combinations.
Number of possible binary combinations can be obtained by using the formula 2n (Where
n is the number of inputs)
3.2.1 Truth Table for 2 Inputs
For all logic gates (except NOT gate) there are two inputs. Using the formula above,
there are 22 (4) possible binary combinations.




Figure 1 Truth Table-2 Inputs
3.2.2 Truth Table for 3 Inputs
For logic circuits, the number of inputs can be more than 2; for example three inputs give
a possible 23 (8) binary combinations.




Figure 2 Truth Table - 3 Inputs

3.3 Functions of Logic Gates
3.3.1 NOT Gate
It is a unary gate, which means it can operate on a single input at a time.




Figure 3: NOT gate

,a) Description:
The output, X, is 1 if the input, A, is 0
The output, X, is 0 if the input, A, is 1
b) How to write this:
X = NOT A (logic notation)
X = ā (Boolean algebra)
c) Truth Table of NOT Gate




Figure 4 Truth Table-NOT Gate


3.3.2 AND Gate
It is a binary operator used for logical multiplication. Output of AND gate is one if and only if both
Inputs are 1, otherwise output will be 0.




Figure 5 AND Gate
a) Description:
The output, X, is 1 if both inputs, A and B, are 1
b) How to write this:
X = A AND B (logic notation)
X = a · b (Boolean algebra)
c) Truth table of AND Gate




Figure 6 Truth Table AND Gate
3.3.3 OR Gate
It is a binary gate used for logical addition. Output of OR operation will be 1 if any of the input is
1




Figure 7 OR Gate

, a) Description:
The output, X, is 1 if either input, A or B, is 1
b) How to write this:
X = A OR B (logic notation)
X = a + b (Boolean algebra)
c) Truth table of OR Gate




Figure 8 Truth Table- OR Gate

3.3.4 NAND Gate (Not of AND)




a) Description
The output (X) is true (i.e. 1 or ON) if: any of the input is 0
b) How to write this:
X = A NAND B (logic notation)

c) Truth table of NAND Gate




3.3.5 NOR Gate (Not of OR)




a) Description
The output (X) is true (i.e. 1 or ON) if: all of the inputs are 0
b) How to write this:
X = A NOR B (logic notation)

Documentinformatie

School jaar
4
Geüpload op
30 januari 2022
Aantal pagina's
21
Geschreven in
2021/2022
Type
Interview
Bedrijf
Onbekend
Persoon
Onbekend
$7.99

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Verkocht
0
Volgers
0
Items
23
Laatst verkocht
-



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen