Merge pull request #396 from arpadbuermen/master

spectre_format for more symbols.
This commit is contained in:
StefanSchippers 2025-08-30 23:04:21 +02:00 committed by GitHub
commit 90766486d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,9 @@ v {xschem version=3.4.6 file_version=1.2
G {} G {}
K {type=resistor K {type=resistor
format="@name @pinlist 0.01 m=@m" format="@name @pinlist 0.01 m=@m"
spectre_format="@name ( @pinlist ) resistor r=0.01 $mfactor=@m"
spectre_device_model="load \\"resistor.osdi\\"
model resistor resistor"
template="name=R1 m=1"} template="name=R1 m=1"}
V {} V {}
S {} S {}

View File

@ -22,6 +22,7 @@ v {xschem version=3.4.4 file_version=1.2
G {} G {}
K {type=diode K {type=diode
format="@spiceprefix@name @pinlist @model" format="@spiceprefix@name @pinlist @model"
spectre_format="@spiceprefix@name ( @pinlist ) @model"
tedax_format="footprint @name @footprint tedax_format="footprint @name @footprint
value @name @value value @name @value

View File

@ -22,6 +22,9 @@ v {xschem version=3.4.5 file_version=1.2
G {} G {}
K {type=parax_cap K {type=parax_cap
format="@name @pinlist @gnd @value m=@m" format="@name @pinlist @gnd @value m=@m"
spectre_format="@name ( @pinlist @gnd ) capacitor c=@value $mfactor=@m"
spectre_device_model="load \\"capacitor.osdi\\"
model capacitor capacitor"
verilog_ignore=true verilog_ignore=true
template="name=C1 gnd=0 value=4f m=1"} template="name=C1 gnd=0 value=4f m=1"}
V {} V {}

View File

@ -23,6 +23,7 @@ G {}
K {type=poly_resistor K {type=poly_resistor
comment="User must provide a 3-terminal subcircuit for this device" comment="User must provide a 3-terminal subcircuit for this device"
format="@spiceprefix@name @pinlist @model R=@R W=@W L=@L m=@m" format="@spiceprefix@name @pinlist @model R=@R W=@W L=@L m=@m"
spectre_format="@spiceprefix@name ( @pinlist ) @model R=@R W=@W L=@L m=@m"
template="name=R1 template="name=R1
R=1 R=1
W=1 W=1

View File

@ -32,6 +32,9 @@ format="tcleval([
return \{@name @pinlist @value m=@m \} return \{@name @pinlist @value m=@m \}
\} \}
])" ])"
spectre_format="@name ( @pinlist ) resistor r=@value has_noise=@noisy $mfactor=@m"
spectre_device_model="load \\"resistor.osdi\\"
model resistor resistor"
verilog_format="tran @name (@@P\\\\, @@M\\\\);" verilog_format="tran @name (@@P\\\\, @@M\\\\);"
template="name=R1 template="name=R1

View File

@ -21,6 +21,7 @@ v {xschem version=3.4.4 file_version=1.2
} }
G {type=diode G {type=diode
format="@spiceprefix@name @pinlist @model" format="@spiceprefix@name @pinlist @model"
spectre_format="@spiceprefix@name ( @pinlist ) @model"
tedax_format="footprint @name @footprint tedax_format="footprint @name @footprint
value @name @value value @name @value
device @name @device device @name @device