Go Back

Source code

Details

Name: fixed_extensions
Created: Sep 9, 2011
Updated: Feb 20, 2014
SVN Updated: Feb 20, 2014

Other project properties

Category: Library
Language: VHDL
Development status: Beta
Additional info:
WishBone Compliant: No
License: LGPL

Description

fixed_extensions_pkg is a fixed-point arithmetic package written in VHDL
according to the VHDL-2008 update of the standard. It uses VHDL-2008 back-
compatible libraries (by David Bishop) that are included in this distribution
for the sake of completeness.
Currently, the "fixed_extensions_pkg" package implements the following:
-ceil:
round towards plus infinity.
-fix:
round towards zero.
-floor:
round towards minus infinity.
-round:
round to nearest; ties to greatest absolute value.
-nearest:
round to nearest; ties to plus infinity.
-convergent:
round to nearest; ties to closest even.
-bitinsert:
bit-field insertion to word
-bitextract:
bit-field extraction from word
fixed_extensions is distributed along with a tool (gentestround) to generate
customized VHDL test designs.