URL
https://opencores.org/ocsvn/fixed_extensions/fixed_extensions/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
kavi |
-- File automatically generated by "cdfg2hdl".
|
2 |
|
|
-- Filename: fixed_float_types_custom.vhd
|
3 |
|
|
-- Date: 29 April 2011 05:52:35 PM
|
4 |
|
|
-- Author: Nikolaos Kavvadias (C) 2009, 2010, 2011
|
5 |
|
|
|
6 |
|
|
package fixed_float_types is
|
7 |
|
|
-- Types used for generics of fixed_generic_pkg
|
8 |
|
|
type fixed_round_style_type is (fixed_round, fixed_truncate);
|
9 |
|
|
type fixed_overflow_style_type is (fixed_saturate, fixed_wrap);
|
10 |
|
|
type round_type is (round_nearest, -- Default, nearest LSB '0'
|
11 |
|
|
round_inf, -- Round toward positive infinity
|
12 |
|
|
round_neginf, -- Round toward negative infinity
|
13 |
|
|
round_zero); -- Round toward zero (truncate)
|
14 |
|
|
|
15 |
|
|
-- Rounding routine to use in fixed point, fixed_round or fixed_truncate
|
16 |
|
|
constant fixed_round_style : fixed_round_style_type := fixed_truncate;
|
17 |
|
|
-- Overflow routine to use in fixed point, fixed_saturate or fixed_wrap
|
18 |
|
|
constant fixed_overflow_style : fixed_overflow_style_type := fixed_wrap;
|
19 |
|
|
-- Extra bits used in divide routines
|
20 |
|
|
constant fixed_guard_bits : NATURAL := 3;
|
21 |
|
|
-- If TRUE, then turn off warnings on "X" propagation
|
22 |
|
|
constant no_warning : BOOLEAN := (false);
|
23 |
|
|
end package fixed_float_types;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.