[myhdl-list] Wraparound addition?
Brought to you by:
jandecaluwe
From: Andrew L. <bs...@al...> - 2008-08-10 21:55:37
|
How do I add two unsigned intbv() objects such that the addition wraps around? Obviously, I can do the addition and then mask it and reassign like so: new = (old0 + old1) & 0xffff However, I doubt that is going to translate to verilog properly. -a |