Hello everyone, I'm learning how to use
PySpice to simulate circuits using the PDK sky130, but first I'm just starting with this
doc example. The issue is that I'm getting following errors and I don't know why.
Traceback (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?