set tab/window title if xschem invoked with `xschem -n file.sch`. fix poweramp.sch testbench for Xyce sim.

This commit is contained in:
stefan schippers 2024-01-11 08:19:25 +01:00
parent a7f1b2a5f1
commit ac04ce5c55
6 changed files with 2387 additions and 2312 deletions

View File

@ -868,6 +868,12 @@
<Component Id="cmp0A38E2FC1C828C9008B61E8F3719ECCC" Guid="{02F8FAE5-B646-4FA1-9D0F-87FB3B1D2B71}">
<File Id="fil613E0E9D05EBA27B050044509EAA87EE" KeyPath="yes" Source="$(var.docSrcDir)\xschem_man\tutorial_use_existing_subckt07.png" />
</Component>
<Component Id="cmp32B0CA60A5FB00569F758EAA9081F26C" Guid="{5032E569-D31C-4BE7-9435-807E9832C5C5}">
<File Id="fil21156D26CC781506C3F2ECC0E7F114E4" KeyPath="yes" Source="$(var.docSrcDir)\xschem_man\tutorial_use_existing_subckt08.png" />
</Component>
<Component Id="cmpB349F3F3BB0FC366E3CBDB36997A2C68" Guid="{38573959-0B82-48CF-8CB0-1140FCF201A9}">
<File Id="filE6B14BFA8DA4D8B849B6D4677CD65104" KeyPath="yes" Source="$(var.docSrcDir)\xschem_man\tutorial_use_existing_subckt09.png" />
</Component>
<Component Id="cmp1887EC93042A8F0C854E00EEC32380FD" Guid="{5E9AABDE-119F-42B5-A70C-6CE4DF95383F}">
<File Id="filD8D64C42C0EC471FA21B778DAE92DF5D" KeyPath="yes" Source="$(var.docSrcDir)\xschem_man\tutorial_xschem_libraries.html" />
</Component>
@ -1410,6 +1416,8 @@
<ComponentRef Id="cmp8CB8AE85C605D9520D284D02A40D7A0E" />
<ComponentRef Id="cmp641101E8D1E9AEADC4198F95BA7BD96F" />
<ComponentRef Id="cmp0A38E2FC1C828C9008B61E8F3719ECCC" />
<ComponentRef Id="cmp32B0CA60A5FB00569F758EAA9081F26C" />
<ComponentRef Id="cmpB349F3F3BB0FC366E3CBDB36997A2C68" />
<ComponentRef Id="cmp1887EC93042A8F0C854E00EEC32380FD" />
<ComponentRef Id="cmpF79E68A44B6D276CD4FD94243C7638EB" />
<ComponentRef Id="cmp789D1388A55CE9AADEAAE762DC494821" />

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -602,6 +602,27 @@
<Component Id="cmp577B194A8B435CC56C0C87F0CC411CBF" Guid="{33EC0CE8-3EAA-48AB-B603-1886279A5AFE}">
<File Id="filE0CEB8D622ED64D099ACE9E1BEDD2F94" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\switch_rreal.sym" />
</Component>
<Component Id="cmpAC417054A34B278AF48BE51B20FE88B3" Guid="{3DB7EAE3-30F5-49CC-9186-04831B891250}">
<File Id="fil0C55EEE50124AC6C7381B57482E93745" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\symbol_include.cir" />
</Component>
<Component Id="cmp741741C1862E1D0B693AF2C0002D96F7" Guid="{CA12B3B1-D828-413F-AC9C-DDE1C9994CB4}">
<File Id="filF5381F5087C81A8902C7F08BD92D295F" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\symbol_include.sch" />
</Component>
<Component Id="cmp3236FC8ED918A4ED02A34F430DE91E68" Guid="{FEE5B5DF-A20F-4C64-AD9E-21B3EC2471E0}">
<File Id="fil887E2384312925F3AB14947D4B49DC82" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\symbol_include.sym" />
</Component>
<Component Id="cmp4A2AF395F8EB02E99ED04D4298201E9F" Guid="{193146A7-8E23-4C47-9099-7B653332B59A}">
<File Id="filF5015E7C6611837CD1ADA62381E34CE7" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\symbol_include2.cir" />
</Component>
<Component Id="cmpBB4C1B1060604D039E707F46CC40CEE1" Guid="{3C118AB8-7262-456B-809D-0472151B8056}">
<File Id="fil22910D3BD270EEC9B4E034953005ABBC" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\symbol_include2.sch" />
</Component>
<Component Id="cmp45303D34449CB7DAB054313E9529F45E" Guid="{A853505D-26B8-4AC5-8254-231F7C54176A}">
<File Id="fil25E6662B8E66993537C1DCB1CB616D80" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\tb_symbol_include.sch" />
</Component>
<Component Id="cmpE9908181C719798C9D4139FFCDC31E39" Guid="{C5FFF0BF-9F6B-45FA-94DB-6FC70269AF49}">
<File Id="fil27412765027CF4C420804A0E5356947E" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\tb_symbol_include.sym" />
</Component>
<Component Id="cmp109FD1AC951E122096B4283D61126ACE" Guid="{0B764057-865A-4BF8-975D-522F5B8A3D3C}">
<File Id="fil3064C202E546C137D1E86FC2753AD2E0" KeyPath="yes" Source="$(var.xschemLibrarySrcDir)\examples\tesla.sch" />
</Component>
@ -5747,6 +5768,13 @@
<ComponentRef Id="cmpA093D166017998214F24C758CEFBB096" />
<ComponentRef Id="cmp5CB70B5DBA3440F6171177580DE99A7B" />
<ComponentRef Id="cmp577B194A8B435CC56C0C87F0CC411CBF" />
<ComponentRef Id="cmpAC417054A34B278AF48BE51B20FE88B3" />
<ComponentRef Id="cmp741741C1862E1D0B693AF2C0002D96F7" />
<ComponentRef Id="cmp3236FC8ED918A4ED02A34F430DE91E68" />
<ComponentRef Id="cmp4A2AF395F8EB02E99ED04D4298201E9F" />
<ComponentRef Id="cmpBB4C1B1060604D039E707F46CC40CEE1" />
<ComponentRef Id="cmp45303D34449CB7DAB054313E9529F45E" />
<ComponentRef Id="cmpE9908181C719798C9D4139FFCDC31E39" />
<ComponentRef Id="cmp109FD1AC951E122096B4283D61126ACE" />
<ComponentRef Id="cmp3E41B7713E7565A81161E653571D1F86" />
<ComponentRef Id="cmp248A8C6FE2560437AAA699CCCD08B2F9" />

View File

@ -2781,6 +2781,7 @@ int Tcl_AppInit(Tcl_Interp *inter)
to tcl is_xschem_file that could change xctx->netlist_type to symbol */
if(cli_opt_do_netlist) tcleval("simuldir");
load_schematic(1, f, !cli_opt_do_netlist, 1);
if(cli_opt_do_netlist) set_modify(-1); /* set tab/window title */
tclvareval("update_recent_file {", f, "}", NULL);
} else /* if(!cli_opt_tcl_script[0]) */
{
@ -2796,6 +2797,7 @@ int Tcl_AppInit(Tcl_Interp *inter)
to tcl is_xschem_file that could change xctx->netlist_type to symbol */
if(cli_opt_do_netlist) tcleval("simuldir");
load_schematic(1, fname, !cli_opt_do_netlist, 1);
if(cli_opt_do_netlist) set_modify(-1); /* set tab/window title */
}
/* Necessary to tell xschem the initial area to display */
zoom_full(0, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97);

View File

@ -184,10 +184,12 @@ N 220 -1050 230 -1050 {lab=#net2}
N 60 -1130 230 -1130 {lab=#net3}
N 950 -1200 1020 -1200 {
lab=IN}
C {vsource.sym} 60 -1160 0 0 {name=V1 value="dc VPP
+ pwl 0 0 1m VPP"}
C {vsource.sym} 60 -1100 0 0 {name=V0 value="dc VPP
+ pwl 0 0 1m VPP"}
C {vsource.sym} 60 -1160 0 0 {name=V1 value="dc 'VPP'
+ pwl 0 0 1m 'VPP'"
}
C {vsource.sym} 60 -1100 0 0 {name=V0 value="dc 'VPP'
+ pwl 0 0 1m 'VPP'"
}
C {lab_pin.sym} 360 -1210 0 1 {name=p5 lab=VPP}
C {lab_pin.sym} 360 -1050 0 1 {name=p6 lab=VNN}
C {lab_pin.sym} 360 -1130 0 1 {name=p3 lab=VSS}
@ -362,10 +364,9 @@ C {simulator_commands.sym} 1020 -870 0 0 {name=COMMANDS1
simulator=xyce
only_toplevel=false
value="
.option ITL4=20000 ITL5=0
vvss vss 0 dc 0
.temp 30
.param VPP=50
.param frequ=5k
.param gain=45