mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
Renamed techlibs/xilinx7 to techlibs/xilinx
This commit is contained in:
parent
4007b41d40
commit
d635f8adaa
8 changed files with 0 additions and 0 deletions
12
techlibs/xilinx/counter.v
Normal file
12
techlibs/xilinx/counter.v
Normal file
|
@ -0,0 +1,12 @@
|
|||
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