Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coupled transmission line CPL unsupported #242

Open
jmhuttun opened this issue Jul 5, 2020 · 0 comments
Open

Coupled transmission line CPL unsupported #242

jmhuttun opened this issue Jul 5, 2020 · 0 comments

Comments

@jmhuttun
Copy link

jmhuttun commented Jul 5, 2020

I try to use the the following netlist:
Vin1 in 0 dc 0 sin(0 1 1000Meg)
R3 iso 0 50
R2 out2 0 50
R1 out1 0 50
P1 in iso 0 out1 out2 0 QH
.model QH CPL length=75.75m C=66p 33p 66p L=165n 82.5n 165n G=0 0 0 R=0 0 0
.tran .001ns 5n
.end

However, when I try to parse the netlist in a cir file using the following commands:
parser = SpiceParser(path=cir_file)

I am getting the following output with errors:
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
Traceback (most recent call last):
File “/Users/huttunen/work/Electronics/NodalAnalysis/Run.py”, line 273, in
main(args)
File “/Users/huttunen/work/Electronics/NodalAnalysis/Run.py”, line 67, in main
parser = SpiceParser(path=args.cir_file)
File “/Users/huttunen/python/miniconda3/envs/spice/lib/python3.7/site-packages/PySpice/Spice/Parser.py”, line 805, in init
self._statements = self._parse(lines)
File “/Users/huttunen/python/miniconda3/envs/spice/lib/python3.7/site-packages/PySpice/Spice/Parser.py”, line 881, in _parse
model = Model(line)
File “/Users/huttunen/python/miniconda3/envs/spice/lib/python3.7/site-packages/PySpice/Spice/Parser.py”, line 281, in init
self._name, self._model_type = parts
ValueError: too many values to unpack (expected 2)

Environment (OS, Python version, PySpice version, simulator)

Mac, Python 3.7, the latest PySpice version (given by "pip install PySpice")

@FabriceSalvaire FabriceSalvaire added this to the v1.5 milestone Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants