aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-03-10 13:51:40 +0000
committerGitHub <noreply@github.com>2020-03-10 13:51:40 +0000
commitddcd87b577baa71ad3456fea1cc7bf9d46cfac2e (patch)
tree8eaf78dc56613c69a4c80051db1dca2961498778 /tests
parentf91705cf8a5734e48217f3850af58508fcfc81e0 (diff)
parent5cae9c6e1628db7223a205d2444ef26e682007a5 (diff)
downloadyosys-ddcd87b577baa71ad3456fea1cc7bf9d46cfac2e.tar.gz
yosys-ddcd87b577baa71ad3456fea1cc7bf9d46cfac2e.tar.bz2
yosys-ddcd87b577baa71ad3456fea1cc7bf9d46cfac2e.zip
Merge pull request #1721 from YosysHQ/dave/tribuf-unused
deminout: Don't demote inouts with unused bits
Diffstat (limited to 'tests')
-rw-r--r--tests/various/deminout_unused.ys14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/various/deminout_unused.ys b/tests/various/deminout_unused.ys
new file mode 100644
index 000000000..5ed00509d
--- /dev/null
+++ b/tests/various/deminout_unused.ys
@@ -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
+