Open qrqiuren opened 5 months ago
Just found a quick fix by adding the following function to parse.py
:
def p_traces_empty(p):
"traces : "
p[0] = []
If possible, I will create a merge request. @KenKundert
I added you code to fixed this. The fix is on github.
It seems that after updating to latest spectre, it does not generate a Trace section with only a keyword TRACE
. Instead, the whole section does not show. So I added the following function in parse.py
:
def p_contents_without_trace(p):
"contents : header_section type_section sweep_section value_section end"
p[0] = (p[1], p[2], p[3], None, p[4])
And in line 180 of psf.py
, I temporarily fixed the assertion like this (because this case is not DC simulation):
# assert len(value.values) == 1
if len(value.values) != 1:
break
The example input file: pnoiseMpm0.sample.pnoise.gz
After running sampled pnoise simulation in spectre, one of the generated psf file records jitter event time as in the attachment.
pnoiseMpm0.sample.pnoise.gz
Traceback info:
psf_utils is in version 1.8.0.