From f74f2d8f5deb2ec8c3699038e8e03c3d38bf6f89 Mon Sep 17 00:00:00 2001 From: liangkangnan Date: Wed, 1 Sep 2021 14:14:36 +0800 Subject: [PATCH] rtl:utils:edge_detect: add DP parameter Signed-off-by: liangkangnan --- rtl/utils/edge_detect.sv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtl/utils/edge_detect.sv b/rtl/utils/edge_detect.sv index b381a2b..a977843 100644 --- a/rtl/utils/edge_detect.sv +++ b/rtl/utils/edge_detect.sv @@ -15,7 +15,9 @@ */ // 上升沿、下降沿检测 -module edge_detect ( +module edge_detect #( + parameter int DP = 2 + )( input logic clk_i, input logic rst_ni, input logic sig_i, @@ -39,7 +41,7 @@ module edge_detect ( end gen_ticks_sync #( - .DP(2), + .DP(DP), .DW(1) ) u_sync ( .clk(clk_i),