blob: 458c87927442bb5d13f2da1dbfaf0018f53a051c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module reg_seq_example( clk, reset, d, q);
input clk, reset, d;
output q;
reg q;
wire clk, reset, d;
always @ (posedge clk or posedge reset)
if (reset) begin
q <= 1'b0;
end else begin
q <= d;
end
endmodule
|