aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sim/aldffe.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sim/aldffe.v')
-rw-r--r--tests/sim/aldffe.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sim/aldffe.v b/tests/sim/aldffe.v
new file mode 100644
index 000000000..79c65afc4
--- /dev/null
+++ b/tests/sim/aldffe.v
@@ -0,0 +1,8 @@
+module aldffe( input [0:3] d, input [0:3] ad, input clk, aload, en, output reg [0:3] q );
+ always @( posedge clk, posedge aload)
+ if (aload)
+ q <= ad;
+ else
+ if (en)
+ q <= d;
+endmodule