docs

a slatepencil documentail site

View on GitHub

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.

##

Input(A) Output
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
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

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

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

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

SR-Latch

Gated SR-Latch

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