[clocking] Provide a default div for ClockDividerN sv implementation (#706)

This commit is contained in:
David Biancolin
2020-11-03 12:14:18 -05:00
committed by GitHub
parent 57a0bc5dfc
commit 946a191221

View File

@@ -5,7 +5,7 @@
* Duty cycle is 100 * (ceil(DIV / 2)) / DIV.
*/
module ClockDividerN #(parameter DIV)(output logic clk_out = 1'b0, input clk_in);
module ClockDividerN #(parameter DIV = 1)(output logic clk_out = 1'b0, input clk_in);
localparam CWIDTH = $clog2(DIV);
localparam LOW_CYCLES = DIV / 2;