nturley / netlistsvg

draws an SVG schematic from a JSON netlist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$_ANDNOT gate is rendered as $_NAND

alexandre-frey opened this issue · comments

The attached JSON defines a single $_ANDNOT gate. But it gets rendered as a NAND gate instead. See attached SVG.
netlistsvg version is: 1.0.2
netlistsvg_andnot_vs_nand.zip

The bug is in the default skin default.svg:

<g s:type="nand" transform="translate(150,100)" s:width="30" s:height="25">
    <s:alias val="$nand"/>
    <s:alias val="$logic_nand"/>
    <s:alias val="$_NAND_"/>
    <s:alias val="$_ANDNOT_"/>

The $_ANDNOT_$ alias is incorrect. When I remove it, it solves the issue.

What is the difference between NAND and AND NOT? Do you have some link about it, or an example of correct representation? NAND is already a and with the NOT a the output, this is not really clear.

@Popolon andnot is an and gate with one of the inputs inverted, see the current skin file:

7873063C-AE65-420D-B3CF-774CDA989591

Thank you very much :) I was unable to found the answer. And nobody known around me, hope it will be a good reference on this point.