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