aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sim/sdff.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sim/sdff.v')
-rw-r--r--tests/sim/sdff.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sim/sdff.v b/tests/sim/sdff.v
new file mode 100644
index 000000000..6b25516e1
--- /dev/null
+++ b/tests/sim/sdff.v
@@ -0,0 +1,7 @@
+module sdff( input d, clk, rst, output reg q );
+ always @( posedge clk)
+ if (rst)
+ q <= 0;
+ else
+ q <= d;
+endmodule