mirror of https://github.com/YosysHQ/yosys.git
Fine tune #1699 tests
This commit is contained in:
parent
3d2a2e8799
commit
3065d4092e
|
@ -135,25 +135,25 @@ module a(input i, (* init=1'b1 *) output o);
|
||||||
sub s(.i(i), .o(o));
|
sub s(.i(i), .o(o));
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module b(input i, oe, output o);
|
module b(input [1:0] i, oe, (* init=2'b1x *) output [1:0] o);
|
||||||
(* init=1'b1 *) wire w;
|
wire [1:0] w;
|
||||||
sub s(.i(i), .o(w));
|
sub s1(.i(i[0]), .o(w[0]));
|
||||||
assign o = oe ? w : 1'bz;
|
sub s2(.i(i[1]), .o(w[1]));
|
||||||
|
assign o = oe ? w : 2'bz;
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module c(input i, oe, inout io);
|
module c(input i, oe, (* init=2'b00 *) inout io, output o1, o2);
|
||||||
(* init=1'b1 *) wire w;
|
assign io = oe ? i : 1'bz;
|
||||||
sub s(.i(i), .o(w));
|
assign {o1,o2} = {io,io};
|
||||||
assign io = oe ? w : 1'bz;
|
|
||||||
endmodule
|
endmodule
|
||||||
EOT
|
EOT
|
||||||
opt_clean
|
opt_clean
|
||||||
tribuf
|
tribuf
|
||||||
simplemap
|
simplemap
|
||||||
iopadmap -bits -outpad obuf i:o -toutpad obuft oe:i:o -tinoutpad iobuf oe:o:i:io
|
iopadmap -bits -outpad obuf i:o -toutpad obuft oe:i:o -tinoutpad iobuf oe:o:i:io
|
||||||
select -assert-count 1 a/c:s %co a/a:init=1'1 %i
|
select -assert-count 1 a/c:s %co a/a:init=1'b1 %i
|
||||||
select -assert-count 1 a/a:init=1'1
|
select -assert-count 1 a/a:init
|
||||||
select -assert-count 1 b/c:s %co b/a:init=1'1 %i
|
select -assert-count 1 b/c:s* %co %a b/a:init=2'b1x %i
|
||||||
select -assert-count 1 b/a:init=1'1
|
select -assert-count 1 b/a:init
|
||||||
select -assert-count 1 c/c:s %co c/a:init=1'1 %i
|
select -assert-count 1 c/t:iobuf %co c/a:init=2'b00 %i
|
||||||
select -assert-count 1 c/a:init=1'1
|
select -assert-count 1 c/a:init
|
||||||
|
|
Loading…
Reference in New Issue