Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16644 Discussions

Cyclone II Output Number Format?

Altera_Forum
Honored Contributor II
1,613 Views

Does anyone know the number format used by the Cyclone II, signed arithmetic, 2's complement etc.? Many thanks

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
645 Views

2's complement

0 Kudos
Altera_Forum
Honored Contributor II
645 Views

Thanks amilcar. Does it verify this somewhere in the documentation?

0 Kudos
Altera_Forum
Honored Contributor II
645 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
645 Views

Thanks FvM, that never occured to me.

0 Kudos
Reply