In reply to dave_59:
In reply to jianfeng.he:
I believe you many want to use type(tr) instead of tr.get_type(). But you need to show more examples of the flexibility you are looking for.
Yes, I tried type(tr) before, but it didn’t work as expected. The flexibility is that the type of drv can be determined by the type of tr I pass, code like this: Edit code - EDA Playground