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.
I expect nmigen to behave more like most other programming languages in that when converting from a smaller RHS type to a larger LHS type, the sign/zero extension is decided based on the RHS. The expected behavior matches what was decided for #464
0xff 0xffff 0xff
Traceback (most recent call last):
File "nmigen-bug.py", line 26, in <module>
sim.run()
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/core.py", line 165, in run
while self.advance():
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/core.py", line 156, in advance
return self._engine.advance()
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/pysim.py", line 315, in advance
self._step()
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/pysim.py", line 304, in _step
process.run()
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/_pycoro.py", line 123, in run
self.coroutine.throw(exn)
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/_pycoro.py", line 64, in run
command = self.coroutine.send(response)
File "/home/jacob/projects/libreriscv/nmigen/nmigen/sim/core.py", line 90, in wrapper
yield from process()
File "nmigen-bug.py", line 23, in process
assert expected == out_v
AssertionError
Expected output:
0xff 0xffff 0xffff
The text was updated successfully, but these errors were encountered:
I'm using nmigen commit 69ed491
I expect nmigen to behave more like most other programming languages in that when converting from a smaller RHS type to a larger LHS type, the sign/zero extension is decided based on the RHS. The expected behavior matches what was decided for #464
Code:
Output:
Expected output:
The text was updated successfully, but these errors were encountered: