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

corrected c_delay_len dependency on c_period_len using ceil_div().

parent 28bc15be
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,11 @@ END common_clock_phase_detector;
ARCHITECTURE str OF common_clock_phase_detector IS
CONSTANT c_period_len : NATURAL := 2*g_clk_factor;
CONSTANT c_delay_len : NATURAL := ceil_value(g_meta_delay_len, c_period_len)+1 + g_offset_delay_len; -- detect clock phase relation independent of g_meta_delay_len
CONSTANT c_delay_len : NATURAL := ceil_div(g_meta_delay_len, c_period_len)*c_period_len+1 + g_offset_delay_len; -- detect clock phase relation independent of g_meta_delay_len
SIGNAL dbg_g_meta_delay_len : NATURAL := g_meta_delay_len; -- to view it in the wave window
SIGNAL dbg_c_period_len : NATURAL := c_period_len; -- to view it in the wave window
SIGNAL dbg_c_delay_len : NATURAL := c_delay_len; -- to view it in the wave window
SIGNAL in_phs_cap : STD_LOGIC;
SIGNAL in_phs : STD_LOGIC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment