Hi All, When I use klayout to open def file with l...
# klayout
m
Hi All, When I use klayout to open def file with lef file, I find it cannot displayed the lef cell information correctly. Do you know how to fix this issue? @User
@Matthew Guthaus do you know if this is possible?
m
@mehdi I was in some discussions with Matthias about this. There is a flag in the LEF file that prevents it from happening and they were updating in newer versions of klayout. If I recall, it was the "FOREIGN" statements in the lef.
He added this option:
LEF import to DEF "Always"
but it still isn't useful on the command line ๐Ÿ˜ž
m
Sounds good, thanks a lot!
d
@User Mathias helped me make this when I needed it, maybe it could be of some use to you as well: https://github.com/Cloud-V/DFFRAM/blob/main/scripts/klayout/open.py
๐Ÿ‘ 1
it takes inputs as environment variables which is not ideal, but im not sure if i can somehow pass argv to a klayout script (also its not under construction please ignore that part)
m
@donn you use -rd to provide script args
m
@Ming Hung Chen have you tried this?
m
@mehdi @Matthew Guthaus Thanks! It works.
m
I was able to script this with two scripts. A bash wrapper and a klayout python macro. Just run "defread.sh <def> <lef>"
defread.sh,defread.py
You can't pass args to @donn's script since it is a shebang execution. So the wrapper does the arguments.
m
Thanks for sharing files!
m
Actually, an update that will also look for LEF files in the same dir as the def if none are specified. klayout -rd def_file=foo.def -rm defread.py can run it directly.
๐Ÿ™Œ 1