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

Register ref_sync to ease timing closure for ref_sync fanout to (many) dp_bsn_monitor_v2 instances.

parent b434adf9
No related branches found
No related tags found
1 merge request!283Resolve L2SDP-696
...@@ -116,6 +116,7 @@ ARCHITECTURE rtl OF dp_bsn_monitor_v2 IS ...@@ -116,6 +116,7 @@ ARCHITECTURE rtl OF dp_bsn_monitor_v2 IS
SIGNAL nof_valid : STD_LOGIC_VECTOR(c_cnt_valid_w-1 DOWNTO 0); SIGNAL nof_valid : STD_LOGIC_VECTOR(c_cnt_valid_w-1 DOWNTO 0);
SIGNAL cnt_latency : STD_LOGIC_VECTOR(c_cnt_latency_w-1 DOWNTO 0); SIGNAL cnt_latency : STD_LOGIC_VECTOR(c_cnt_latency_w-1 DOWNTO 0);
SIGNAL latency : STD_LOGIC_VECTOR(c_cnt_latency_w-1 DOWNTO 0); SIGNAL latency : STD_LOGIC_VECTOR(c_cnt_latency_w-1 DOWNTO 0);
SIGNAL ref_sync_reg : STD_LOGIC := '0';
SIGNAL i_mon_ready_stable : STD_LOGIC; SIGNAL i_mon_ready_stable : STD_LOGIC;
SIGNAL i_mon_xon_stable : STD_LOGIC; SIGNAL i_mon_xon_stable : STD_LOGIC;
...@@ -168,6 +169,9 @@ BEGIN ...@@ -168,6 +169,9 @@ BEGIN
nof_valid <= cnt_valid; nof_valid <= cnt_valid;
latency <= cnt_latency; latency <= cnt_latency;
-- Register ref_sync to ease timing closure for ref_sync fanout to (many) dp_bsn_monitor_v2 instances
ref_sync_reg <= ref_sync WHEN rising_edge(clk);
u_sync_timeout_cnt : ENTITY common_lib.common_counter u_sync_timeout_cnt : ENTITY common_lib.common_counter
GENERIC MAP ( GENERIC MAP (
g_width => c_sync_timeout_w g_width => c_sync_timeout_w
...@@ -323,7 +327,7 @@ BEGIN ...@@ -323,7 +327,7 @@ BEGIN
PORT MAP ( PORT MAP (
rst => rst, rst => rst,
clk => clk, clk => clk,
cnt_clr => ref_sync, cnt_clr => ref_sync_reg,
cnt_en => '1', cnt_en => '1',
count => cnt_latency count => cnt_latency
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment