Engineering — Logic: 3-bit Parity
An XOR chain computing the parity bit.
Make it your own.
title "3-input parity (XOR chain)"
type gates
input A at (0,0)
input B at (0,2)
input C at (0,4)
gate XOR G1 at (3,1)
gate XOR G2 at (6,2)
output P at (9,2)
wire A G1
wire B G1
wire G1 G2
wire C G2
wire G2 P