3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-30 16:03:17 +00:00

examples/anlogic/ now also output the SVF file.

This commit is contained in:
Kali Prasad 2019-03-06 09:51:11 +05:30
parent d03780c3f4
commit 7c03b0b082
6 changed files with 12 additions and 10 deletions

View file

@ -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
endmodule