mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
Moved simple xilinx counter sim example to subdir
This commit is contained in:
parent
02f321b6fc
commit
90b016716b
3 changed files with 0 additions and 0 deletions
|
@ -1,12 +0,0 @@
|
|||
module counter (clk, rst, en, count);
|
||||
|
||||
input clk, rst, en;
|
||||
output reg [3:0] count;
|
||||
|
||||
always @(posedge clk)
|
||||
if (rst)
|
||||
count <= 4'd0;
|
||||
else if (en)
|
||||
count <= count + 4'd1;
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue