mirror of https://github.com/KLayout/klayout.git
Enabling special mode (hidden) for generating diodes for soft connections
This commit is contained in:
parent
c04d468c55
commit
6f48893cdb
|
|
@ -2352,8 +2352,10 @@ CODE
|
||||||
top_level
|
top_level
|
||||||
ignore_extraction_errors
|
ignore_extraction_errors
|
||||||
extract_devices
|
extract_devices
|
||||||
l2n_data
|
|
||||||
netlist
|
netlist
|
||||||
|
l2n_data
|
||||||
|
_l2n_object
|
||||||
|
_make_soft_connection_diodes
|
||||||
).each do |f|
|
).each do |f|
|
||||||
eval <<"CODE"
|
eval <<"CODE"
|
||||||
def #{f}(*args)
|
def #{f}(*args)
|
||||||
|
|
|
||||||
|
|
@ -753,6 +753,14 @@ module DRC
|
||||||
@l2n && @l2n.is_extracted? && self.l2n_data
|
@l2n && @l2n.is_extracted? && self.l2n_data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def _l2n_object
|
||||||
|
@l2n
|
||||||
|
end
|
||||||
|
|
||||||
|
def _make_soft_connection_diodes(f)
|
||||||
|
@l2n.make_soft_connection_diodes = f
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def cleanup
|
def cleanup
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue