Closed smunaut closed 3 days ago
clang-tidy review says "All clean, LGTM! :+1:"
Please add a unit test that demonstrates this use case.
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
I don't see a full test, just
If no ok needs updating it means this change has no effect on any test.
@maliberty Yes, I changed the input file so that it now triggers the bad behavior. With the new input file and without the code change the resulting CDL would be invalid and not match the ok
golden file. With the code fix applied, it generates the same correct netlist as before.
clang-tidy review says "All clean, LGTM! :+1:"
ATM the code seem to assume that for each top level pin, the net name is equal to the pin name.
That's not always the case and this produces an incorect netlist.
To solve that, during pin name enumeration when creating the subckt line, we create a mapping from "net name" -> "pin name" for each pin connected to a net of a different name. Then when outputting the connections between sub blocks, we use the pin name instead of the DB net name.