Nelson Rodriguez
11/11/2022, 2:09 AMTraceback (most recent call last):
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/tutorial2.py", line 28, in <module>
analysis = simulator.operating_point()
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/lib/python3.10/site-packages/PySpice/Spice/Simulation.py", line 1194, in operating_point
return self._run('operating_point', *args, **kwargs)
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/lib/python3.10/site-packages/PySpice/Spice/NgSpice/Simulation.py", line 76, in _run
raw_file = self._spice_server(spice_input=str(self))
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/lib/python3.10/site-packages/PySpice/Spice/NgSpice/Server.py", line 162, in __call__
return RawFile(stdout, number_of_points)
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/lib/python3.10/site-packages/PySpice/Spice/NgSpice/RawFile.py", line 170, in __init__
raw_data = self._read_header(stdout)
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/lib/python3.10/site-packages/PySpice/Spice/NgSpice/RawFile.py", line 192, in _read_header
self.circuit_name = self._read_header_field_line(header_line_iterator, 'Circuit')
File "/home/nelson/myreps/obsidian-vault/PRACTICE/PYSPICE/pyspice-engineeringthings/tutorial/lib/python3.10/site-packages/PySpice/Spice/RawFile.py", line 243, in _read_header_field_line
raise NameError("Expected label %s instead of %s" % (expected_label, label))
NameError: Expected label Circuit instead of Note
The error may come because my executable path of ngspice is /home/nelson/cad/bin/ngspice
and I tried to modify it according to this doc part but nothing:
simulator = circuit.simulator(temperature=25, nominal_temperature=25, spice_command='/home/nelson/cad/bin/ngspice')
Could anyone help me with that?
@proppy maybe could you give me some ideas about it?proppy
11/11/2022, 2:49 AMproppy
11/11/2022, 2:50 AMNelson Rodriguez
11/11/2022, 2:57 AManalysis = simulator.operating_point()
there all error I mentioned appear.Nelson Rodriguez
11/11/2022, 3:01 AMvenv
then I installed PySpice thereproppy
11/11/2022, 4:38 AMproppy
11/11/2022, 4:38 AMproppy
11/11/2022, 4:41 AMoperating_point
here https://colab.research.google.com/gist/proppy/94429878c7c9c60e60f499f7368e17b1/sky130-pyspice-playground.ipynb#scrollTo=B1aot5xFfbamproppy
11/11/2022, 4:42 AMNelson Rodriguez
11/22/2022, 1:51 AMNelson Rodriguez
11/22/2022, 3:31 AMproppy
11/22/2022, 10:08 AMPDK_ROOT
Nelson Rodriguez
11/23/2022, 3:49 AMproppy
11/24/2022, 4:08 PMNelson Rodriguez
11/24/2022, 11:17 PM/home/nelson/cad/share/pdk/sky130A/libs.tech/ngspice
which is where I installed my pdk using open_pdks
scriptNelson Rodriguez
11/25/2022, 8:36 PMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by