diff --git a/libraries/base/common/src/vhdl/common_requantize.vhd b/libraries/base/common/src/vhdl/common_requantize.vhd index cd704a27386792c8c272453232a1d58e996f5ce3..cecbb7dd0bbad81eac9217211dc4aecca805cf7a 100644 --- a/libraries/base/common/src/vhdl/common_requantize.vhd +++ b/libraries/base/common/src/vhdl/common_requantize.vhd @@ -59,7 +59,7 @@ ENTITY common_requantize IS -- when 0 then no effect g_lsb_round : BOOLEAN := TRUE; -- when TRUE round else truncate the input LSbits g_lsb_round_clip : BOOLEAN := FALSE; -- when TRUE round clip to +max to avoid wrapping to output -min (signed) or 0 (unsigned) due to rounding - g_lsb_round_even : BOOLEAN := FALSE; -- when TRUE round to even, else round away from zero + g_lsb_round_even : BOOLEAN := TRUE; -- when TRUE round half to even, else round half away from zero g_msb_clip : BOOLEAN := TRUE; -- when TRUE CLIP else WRAP the input MSbits g_msb_clip_symmetric : BOOLEAN := FALSE; -- when TRUE clip signed symmetric to +c_smax and -c_smax, else to +c_smax and c_smin_symm -- for wrapping when g_msb_clip=FALSE the g_msb_clip_symmetric is ignored, so signed wrapping is done asymmetric diff --git a/libraries/base/dp/src/vhdl/dp_requantize.vhd b/libraries/base/dp/src/vhdl/dp_requantize.vhd index 31d63241e128df435401ce5e9a9bba5a41adf732..dd80feef650afcfedee1fbe0466ff305e3b093a4 100644 --- a/libraries/base/dp/src/vhdl/dp_requantize.vhd +++ b/libraries/base/dp/src/vhdl/dp_requantize.vhd @@ -41,7 +41,7 @@ ENTITY dp_requantize IS -- when 0 then no effect g_lsb_round : BOOLEAN := TRUE; -- when TRUE round else truncate the input LSbits g_lsb_round_clip : BOOLEAN := FALSE; -- when TRUE round clip to +max to avoid wrapping to output -min (signed) or 0 (unsigned) due to rounding - g_lsb_round_even : BOOLEAN := FALSE; -- when TRUE round to even, else round away from zero + g_lsb_round_even : BOOLEAN := TRUE; -- when TRUE round half to even, else round half away from zero g_msb_clip : BOOLEAN := TRUE; -- when TRUE CLIP else WRAP the input MSbits g_msb_clip_symmetric : BOOLEAN := FALSE; -- when TRUE clip signed symmetric to +c_smax and -c_smax, else to +c_smax and c_smin_symm -- for wrapping when g_msb_clip=FALSE the g_msb_clip_symmetric is ignored, so signed wrapping is done asymmetric