1
0
mirror of synced 2026-01-19 09:38:22 +00:00
YosysHQ.yosys/tests/asicworld/code_verilog_tutorial_which_clock.v
2013-01-05 11:13:26 +01:00

13 lines
154 B
Verilog

module which_clock (x,y,q,d);
input x,y,d;
output q;
reg q;
always @ (posedge x or posedge y)
if (x)
q <= 1'b0;
else
q <= d;
endmodule