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

Shorted outputs don't work in the presence of split nodes #110

Open
isovector opened this issue Jul 9, 2021 · 1 comment
Open

Shorted outputs don't work in the presence of split nodes #110

isovector opened this issue Jul 9, 2021 · 1 comment
Labels

Comments

@isovector
Copy link

In the following netlist, A and B0 both should be connected to the output:

{"modules":{"module":{"ports":{"A":{"direction":"input","bits":[0]},"B":{"direction":"input","bits":[0,1]},"Y":{"direction":"output","bits":[0]}},"cells":{}}}}

but they are not! Instead, B is floating:

2021-07-08-172919_180x148_scrot

A more correct rendering would be something like this:

correct


Interestingly removing the second wire from B properly connects everything:

{"modules":{"module":{"ports":{"A":{"direction":"input","bits":[0]},"B":{"direction":"input","bits":[0]},"Y":{"direction":"output","bits":[0]}},"cells":{}}}}

2021-07-08-172944_182x184_scrot

Thus, this appears to be a bug at the intersection of split nodes and shorts.

@nturley
Copy link
Owner

nturley commented Jul 9, 2021

Good catch! When I added hyper edge support I did not consider splits and joins and vice versa.

@nturley nturley added the bug label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants