Jump to content
bennymao

Fixed-Point Formats in SystemC

Recommended Posts

Page-20 of "SystemC 2.0.1 Language Reference Manual Revision 1.0", "Index 6" of "Table 2. Examples of Fixed-Point Formats"

(1) For "range signed"
It says [-0.125, 0.109375].
But I think the range should be [-0.125, 0.1171875], because the minimum data is ".1110000" and the maximum one is ".0001111".

(2) For "range unsiged"
It says [0, 0.234375].
But I think the range shoulde be [0, 0.2421875], because the minimum data is ".0000000" and the maximum one is ".0011111".

Whether my understanding is correct?
Can anybody give me help?
Thanks in advanced.
 

post-11345-0-13182800-1380802812_thumb.jpg

Share this post


Link to post
Share on other sites

The 2.0.1 LRM is very old.  SystemC became an IEEE standard in the meantime, and luckily the same example is now part of the IEEE Std. 1666-2011 (see 7.10.1, Table 32).  The ranges mentioned there match the ones you were expecting.

 

Greetings from Oldenburg,
  Philipp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×