Open tcal-x opened 2 years ago
The presence of n0
alone is concerning.
Those wires are all unnecessary and should be optimized out, but they should be optimized out within pptrees
. Leaving them in the netlist leads to this kind of unpredictable behavior.
v1.2.0 was released recently, which should permanently eliminate any such bugs. It also eliminates all those assign
statements.
Yosys complained about this (an ERROR in fact) , and it seems to be a real issue.
https://github.com/tdene/adder_networks/blob/main/adders/32bit/hdl/brent-kung.v#L460
Yosys said that tht output
pout
is driving a constant bit (n3654
).n3654
is connected ton0
vian4047
, andn0
is connected to the chain:p_lsb
is thepout
output ofppa_first_pre
, which is 1'b0.Ah, I see that the buffer output is also guaranteed to be 1'b0, since the input to this buffer is driven by another buffer that is driven by
n0
.And in some ways that I run this through Yosys, it doesn't complain, and determines that all these wires are 1'b0. Perhaps it's order dependent.