aboutsummaryrefslogtreecommitdiffstats
path: root/tests/opt/opt_ff_sat.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/opt/opt_ff_sat.v')
-rw-r--r--tests/opt/opt_ff_sat.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/opt/opt_ff_sat.v b/tests/opt/opt_ff_sat.v
new file mode 100644
index 000000000..fc1e61980
--- /dev/null
+++ b/tests/opt/opt_ff_sat.v
@@ -0,0 +1,15 @@
+module top(
+ input clk,
+ input a,
+ output b
+ );
+ reg b_reg;
+ initial begin
+ b_reg <= 0;
+ end
+
+ assign b = b_reg;
+ always @(posedge clk) begin
+ b_reg <= a && b_reg;
+ end
+endmodule