mirror of https://github.com/KLayout/klayout.git
Updated 2019 02 01 (markdown)
parent
ff4e931f3e
commit
71e86fd7fa
|
|
@ -15,10 +15,9 @@ class MySPICEWriterDelegate < RBA::NetlistSpiceWriterDelegate
|
|||
def write_device_intro(cls)
|
||||
# this method will be called for every device class
|
||||
if cls.name == "NMOS" || cls.name == "PMOS"
|
||||
emit_line(".SUBCKT " + cls.name)
|
||||
emit_line(".SUBCKT s d g b " + cls.name)
|
||||
# ... provide definitions for equivalent circuit
|
||||
emit_line(".ENDS")
|
||||
emit_line("*** Put any model declarations here ***")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue