Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$_ANDNOT gate is rendered as $_NAND #128

Open
alexandre-frey opened this issue Jan 4, 2023 · 4 comments
Open

$_ANDNOT gate is rendered as $_NAND #128

alexandre-frey opened this issue Jan 4, 2023 · 4 comments

Comments

@alexandre-frey
Copy link

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

@alexandre-frey
Copy link
Author

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.

@Popolon
Copy link

Popolon commented Feb 19, 2023

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.

@nobodywasishere
Copy link
Contributor

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

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

@Popolon
Copy link

Popolon commented Feb 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants