To reproduce this image with circuit-macros, use the following code:
.PS
cct_init
include(HOMELIB_`liblog.m4')
scale = 25.4 # Use millimetres
sec = 5 # Horizontal length of each section
vgap = 20 # Vertical gap between A and B
nawid = 11 # Need a value for width of NAND gate before use
LA: "$A$" rjust; line right_ nawid+4*sec
NA1: NAND_gate with .In1 at Here
move to (0, -vgap)
LB: "$B$" rjust; line right_ nawid+4*sec
NA2: NAND_gate with .In2 at Here
move to (2*sec, -vgap/2)
NA3: NAND_gate; line right_ sec; dot
move to NA3.Out+(sec, 0); line to (Here.x, NA1.In2.y); line to NA1.In2
move to NA3.Out+(sec, 0); line to (Here.x, NA2.In1.y); line to NA2.In1
dot(at LA+(sec, 0)); line to (Here.x, NA3.In1.y); line to NA3.In1
dot(at LB+(sec, 0)); line to (Here.x, NA3.In2.y); line to NA3.In2
move to (2*nawid+6*sec, -vgap/2)
NA4: NAND_gate; line right_ sec; "$A$ XOR $B$" ljust
line from NA1.Out right_ sec; line to (Here.x, NA4.In1.y); line to NA4.In1
line from NA2.Out right_ sec; line to (Here.x, NA4.In2.y); line to NA4.In2
.PE
This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: Redrawn in circuit-macros and saved as SVG.. The original can be viewed here: XOR Using NAND.jpg: . Modifications made by Circuit-macros.
I, the copyright holder of this work, hereby publish it under the following license:
Public domainPublic domainfalsefalse
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Original upload log
This image is a derivative work of the following images:
2006-12-23T22:54:46Z KlaudiuMihaila 303x120 (31410 Bytes) From [http://en.wikipedia.org/wiki/Image:XOR_Using_NAND.jpg en.wp], where it was released to public domain by its creator, Jjbeard.