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

Improved proc_dp_verify_sync() to be able to handle c_sync_period=1.

parent 778710a6
No related branches found
No related tags found
No related merge requests found
...@@ -2044,7 +2044,7 @@ PACKAGE BODY tb_dp_pkg IS ...@@ -2044,7 +2044,7 @@ PACKAGE BODY tb_dp_pkg IS
BEGIN BEGIN
IF rising_edge(clk) THEN IF rising_edge(clk) THEN
IF verify_en='1' THEN IF verify_en='1' THEN
v_expected_sync := TO_UINT(bsn(c_bsn_w-1 DOWNTO 0)) MOD c_sync_period = c_sync_offset; v_expected_sync := (TO_UINT(bsn(c_bsn_w-1 DOWNTO 0))-c_sync_offset) MOD c_sync_period = 0;
-- Check for unexpected sync -- Check for unexpected sync
IF sync='1' THEN IF sync='1' THEN
ASSERT v_expected_sync = TRUE ASSERT v_expected_sync = TRUE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment