aboutsummaryrefslogtreecommitdiffstats
path: root/tests/techmap/iopadmap.ys
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2021-08-21 23:36:00 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-08-22 15:38:29 +0200
commit62d41d46397a93d1efa2b8282203d192b256d824 (patch)
tree88af5c8c56f947d484faf12f55e48f7102242ff9 /tests/techmap/iopadmap.ys
parent21e710eb556d14d1cdfe4a3387a1dbe3e05ca04c (diff)
downloadyosys-62d41d46397a93d1efa2b8282203d192b256d824.tar.gz
yosys-62d41d46397a93d1efa2b8282203d192b256d824.tar.bz2
yosys-62d41d46397a93d1efa2b8282203d192b256d824.zip
opt_clean: Make the init attribute follow the FF's Q.
Previously, opt_clean would reconnect all ports (including FF Q ports) to a "canonical" SigBit chosen by complex rules, but would leave the init attribute on the old wire. This change applies the same canonicalization rules to the init attributes, ensuring that init moves to wherever the Q port moved. Part of another jab at #2920.
Diffstat (limited to 'tests/techmap/iopadmap.ys')
-rw-r--r--tests/techmap/iopadmap.ys4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/techmap/iopadmap.ys b/tests/techmap/iopadmap.ys
index df029b3a0..f8e6bc374 100644
--- a/tests/techmap/iopadmap.ys
+++ b/tests/techmap/iopadmap.ys
@@ -169,7 +169,7 @@ sub s2(.i(i[1]), .o(w[1]));
assign o = oe ? w : 2'bz;
endmodule
-module c(input i, oe, (* init=2'b00 *) inout io, output o1, o2);
+module c(input i, oe, (* init=1'b0 *) inout io, output o1, o2);
assign io = oe ? i : 1'bz;
assign {o1,o2} = {io,io};
endmodule
@@ -182,5 +182,5 @@ select -assert-count 1 a/c:s %co a/a:init=1'b1 %i
select -assert-count 1 a/a:init
select -assert-count 1 b/c:s* %co %a b/a:init=2'b1x %i
select -assert-count 1 b/a:init
-select -assert-count 1 c/t:iobuf %co c/a:init=2'b00 %i
+select -assert-count 1 c/t:iobuf %co c/a:init=1'b0 %i
select -assert-count 1 c/a:init