OpenFPGA/yosys/manual/PRESENTATION_ExSyn/proc_01.v

8 lines
134 B
Coq
Raw Normal View History

module test(input D, C, R, output reg Q);
always @(posedge C, posedge R)
if (R)
Q <= 0;
else
Q <= D;
endmodule