Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

Cyclone II Output Number Format?

Altera_Forum
Honored Contributor II
1,857 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
889 Views

2's complement

0 Kudos
Altera_Forum
Honored Contributor II
889 Views

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

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

Thanks FvM, that never occured to me.

0 Kudos
Reply