diff options
author | David Shah <davey1576@gmail.com> | 2019-08-10 17:14:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-10 17:14:48 +0100 |
commit | f9020ce2b35f2fc205fc71cb095efce1a24fd86d (patch) | |
tree | 73ac462dd723cc389070cea893ddc9c1998339a2 /tests/opt/opt_ff_sat.v | |
parent | f54bf1631ff37a83733c162e6ebd188c1d5ea18f (diff) | |
download | yosys-f9020ce2b35f2fc205fc71cb095efce1a24fd86d.tar.gz yosys-f9020ce2b35f2fc205fc71cb095efce1a24fd86d.tar.bz2 yosys-f9020ce2b35f2fc205fc71cb095efce1a24fd86d.zip |
Revert "Wrap SB_LUT+SB_CARRY into $__ICE40_CARRY_WRAPPER"
Diffstat (limited to 'tests/opt/opt_ff_sat.v')
-rw-r--r-- | tests/opt/opt_ff_sat.v | 12 |
1 files changed, 12 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..5a0a6fe37 --- /dev/null +++ b/tests/opt/opt_ff_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 |