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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...