File:Full Adder using reversible Fredkin gates.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 400 × 206 pixels, file size: 7 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Three-bit full adder (add with carry) using five Fredkin gates. The "g" garbage output bit is (p NOR q) if r=0, and (p NAND q) if r=1.

    Inputs on the left, including two constants, go through three gates to quickly determine the parity. The 0 and 1 bits swap places for each input bit that is set, resulting in parity bit on the 4th row and inverse of parity on 5th row.

    Then the carry row and the inverse parity row swap if the parity bit is set and swap again if one of the p or q input bits are set (it doesn't matter which is used) and the resulting carry output appears on the 3rd row.

    The p and q inputs are only used as gate controls, so they appear unchanged in the output.
    Date
    Source Own work
    Author Bret Mulvey

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    15 December 2016

    image/svg+xml

    7,458 byte

    0e6c5d4d4b65b6da012b49f658a3909331dcd12c

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current20:23, 20 November 2023Thumbnail for version as of 20:23, 20 November 2023400 × 206 (7 KB)wikimediacommons>Glrxmake relative font-sizes absolute. Also add serif fallback font // Editing SVG source code using c:User:Rillke/SVGedit.js

    There are no pages that use this file.