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

9 lines
151 B
Verilog
Raw Normal View History

2014-02-02 22:26:26 +01:00
module test(input D, C, R, RV,
output reg Q);
always @(posedge C, posedge R)
if (R)
Q <= RV;
else
Q <= D;
2014-02-02 17:57:14 +01:00
endmodule