aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple/always01.v
blob: 21379cb017a2f93f66eef4e6720deaeea8b3a3c0 (plain)
1
2
3
4
5
6
7
8
9
10
module uut_always01(clock, reset, count);

input clock, reset;
output [3:0] count;
reg [3:0] count;

always @(posedge clock)
	count <= reset ?  0 : count + 1;

endmodule