From 0e85b67e961ba39477197334eedb4410c4327de3 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 1 Sep 2025 11:59:35 +0200 Subject: [PATCH] update filesource.sym (no need to specify model, generated automatically from @name) --- xschem_library/devices/filesource.sym | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xschem_library/devices/filesource.sym b/xschem_library/devices/filesource.sym index c22520ce..d87f2f12 100644 --- a/xschem_library/devices/filesource.sym +++ b/xschem_library/devices/filesource.sym @@ -21,11 +21,10 @@ v {xschem version=3.4.8RC file_version=1.3 } G {} K {type=vsource -format="@name \\\\%v([ @@p ]) @model -.model @model filesource file=\\"@file\\\\\\" amploffset=[ @amploffset ] amplscale=[ @amplscale ]" - -template="name=A1 file=filesource.txt model=filesrc amploffset=0 amplscale=1" +format="@name \\\\%v([ @@p ]) #filesrc#@name +.model #filesrc#@name filesource file=\\"@file\\\\\\" amploffset=[ @amploffset ] amplscale=[ @amplscale ]" +template="name=A1 file=filesource.txt amploffset=0 amplscale=1" *spectre_format="@name ( @pinlist ) vsource @value" *spectre_device_model="model vsource vsource"} V {} @@ -39,7 +38,7 @@ B 5 -2.5 -32.5 2.5 -27.5 {name=p dir=inout} B 5 -2.5 27.5 2.5 32.5 {name=m dir=inout} A 4 0 0 15 270 360 {} T {@name} 20 -18.75 0 0 0.2 0.2 {} -T {@model -@file} 20 -3.75 0 0 0.2 0.2 {} +T {@symname +@file} 20 -6.25 0 0 0.2 0.2 {} T {@#0:net_name} 10 -28.75 0 0 0.15 0.15 {layer=15 hide=instance} T {@#1:net_name} 10 20 0 0 0.15 0.15 {layer=15 hide=instance}