rtl:utils:edge_detect: add DP parameter
Signed-off-by: liangkangnan <liangkangnan@163.com>pull/4/head
parent
574708bd89
commit
f74f2d8f5d
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue