rtl:utils:edge_detect: add DP parameter

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/4/head
liangkangnan 2021-09-01 14:14:36 +08:00
parent 574708bd89
commit f74f2d8f5d
1 changed files with 4 additions and 2 deletions

View File

@ -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),