S
Stuart Brorson
Guest
Hello --
I have a SPICE file from Analog Devices with the following cards in
it:
*
* Latch Section
*
RX 80 51 100E3
E1 10 98 (4,6) 1
S1 10 11 (80,51) SLATCH1
R2 11 12 1
C3 12 98 5.4E-12
E2 13 98 (12,98) 1
R3 12 13 500
The line "S1 10 11 (80,51) SLATCH1" is causing tclspice-0.2.14 to
barf. I suspect that the problem is that tclspice can't parse the
(80,51) token(s) correctly. I suppose that the writer of the SPICE
file meant to say "S1 10 11 80 51 SLATCH1".
For some reason, tclspice doesn't even blink when it sees similarly
grouped stuff in "E1 10 98 (4,6) 1". I don't know what's up with
that, except that sources and switches are processed in different
parts of the code.
Questions:
1. Are the ( , ) chars just redundant stuff for grouping? Should
SPICE just ignore them?
2. Is it valid SPICE syntax to group things with ( , )? Or does
SPICE strictly demand spaces to separate tokens? What do other
simulators do with similar constructs?
Assuming that ( , ) is valid SPICE syntax, I will just go ahead and
fix tclspice. But I wanted to ask the gurus first, before I started
hacking. . . . .
Stuart
I have a SPICE file from Analog Devices with the following cards in
it:
*
* Latch Section
*
RX 80 51 100E3
E1 10 98 (4,6) 1
S1 10 11 (80,51) SLATCH1
R2 11 12 1
C3 12 98 5.4E-12
E2 13 98 (12,98) 1
R3 12 13 500
The line "S1 10 11 (80,51) SLATCH1" is causing tclspice-0.2.14 to
barf. I suspect that the problem is that tclspice can't parse the
(80,51) token(s) correctly. I suppose that the writer of the SPICE
file meant to say "S1 10 11 80 51 SLATCH1".
For some reason, tclspice doesn't even blink when it sees similarly
grouped stuff in "E1 10 98 (4,6) 1". I don't know what's up with
that, except that sources and switches are processed in different
parts of the code.
Questions:
1. Are the ( , ) chars just redundant stuff for grouping? Should
SPICE just ignore them?
2. Is it valid SPICE syntax to group things with ( , )? Or does
SPICE strictly demand spaces to separate tokens? What do other
simulators do with similar constructs?
Assuming that ( , ) is valid SPICE syntax, I will just go ahead and
fix tclspice. But I wanted to ask the gurus first, before I started
hacking. . . . .
Stuart