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
Esta é uma imagem retocada, o que significa que a versão original foi alterada digitalmente. Modificações: Redrawn in circuit-macros and saved as SVG.. O original pode ser visto aqui: XOR Using NAND.jpg: . Modificações feitas por Circuit-macros.
Eu, titular dos direitos de autor desta obra, publico-a com a seguinte licença:
Public domainPublic domainfalsefalse
Eu, titular dos direitos de autor desta obra, dedico-a ao domínio público, com aplicação em todo o mundo. Nalguns países isto pode não ser legalmente possível; se assim for: Concedo a todos o direito de usar esta obra para qualquer fim, sem quaisquer condições, a menos que tais condições sejam impostas por lei.
Registo de carregamento original
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.