Of course. But the real code had a condition on using the expression. This is not essentially different than, for example, needing 5 bits, not 4, to express the number of entries in a 16-entry FIFO. The count can range from 0 to 16.
Shalom
Examine carefully the result for his and your expressions when N=0 (i.e. the input is not to be replaced).
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon May 10 07:45:22 2010
This archive was generated by hypermail 2.1.8 : Mon May 10 2010 - 07:48:03 PDT