Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
module CounterEnable(
input clk,
input reset,
input enable,
output reg [31:0] count
);
always @(posedge clk) begin
if(reset) count <= 0;
else if(enable) count <= count + 1;
end
endmoduleCoding works best on desktop or with an external keyboard.