You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to print samples with AsyncSerialILAFrontend, the following error is seen:
>>> ila.print_samples()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Harry\.pyenv\pyenv-win\versions\3.9.0\lib\site-packages\luna\gateware\debug\ila.py", line 831, in print_samples
for timestamp, sample in self.enumerate_samples():
File "C:\Users\Harry\.pyenv\pyenv-win\versions\3.9.0\lib\site-packages\luna\gateware\debug\ila.py", line 816, in enumerate_samples
self.refresh()
File "C:\Users\Harry\.pyenv\pyenv-win\versions\3.9.0\lib\site-packages\luna\gateware\debug\ila.py", line 808, in refresh
self.samples = self._parse_samples(self._read_samples())
File "C:\Users\Harry\.pyenv\pyenv-win\versions\3.9.0\lib\site-packages\luna\gateware\debug\ila.py", line 803, in _parse_samples
return [self._parse_sample(sample) for sample in raw_samples]
File "C:\Users\Harry\.pyenv\pyenv-win\versions\3.9.0\lib\site-packages\luna\gateware\debug\ila.py", line 803, in <listcomp>
return [self._parse_sample(sample) for sample in raw_samples]
File "C:\Users\Harry\.pyenv\pyenv-win\versions\3.9.0\lib\site-packages\luna\gateware\debug\ila.py", line 796, in _parse_sample
sample[signal.name] = signal_bits
AttributeError: 'Slice' object has no attribute 'name'
I'm content if the answer is "user should Cat()" but this seems like a slightly non-obvious behaviour, and potentially the AsyncSerialILA could Cat() the signals itself. (Notably, just assigning the slice to it's signal and passing that as the signal to sample doesn't fix this: it has to be concatenated to be a Signal not a Slice)
The text was updated successfully, but these errors were encountered:
For example: capturing the lower 8 bits of a counter:
When trying to print samples with AsyncSerialILAFrontend, the following error is seen:
This can be fixed by doing
I'm content if the answer is "user should Cat()" but this seems like a slightly non-obvious behaviour, and potentially the AsyncSerialILA could Cat() the signals itself. (Notably, just assigning the slice to it's signal and passing that as the signal to sample doesn't fix this: it has to be concatenated to be a Signal not a Slice)
The text was updated successfully, but these errors were encountered: