You can even replace "weights" with "gates". It can be build with NAND gates.