initial import
This commit is contained in:
12
tests/asicworld/code_verilog_tutorial_which_clock.v
Normal file
12
tests/asicworld/code_verilog_tutorial_which_clock.v
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user