-
A logic function (or Boolean function) is a function that takes one or more bits of input and produces a single bit of output.
-
A logic gate (or simply gate) is a device that implements a logic function.
-
Multiplexors
- selector (or control) value
- B.3 Combinational Logic B-11 — Two-Level Logic and PLAs
-
logic circuits
- a combinational logic (מעגל צירופי) is a device consisting of logic gates whose outputs at any time are determined by the current inputs
- a sequential logic (מעגל סדרתי) is a device consisting of logic gates whose outputs at any time are determined by the current inputs and the previous state of the device
-
packaged building-block logic families can be divided into categories:
- resistor-transistor logic (RTL) circuits are logic circuits built from resistors and transistors
- diode-transistor logic (DTL)
- transistor-transistor logic (TTL)
-
An integrated circuit (IC) is a device that contains many logic gates on a single chip of silicon
- ICs have external electrical contact points called pins
- A package is a plastic or ceramic case that holds the IC and connects the pins to the outside world
- A dual in-line package (DIP) is a package with two parallel rows of pins
-
A discrete component is an electronic device containing only a single element, such as a transistor or a resistor
Arithmetic logic circuits
Binary adders
Half Adder
- A half adder addes two single binary digits and , and outputs a sum bit and a carry out bit
- The sum bit () is a XOR of and
- The carry out bit () is an AND of and
- The carry out bit represents an overflow into the next digit of a multi-digit addition
0 | 0 | 0 | 0 |
0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 1 |
Full Adder
- A full adder adds two bits and and accounts for values carried in as well as out, and outputs a sum bit and a carry out bit
0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 1 | 0 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 0 | 1 |
1 | 1 | 1 | 1 | 1 |
Sequential Logic
- SR latch (Set-Reset latch) is a simple form of sequential logic that can store one bit of information
- flip-flop
- JK flip-flop
Boolean Algebra
Logic Gate | ||
---|---|---|
OR | logical sum | |
AND | logical product | |
NOT |
Laws
- Identity law: ,
- Zero and one law: ,
- Inverse law: ,
- Commutative law: ,
- Associative law: ,
- Distributive law: ,