logic·IEEE 91·education, industrial·complexity 2/3
1-bit full adder
logic-gate·§ IEEE 91-1984
↘ preview
100%
UTF-8 · LF · 8 lines · 142 chars✓ parsed·3.7 ms·5.2 KB SVG
Scenario
The 1-bit full adder is the foundational building block of every arithmetic logic unit. Digital logic students derive it in lecture; FPGA engineers instantiate it in RTL. Schematex renders it from a purely functional description — no manual gate placement, no wire routing — making it easy to embed in textbooks, datasheets, or AI-generated hardware documentation.
Annotation key
input A, B, Cin— declare named input portsoutput Sum, Cout— declare named output portss1 = XOR(A, B)— intermediate signals1is the XOR of inputs A and BSum = XOR(s1, Cin)— the sum bit is the XOR of the partial sum and carry-inc1 = AND(A, B)— carry generated when both A and B are 1c2 = AND(s1, Cin)— carry propagated when partial sum is 1 and Cin is 1Cout = OR(c1, c2)— carry-out is 1 if either generate or propagate carry is active
How to read
The diagram renders two XOR gates for the sum path (A⊕B, then ⊕Cin) and two AND gates feeding an OR for the carry-out (the standard generate/propagate structure). The layout is automatically ranked so data flows left to right, inputs on the left edge, outputs on the right. Every 4-bit or 8-bit ripple-carry adder in textbooks is just this circuit chained together.