magical-eda / MAGICAL

Machine Generated Analog IC Layout
BSD 3-Clause "New" or "Revised" License
212 stars 50 forks source link

Failure at device generator. #25

Closed krzhu closed 4 years ago

krzhu commented 4 years ago

How to reproduce: git reset --hard af681f4d961298395d091410e5f43fbeeb6cec27

Add import os to PnR.py and Router.py.

The flow somehow still fails when reading in GDS files for placer. Highly possible because of Device generator?

krzhu commented 4 years ago

In https://github.com/magical-eda/MAGICAL/blob/0796bcd83484916ebe3399cfef814fb93135abdf/flow/cpp/magical_flow/src/parser/ParseGDS.h#L60, the GDS parser will strictly check the layer ID read from GDS with what database is knowing of.

So if the layer ID is inconsistent between device generator, Magical Flow and routing, the flow will fails.

Hotfix: use consistent layer ID in device generator. Long term goal: have a better way to broadcast layer ID to each components.