Hi , I am trying to read a LEF file back to klayou...
# klayout
r
Hi , I am trying to read a LEF file back to klayout , but seems error : PS : This is from lef write from magic , after just reading back the released reram gds file Any idea what syntax is wrong ?? VERSION 5.7 ; NOWIREEXTENSIONATPIN ON ; DIVIDERCHAR "/" ; BUSBITCHARS "[]" ; MACRO sky130_fd_pr_reram__reram_cell CLASS BLOCK ; FOREIGN sky130_fd_pr_reram__reram_cell ; ORIGIN 0.160 0.160 ; SIZE 0.320 BY 0.320 ; PIN TE PORT LAYER met2 ; RECT -0.130 0.130 0.130 0.160 ; RECT -0.130 -0.160 0.130 -0.130 ; END END TE PIN BE PORT LAYER met1 ; RECT -0.160 -0.130 0.160 0.130 ; END END BE END sky130_fd_pr_reram__reram_cell END LIBRARY
t
Are you getting an error message from klayout? If so, what is it?
r
Just getting below error
t
merged.lef
is a file that is created by Openlane for its own purposes---it is a combination of the technology LEF file and the LEF macros. If magic wrote LEF from GDS, the LEF file would have the same root name as the GDS file or the cell name.
r
got the hint - and changed the technology to "default" in klayout , and looks like no error in loading . Earlier the tchnology was set to sky130
t
It is most likely that the "sky130" technology for klayout has not been updated to include the ReRAM layers. If you want to muck around with the klayout tech file for sky130 and get it working, I'd be happy to have some help, since it doesn't look like anybody else is doing it.
r
Actually i tried to update the klayout tech file with layer definitions sometime back. Seemed to work. For eg , if i load the released GDS , the klayout is able to recognize the layers. The LEF file doesnt have the reram layer RECT definitions ( now i am not sure whether it should have or not). Let me attach the layer definition file i updated.
t
Generally speaking, a LEF file is only going to contain metal layers and obstruction for metal layers. Something like a ReRAM device (or MiM cap, etc.) wouldn't normally show up in a LEF macro.
r
Agreed . makes sense