mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1721 from YosysHQ/dave/tribuf-unused
deminout: Don't demote inouts with unused bits
This commit is contained in:
commit
ddcd87b577
|
@ -121,7 +121,6 @@ struct DeminoutPass : public Pass {
|
|||
goto tribuf_bit;
|
||||
} else {
|
||||
tribuf_bit:
|
||||
if (bits_used.count(bit))
|
||||
new_input = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
read_verilog <<EOT
|
||||
module top(input clk, inout [7:0] x);
|
||||
|
||||
reg [3:0] ctr;
|
||||
always @(posedge clk) ctr <= ctr + 1'b1;
|
||||
|
||||
assign x[7:4] = ctr;
|
||||
endmodule
|
||||
EOT
|
||||
proc
|
||||
tribuf
|
||||
deminout
|
||||
select -assert-count 1 i:x o:x %i
|
||||
|
Loading…
Reference in New Issue