updated test_extracted_netlist.sch example
This commit is contained in:
parent
60a6a76ac2
commit
f3f12da486
|
|
@ -3784,14 +3784,14 @@ const char *translate(int inst, const char* s)
|
||||||
if(c == '@' || c == '%') s--;
|
if(c == '@' || c == '%') s--;
|
||||||
else result[result_pos++]=(char)c;
|
else result[result_pos++]=(char)c;
|
||||||
state=TOK_BEGIN;
|
state=TOK_BEGIN;
|
||||||
}
|
} /* else if(state==TOK_SEP) */
|
||||||
else if(state==TOK_BEGIN) result[result_pos++]=(char)c;
|
else if(state==TOK_BEGIN) result[result_pos++]=(char)c;
|
||||||
if(c=='\0')
|
if(c=='\0')
|
||||||
{
|
{
|
||||||
result[result_pos]='\0';
|
result[result_pos]='\0';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} /* while(1) */
|
||||||
dbg(2, "translate(): returning %s\n", result);
|
dbg(2, "translate(): returning %s\n", result);
|
||||||
my_free(_ALLOC_ID_, &token);
|
my_free(_ALLOC_ID_, &token);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,17 @@
|
||||||
v {xschem version=3.0.0 file_version=1.2 }
|
v {xschem version=3.4.0 file_version=1.2
|
||||||
|
}
|
||||||
G {}
|
G {}
|
||||||
K {type=subcircuit
|
K {type=subcircuit
|
||||||
format="@name @pinlist @symname"
|
format="@name @pinlist @symname"
|
||||||
template="name=x1"
|
template="name=x1"
|
||||||
net_name=true
|
net_name=true
|
||||||
}
|
xxxspice_sym_def = "
|
||||||
|
* Ideal amplifier
|
||||||
|
.subckt mos_power_ampli_extracted MINUS PLUS VSS OUT VPP VNN
|
||||||
|
E1 out vss plus minus 10000
|
||||||
|
.ends
|
||||||
|
|
||||||
|
"}
|
||||||
V {}
|
V {}
|
||||||
S {}
|
S {}
|
||||||
E {}
|
E {}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ S {}
|
||||||
E {}
|
E {}
|
||||||
L 7 40 -800 80 -800 {}
|
L 7 40 -800 80 -800 {}
|
||||||
B 2 850 -470 1650 -70 {flags=graph
|
B 2 850 -470 1650 -70 {flags=graph
|
||||||
y1=-50
|
y1=-58.7947
|
||||||
y2=50
|
y2=61.2053
|
||||||
ypos1=0
|
ypos1=0
|
||||||
ypos2=2
|
ypos2=2
|
||||||
divy=5
|
divy=5
|
||||||
|
|
@ -101,12 +101,12 @@ C {code.sym} 20 -190 0 0 {name=STIMULI
|
||||||
only_toplevel=true
|
only_toplevel=true
|
||||||
tclcommand="xschem edit_vi_prop"
|
tclcommand="xschem edit_vi_prop"
|
||||||
value=".include \\"models_poweramp.txt\\"
|
value=".include \\"models_poweramp.txt\\"
|
||||||
.options method=gear savecurrents XMU=0.49 ITL4=100 CHGTOL=1e-15 TRTOL=1 RELTOL=0.0001 VNTOL=0.1u
|
.options method=gear savecurrents ITL4=500 ITL5=50000 CHGTOL=1e-15 TRTOL=1
|
||||||
.control
|
.control
|
||||||
save all
|
save all
|
||||||
* op
|
op
|
||||||
* write test_extracted_netlist.raw
|
write test_extracted_netlist.raw
|
||||||
* set appendwrite
|
set appendwrite
|
||||||
tran 100n 400u
|
tran 100n 400u
|
||||||
* .FOUR 20k v(outm,outp)
|
* .FOUR 20k v(outm,outp)
|
||||||
* .probe i(*)
|
* .probe i(*)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue