From 7b5d7ec0abe3f0f53c8dbec6e4ca0a2c9361373e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 21 Jun 2018 14:57:33 +0200 Subject: Simplified toggle code by using default assignment. --- rtl/alpha_fmc_top.v | 7 +++---- 1 file 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 -- cgit v1.2.3