[myhdl-list] intbv addition
Brought to you by:
jandecaluwe
From: Sami Al D. <sam...@gm...> - 2009-06-06 15:24:26
|
Hi, I was experimenting with intbv(), and I found out for example if you have a=intbv(3)[2:] b=intbv(1)[2:] c=a+b the sum (c) is not 'intbv' class, its 'long' if I'm not mistaken. How can we get the sum to be 'intbv' of the same bitwidth (in this case 2)? -- Best Regards Sami Aldalahmeh |