yosys/tests/hana/test_intermout_always_ff_8_...

12 lines
179 B
Coq
Raw Normal View History

2013-01-05 04:13:26 -06:00
module NegEdgeClock(q, d, clk, reset);
input d, clk, reset;
output reg q;
always @(negedge clk or negedge reset)
if(!reset)
q <= 1'b0;
else
q <= d;
endmodule