Logic Gates

Logic gates can be made of resistors, transistors or diodes. These components are wired together in specific configurations to ensure they transform the inputs in expected ways.

CMOS (complementary metal-oxide-semiconductor)

CMOS

CMOS TG (translation gate)

CMOS TG

PMOS & NMOS

General logic gates

not

Input(A) Output Y
0 1
1 0
Input(A) Input(B) Output
0 0 0
0 1 0
1 0 0
1 1 1
Input(A) Input(B) Output
0 0 0
0 1 1
1 0 1
1 1 1
Input(A) Input(B) Output
0 0 0
0 1 1
1 0 1
1 1 0
Input(A) Input(B) Output
0 0 1
0 1 1
1 0 1
1 1 0

nor

Input(A) Input(B) Output
0 0 1
0 1 0
1 0 0
1 1 0
Input(A) Input(B) Output
0 0 1
0 1 0
1 0 0
1 1 1

SR-Latch (Set & Reset Latch)

SR-Latch

S R Q Q Invert
0 0 latch latch
0 1 0 1
1 0 1 0
1 1 0 0

Gated SR-Latch

Gated SR-Latch

Half add

HALF ADD

Input(A) Input(B) Output(Sum) Output(Carry)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1

D flip-flop

DFF

Full add

FULL ADD

Input(A) Input(B) Input(Cin) Output(Sum) Output(Carry)
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

4-bit add

4-bit ADD

Rising edge detector

Pulse SR-latch

JK Flip-Flop

JK Flip-Flop

J K Clk Q Q Invert
0 0 enable latch latch
0 1 enable 0 1
1 0 enable 1 0
1 1 enable toggle toggle

Half Singal With

Binary Decoder

S R out0 out1 out2 out3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1

Binary counter

Open Drain vs Push-Pull

what is a register

DRAM

DRAM

SRAM

SRAM


Page Source