nturley / netlistsvg

draws an SVG schematic from a JSON netlist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

isovector opened this issue · comments

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.

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