diff options
Diffstat (limited to 'tests/sim/aldff.v')
-rw-r--r-- | tests/sim/aldff.v | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sim/aldff.v b/tests/sim/aldff.v new file mode 100644 index 000000000..eeb0f0673 --- /dev/null +++ b/tests/sim/aldff.v @@ -0,0 +1,7 @@ +module aldff( input [0:3] d, input [0:3] ad, input clk, aload, output reg [0:3] q ); + always @( posedge clk, posedge aload) + if (aload) + q <= ad; + else + q <= d; +endmodule |