aboutsummaryrefslogtreecommitdiffstats
path: root/examples/igloo2/example.v
diff options
context:
space:
mode:
Diffstat (limited to 'examples/igloo2/example.v')
-rw-r--r--examples/igloo2/example.v5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/igloo2/example.v b/examples/igloo2/example.v
index 3eb7007c5..1a1967d5a 100644
--- a/examples/igloo2/example.v
+++ b/examples/igloo2/example.v
@@ -1,5 +1,6 @@
-module top (
+module example (
input clk,
+ input EN,
output LED1,
output LED2,
output LED3,
@@ -14,7 +15,7 @@ module top (
reg [BITS-1:0] outcnt;
always @(posedge clk) begin
- counter <= counter + 1;
+ counter <= counter + EN;
outcnt <= counter >> LOG2DELAY;
end