aboutsummaryrefslogtreecommitdiffstats
path: root/examples/anlogic/demo.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-03-07 22:44:50 -0800
committerClifford Wolf <clifford@clifford.at>2019-03-07 22:44:50 -0800
commite9b34ad5c07935454367af1bee1248371d214fc9 (patch)
tree09a476af058604639d6a0cf96d4720ff7300ab25 /examples/anlogic/demo.v
parenta330c6836318d43d52cda68959f2b86c2b2ede9c (diff)
parentdf0598f455990604f51cb309831e1b95193d2dc3 (diff)
downloadyosys-e9b34ad5c07935454367af1bee1248371d214fc9.tar.gz
yosys-e9b34ad5c07935454367af1bee1248371d214fc9.tar.bz2
yosys-e9b34ad5c07935454367af1bee1248371d214fc9.zip
Merge branch 'master' of github.com:YosysHQ/yosys
Diffstat (limited to 'examples/anlogic/demo.v')
-rw-r--r--examples/anlogic/demo.v10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/anlogic/demo.v b/examples/anlogic/demo.v
index a7edf4e37..e17db771e 100644
--- a/examples/anlogic/demo.v
+++ b/examples/anlogic/demo.v
@@ -1,18 +1,18 @@
module demo (
- input wire CLK_IN,
- output wire R_LED
+ input wire CLK_IN,
+ output wire R_LED
);
parameter time1 = 30'd12_000_000;
reg led_state;
reg [29:0] count;
-
+
always @(posedge CLK_IN)begin
if(count == time1)begin
- count<= 30'd0;
+ count<= 30'd0;
led_state <= ~led_state;
end
else
count <= count + 1'b1;
end
assign R_LED = led_state;
-endmodule \ No newline at end of file
+endmodule