2019-11-22 01:32:52 +01:00
|
|
|
module abc9_test032(input clk, d, r, output reg q);
|
2019-11-20 02:05:14 +01:00
|
|
|
initial q = 1'b0;
|
|
|
|
|
always @(negedge clk or negedge r)
|
2019-11-22 01:33:20 +01:00
|
|
|
if (!r) q <= 1'b0;
|
2019-11-20 02:05:14 +01:00
|
|
|
else q <= d;
|
|
|
|
|
endmodule
|