Skip to content
Snippets Groups Projects
Commit 628342b0 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use c_lsb_round_even = FALSE, because golden reference data is for round half away from zero.

parent 6142c768
No related branches found
No related tags found
1 merge request!244Pass on g_round_even = true default, to support using false for golden...
......@@ -34,6 +34,7 @@ USE work.common_pkg.ALL;
-- . c_out_dat_w = 3
-- . c_lsb_w = 2
-- . c_lsb_round_clip = TRUE
-- . c_lsb_round_even = FALSE
-- . c_msb_clip_symmetric = TRUE
-- . Observe reg_dat with respect to the out_s_*_*.dat and out_u_*_*.dat
-- . Try also c_lsb_round_clip=FALSE
......@@ -55,6 +56,7 @@ ARCHITECTURE tb OF tb_requantize IS
CONSTANT c_out_dat_w : NATURAL := 3;
CONSTANT c_lsb_w : NATURAL := 2;
CONSTANT c_lsb_round_clip : BOOLEAN := TRUE; --FALSE;
CONSTANT c_lsb_round_even : BOOLEAN := FALSE; -- golden reference data is for round half away from zero
CONSTANT c_msb_clip_symmetric : BOOLEAN := TRUE; --FALSE;
-- Stimuli
......@@ -158,6 +160,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => TRUE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => TRUE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -178,6 +181,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => TRUE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => FALSE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -198,6 +202,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => FALSE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => TRUE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -218,6 +223,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => FALSE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => FALSE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -239,6 +245,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => TRUE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => TRUE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -259,6 +266,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => TRUE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => FALSE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -279,6 +287,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => FALSE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => TRUE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......@@ -299,6 +308,7 @@ BEGIN
g_lsb_w => c_lsb_w,
g_lsb_round => FALSE,
g_lsb_round_clip => c_lsb_round_clip,
g_lsb_round_even => c_lsb_round_even,
g_msb_clip => FALSE,
g_msb_clip_symmetric => c_msb_clip_symmetric,
g_pipeline_remove_lsb => g_pipeline_remove_lsb,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment