aboutsummaryrefslogtreecommitdiffstats
path: root/tests/opt/opt_rmdff_sat.v
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-07 21:35:48 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-07 21:35:48 -0700
commit2b6cdfb39f9010861cb203809b295d1c36d58aa5 (patch)
tree8c595c18ef61fae52c9bb304add2c7ba56c0d821 /tests/opt/opt_rmdff_sat.v
parentd5e8c0e6d33de71493855eca72fcc454a67a6140 (diff)
downloadyosys-2b6cdfb39f9010861cb203809b295d1c36d58aa5.tar.gz
yosys-2b6cdfb39f9010861cb203809b295d1c36d58aa5.tar.bz2
yosys-2b6cdfb39f9010861cb203809b295d1c36d58aa5.zip
Move tests/various/opt* into tests/opt/
Diffstat (limited to 'tests/opt/opt_rmdff_sat.v')
-rw-r--r--tests/opt/opt_rmdff_sat.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/opt/opt_rmdff_sat.v b/tests/opt/opt_rmdff_sat.v
new file mode 100644
index 000000000..5a0a6fe37
--- /dev/null
+++ b/tests/opt/opt_rmdff_sat.v
@@ -0,0 +1,12 @@
+module top (
+ input clk,
+ output reg [7:0] cnt
+);
+ initial cnt = 0;
+ always @(posedge clk) begin
+ if (cnt < 20)
+ cnt <= cnt + 1;
+ else
+ cnt <= 0;
+ end
+endmodule