Re: [myhdl-list] fixed-point thoughts : part two
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2013-09-11 20:11:26
|
On 09/05/2013 05:28 AM, Christopher Felton wrote: > It is assumed the /fixbv/ operations will actually return an > /int/ same as /intbv/ operations > > >>> x1 = fixbv(2.5,min=-8,max=8,res=1/16.) > >>> x2 = fixbv(1.25,min=-8,max=8,res=1/16.) > >>> x1 + x2 > 15 > > When assigned to another /fixbv/ the value will fit in the > format of the accepting object. No, I don't think that can be right. The equivalent for fixbv would be to return a "fix" :-) Like intbv, fixbv would be a "number with bit-level features", but the actual value of that number should always be as expected. Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com World-class digital design: http://www.easics.com |