aboutsummaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'rtl')
-rw-r--r--rtl/alpha_fmc_top.v7
1 files changed, 3 insertions, 4 deletions
diff --git a/rtl/alpha_fmc_top.v b/rtl/alpha_fmc_top.v
index 4d7fcac..ae49884 100644
--- a/rtl/alpha_fmc_top.v
+++ b/rtl/alpha_fmc_top.v
@@ -234,16 +234,15 @@ module alpha_fmc_top
always @*
begin : sys_clk_toggle
- toggle_new = ~toggle_reg;
- toggle_we = 1'b0;
+ toggle_ctr_new = toggle_ctr_reg + 1'b1;
+ toggle_new = ~toggle_reg;
+ toggle_we = 1'b0;
if (toggle_ctr_reg == TOGGLE_DELAY_CYCLES)
begin
toggle_ctr_new = 32'h0;
toggle_we = 1'b1;
end
- else
- toggle_ctr_new = toggle_ctr_reg + 1'b1;
end
endmodule // alpha_fmc_top