The clock is a system signal, usually a square wave; that acts as the heartbeat to a computer system.
All operations in a computer system are synchronised using the systems clock.
Generally, the system clock’s period is longer than the switching time of the system. (It could work as Oscillator
)
A timing diagram shows how two or more waveforms relate in time
Boolean Equation:
A | B | S | |
---|---|---|---|
0 | 0 | 0 | |
Truth Table | 0 | 1 | 0 |
1 | 0 | 0 | |
1 | 1 | 1 |
All inputs must be '1'. Code symbol is two ampersands -> &&
.
e.g., MFA
Consider a motorised gate that opens only under specific conditions:
The Boolean equation for this scenario is:
A | B | S |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
In this setup, the motorized gate would open only when both conditions of a valid security card and a correct PIN are met, utilizing the logic of the AND gate.
Boolean Equation:
A | B | S | |
---|---|---|---|
0 | 0 | 0 | |
Truth Table | 0 | 1 | 1 |
1 | 0 | 1 | |
1 | 1 | 1 |
EIther input must be '1'. Code symbol is two pipes -> ||
.
Consider a security system for a building with two sensors:
The Boolean equation for this scenario is:
A | B | S |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
In this setup, the alarm is triggered if either the main entrance door is opened or the window is broken
Boolean Equation:
A | B | S | |
---|---|---|---|
0 | 0 | 1 | |
Truth Table | 0 | 1 | 0 |
1 | 0 | 0 | |
1 | 1 | 0 |
No inputs must be '1'. Code symbol is a exclamation mark and pipe -> !|
.
Consider a burglar alarm system in a building that is armed when neither the motion sensor nor the door sensor is triggered:
The Boolean equation for this scenario is:
A | B | S |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 0 |
In this setup, the burglar alarm system would be armed only if neither the motion sensor nor the door sensor is triggered.
Boolean Equation:
A | B | S | |
---|---|---|---|
0 | 0 | 1 | |
Truth Table | 0 | 1 | 1 |
1 | 0 | 1 | |
1 | 1 | 0 |
All inputs must be '1'. Code symbol:
!( foo && bar )
Consider a security access system where a door lock remains locked only if both a key card and a PIN code are incorrect:
The Boolean equation for this scenario is:
A | B | S |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 0 |
In this setup, the door lock remains locked only if both the key card and the PIN code are incorrect.
Boolean Equation:
A | B | S | |
---|---|---|---|
0 | 0 | 0 | |
Truth Table | 0 | 1 | 1 |
1 | 0 | 1 | |
1 | 1 | 0 |
All inputs must be '1'. Code symbol is a hat (only for comparison) -> ^
.
A security camera is triggered to record only when either motion is detected outside or an authorized person enters a correct PIN code:
The Boolean equation for this scenario is:
A | B | S |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
In this setup, the security camera is triggered to record only when either motion is detected outside or an authorized person enters a correct PIN code.
Or go to menti and use this code (5442 0426
)
The ALU adds binary numbers that are positivily or negatively signed in combinations to perform addition, multiplication, subtraction and division.
This is all done with logic gates in a circuit called an adder.
Binary A | Binary B | Sum (Binary) | Carry |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 1 |
Logic symbol for a Basic calculator or half added
Binary A | Binary B | Carry In | Carry Out | Sum (Binary) |
---|---|---|---|---|
0 | 0 | 1 | 0 | 1 |
0 | 1 | 1 | 1 | 0 |
1 | 0 | 1 | 1 | 0 |
1 | 1 | 1 | 1 | 1 |
Walkthrought lab is here
And we will be using Logic Simulator