Arturo, > The fix would be simple, first add a clarification that > $clog2 does not return the width needed to store a number. I have no problem with that. > This could be followed by an enhancement to add a function > that computes this value. While that could be done, but the clarification could also point out that $clog2(N+1) does the job, assuming N to be unsigned. The clarification could also point out that overflow could occur if N has 32 or more bits, in which case Steven's version, $clog2({1'b0,N}+1), solves that as well. I'll add a Mantis. Shalom -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Jan 24 02:18:53 2008
This archive was generated by hypermail 2.1.8 : Thu Jan 24 2008 - 02:19:29 PST