Using VHDL2008 fixed point package in Sigasi
The IEEE VHDL 2008 fixed point package is currently not included in the Common Libraries of Sigasi (VHDL 2008) projects. The reason why they are not included is that we currently do not support the VHDL 2008 generic constants for package declarations yet.
You can work around this issue by replacing the generic constants with normal constants for now:
- unzip the generic fixed point package from the Sigasi installation:
unzip plugins/com.sigasi.hdt.readonlyfilesystem_2.11.0.201301161805.jar vhdl/2008/IEEE/fixed_generic_pkg.vhdl - rename
fixed_generic_pkg.vhdltofixed_pkg.vhdland replace:
with:package fixed_generic_pkg is
generic (
-- Rounding routine to use in fixed point, fixed_round or fixed_truncate
FIXED_ROUND_STYLE : fixed_round_style_type := FIXED_ROUND;
-- Overflow routine to use in fixed point, fixed_saturate or fixed_wrap
FIXED_OVERFLOW_STYLE : fixed_overflow_style_type := FIXED_SATURATE;
-- Extra bits used in divide routines
FIXED_GUARD_BITS : natural := 3;
-- If TRUE, then turn off warnings on "X" propagation
NO_WARNING : boolean := false
);
package fixed_pkg is
constant FIXED_ROUND_STYLE : fixed_round_style_type := FIXED_ROUND;
-- Overflow routine to use in fixed point, fixed_saturate or fixed_wrap
constant FIXED_OVERFLOW_STYLE : fixed_overflow_style_type := FIXED_SATURATE;
-- Extra bits used in divide routines
constant FIXED_GUARD_BITS : natural := 3;
-- If TRUE, then turn off warnings on "X" propagation
constant NO_WARNING : boolean := false; - Remove or correct the package end name on the last line.
- Add this file to your project and map it to
ieee