Jump to content

File:XOR using NAND.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 248 × 76 pixels, file size: 14 KB)

Description XOR implemented with NAND gates
Date (UTC)
Source
Author


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 domain 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:

  • File:XOR_Using_NAND.jpg licensed with PD-self
    • 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.

Uploaded with derivativeFX

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

27 October 2009

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:50, 27 October 2009Thumbnail for version as of 08:50, 27 October 2009248 × 76 (14 KB)Robert A. Maxwell{{Information |Description=XOR implemented with NAND gates |Source=*File:XOR_Using_NAND.jpg |Date=2009-10-27 08:44 (UTC) |Author=*File:XOR_Using_NAND.jpg: {{user|KlaudiuMihaila}} *derivative work: ~~~ |Permission=see below |other_versions= }}

The following page uses this file:

Global file usage

The following other wikis use this file: