Re: [myhdl-list] intbv with min -1, max 1 has 2 bits?
Brought to you by:
jandecaluwe
|
From: Jan D. <ja...@ja...> - 2008-06-17 21:57:27
|
Günter Dannoritzer wrote: > Jan Decaluwe wrote: >> >>2) why not a 1 bit signed intbv >>That seems to be a bug. The one bit can function as a sign bit in >>this (corner) case. I guess the test should really be: >> >> ... >> elif max <= 1: # not 0 >> _nrbits = len(bin(min)) >> ... I have implemented this fix and pushed it to the public repository. -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Kaboutermansstraat 97, B-3000 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |