chore: generator evolution

This commit is contained in:
otroubi
2026-05-15 13:36:10 +03:00
parent eacffd44b3
commit 9efbd6586f
4 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,8 @@
module generator
#(
parameter DATA_WIDTH = 14
parameter DATA_WIDTH = 14,
parameter ZERO_LEVEL = 8192 // 8192 or 0
)
(
input clk_in,
@ -78,7 +79,7 @@ module generator
if (cnt_period <= pulse_width_reg) begin
pulse_height_out_reg <= pulse_height_reg;
end else begin
pulse_height_out_reg <= '0;
pulse_height_out_reg <= ZERO_LEVEL;
end
if (cnt_period == pulse_period_reg) begin
cnt_period <= 0;