yosys/docs/source/code_examples/synth_flow/proc_01.v

8 lines
134 B
Verilog
Raw Permalink Normal View History

2014-02-02 15:26:26 -06:00
module test(input D, C, R, output reg Q);
2014-02-02 10:57:14 -06:00
always @(posedge C, posedge R)
if (R)
2014-02-02 15:26:26 -06:00
Q <= 0;
2014-02-02 10:57:14 -06:00
else
Q <= D;
endmodule