has_included_subcircuit(): use lowercase symname to check with lowercase spice_sym_def included netlist to avoid case mismatches (spice is case-insesitive)
This commit is contained in:
parent
5e96c84992
commit
bcd4e9367b
|
|
@ -1836,6 +1836,7 @@ static int has_included_subcircuit(int inst, int symbol, char **result)
|
|||
if(!symname[0]) {
|
||||
my_strdup2(_ALLOC_ID_, &symname, xctx->sym[symbol].name);
|
||||
}
|
||||
strtolower(symname);
|
||||
tclvareval("has_included_subcircuit {", get_cell(symname, 0), "} {",
|
||||
spice_sym_def, "}", NULL);
|
||||
my_free(_ALLOC_ID_, &symname);
|
||||
|
|
|
|||
|
|
@ -10,13 +10,6 @@ the symbol to see the
|
|||
symbol_include.cir file} 290 -130 0 0 0.3 0.3 {}
|
||||
T {Example of symbol with associated spice .subckt file.
|
||||
The pin order will be taken from the spice file.} 10 -380 0 0 0.4 0.4 {}
|
||||
C {symbol_include.sym} 410 -190 0 0 {name=x1
|
||||
tclcommand="textwindow [xschem get current_dirname]/symbol_include.cir"
|
||||
|
||||
comm="following instance attributes (now 'x' commented) specify an alternate
|
||||
symbol reference to use in netlist"
|
||||
xspice_sym_def=".include symbol_include2.cir"
|
||||
xschematic="symbol_include2.sch"}
|
||||
C {lab_pin.sym} 260 -230 0 0 {name=p1 lab=XA[9:7]}
|
||||
C {lab_pin.sym} 260 -210 0 0 {name=p2 lab=XB}
|
||||
C {lab_pin.sym} 260 -190 0 0 {name=p3 lab=XC}
|
||||
|
|
@ -31,3 +24,10 @@ C {ipin.sym} 80 -130 0 0 { name=p11 lab=XB }
|
|||
C {ipin.sym} 80 -150 0 0 { name=p12 lab=XA[9:7]}
|
||||
C {lab_pin.sym} 560 -210 0 1 {name=p13 lab=XY[7:4]}
|
||||
C {opin.sym} 120 -90 0 0 { name=p14 lab=XZ }
|
||||
C {SYMBOL_include.sym} 410 -190 0 0 {name=x2
|
||||
tclcommand="textwindow [xschem get current_dirname]/symbol_include.cir"
|
||||
|
||||
comm="following instance attributes (now 'x' commented) specify an alternate
|
||||
symbol reference to use in netlist"
|
||||
xspice_sym_def=".include symbol_include2.cir"
|
||||
xschematic="symbol_include2.sch"}
|
||||
|
|
|
|||
Loading…
Reference in New Issue