aboutsummaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-06-21 14:57:33 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-06-21 14:57:33 +0200
commit7b5d7ec0abe3f0f53c8dbec6e4ca0a2c9361373e (patch)
tree0ac2c35faf98967dd3bfee9cd0324d76b33d7c23 /rtl
parentd25b4107ef00ca8b401423013db3d84bc0c10951 (diff)
Simplified toggle code by using default assignment.gpio_led_toggle
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