vaughnbetz / COFFE

38 stars 25 forks source link

Wrong simulation for connection block #18

Closed MohamedEldafrawy closed 6 years ago

MohamedEldafrawy commented 6 years ago

https://github.com/vaughnbetz/COFFE/blob/7b407abe9fbbfa5ec5afa4b39aca344af62433ef/coffe/top_level.py#L129-L137

In the code snippet shown above, the top spice file that simulates the connection block is actually simulating the switch block. Normally the multiplexers in the connection block are larger than the multiplexers in the switch block. That's why this bug leads to underestimating the delay of the connection block. Unless there is a clear reasoning for this, it should be changes to cb_mux_on instead of sb_mux_on.

sadegh68 commented 6 years ago

The "sb_mux_on" in the code snippet is not the circuit being evaluated. It is part of the context for "routing_wire_load" (it includes a cb mux) which is being evaluated.

Therefore this is not a bug. Please file such issues under "help wanted" or "question".

MohamedEldafrawy commented 6 years ago

That's true thanks for the clarification.