aboutsummaryrefslogtreecommitdiffstats
path: root/manual/CHAPTER_StateOfTheArt/always01.v
blob: 4719ed47ee5a5d8381b2840f34e3a5d9e3e659ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module uut_always01(clock, reset, c3, c2, c1, c0);

input clock, reset;
output c3, c2, c1, c0;
reg [3:0] count;

assign {c3, c2, c1, c0} = count;

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

endmodule