hspice vcr pwl
This is my code.
G11 1 2 VCR PWL(l) s1 0 0V ,10meg 2.5V,1m
G12 3 0 VCR PWL(l) s1 0 0V ,10meg 2.5V,1m
G13 5 0 VCR PWL(l) s1 0 0V ,10meg 2.5V,1m
G14 4 6 VCR PWL(l) s1 0 0V ,10meg 2.5V,1m
G15 7 0 VCR PWL(l) s1 0 0V ,10meg 2.5V,1m
G16 10 0 VCR PWL(l) s1 0 0V ,10meg 2.5V,1m
G21 2 0 VCR PWL(2) s2 0 0V ,10meg 2.5V,1m
G22 5 4 VCR PWL(2) s2 0 0V ,10meg 2.5V,1m
G23 6 0 VCR PWL(2) s2 0 0V ,10meg 2.5V,1m
G24 7 8 VCR PWL(2) s2 0 0V ,10meg 2.5V,1m
G25 10 9 VCR PWL(2) s2 0 0V ,10meg 2.5V,1m
C1 2 3 1p
C2 3 5 1p
C3 3 4 22.523p
C4 6 7 1p
C5 7 10 1p
C6 8 9 22.523p
C7 3 10 1p
E1 0 3 opamp 4 0
E2 0 8 opamp 9 0
vin vi 1 0
vout vo 9 0
vs1 s1 0 pulse (0 2.5 0u 5u 5u 7u 20u)
vs2 s2 0 pulse (0 2.5 10u 5u 5u 7u 20u)
.option acct
.op
.tran 0.1n 20u
.temp 25
.end
This is error.
g11 1 2 vcr pwl(l) s1 0 0v ,10meg 2.5v,1m
**error**: value is missing or is nonpositive
tokin number= 6
g12 3 0 vcr pwl(l) s1 0 0v ,10meg 2.5v,1m
**error**: value is missing or is nonpositive
tokin number= 6
g13 5 0 vcr pwl(l) s1 0 0v ,10meg 2.5v,1m
**error**: value is missing or is nonpositive
tokin number= 6
g14 4 6 vcr pwl(l) s1 0 0v ,10meg 2.5v,1m
**error**: value is missing or is nonpositive
tokin number= 6
g15 7 0 vcr pwl(l) s1 0 0v ,10meg 2.5v,1m
**error**: value is missing or is nonpositive
tokin number= 6
g16 10 0 vcr pwl(l) s1 0 0v ,10meg 2.5v,1m
**error**: value is missing or is nonpositive
tokin number= 6
g21 2 0 vcr pwl(2) s2 0 0v ,10meg 2.5v,1m
**error**: dimension of piecewise linear function must be one
g22 5 4 vcr pwl(2) s2 0 0v ,10meg 2.5v,1m
**error**: dimension of piecewise linear function must be one
g23 6 0 vcr pwl(2) s2 0 0v ,10meg 2.5v,1m
**error**: dimension of piecewise linear function must be one
g24 7 8 vcr pwl(2) s2 0 0v ,10meg 2.5v,1m
**error**: dimension of piecewise linear function must be one
g25 10 9 vcr pwl(2) s2 0 0v ,10meg 2.5v,1m
I don't know what is wrong.
I want to simulation switch capacitor filter by hspice.
how do i do?
thank you