- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know the number format used by the Cyclone II, signed arithmetic, 2's complement etc.? Many thanks
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2's complement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks amilcar. Does it verify this somewhere in the documentation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The question doesn't make sense for types that are defined in standard libraries, because Altera can't use a format at will. IEEE VHDL libraries specify explicitely two's complement for SIGNED type. In case of doubt, you can refer to the VHDL standard and the library code.
Consequently, Altera is using the same numeric representation for SIGNED numbers, that are interfaced by an untypified bit vector, as in numeric MegaFunctions: --- Quote Start --- The signed representation for all library of parameterized modules (LPM) megafunctions is two's complement. --- Quote End --- Most users think it's obvious and don't ask about.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks FvM, that never occured to me.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page