UCSBarchlab / PyRTL

A collection of classes providing simple hardware specification, simulation, tracing, and testing suitable for teaching and research. Simplicity, usability, clarity, and extensibility are the overarching goals, rather than performance or optimization.
http://ucsbarchlab.github.io/PyRTL
BSD 3-Clause "New" or "Revised" License
253 stars 76 forks source link

Right shift operation semantics difference #443

Open timsherwood opened 4 months ago

timsherwood commented 4 months ago

Jose Renau at UCSC pointed out that PyRTL right shift semantics are different that the verilog right shift operations. It is unclear if we should follow verilog semantics, but we should be make such a decision purposefully. If we want to keep the semantics as they are now we should clearly document that it is different and double check that the verilog generation is correct.