aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-14 10:13:03 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-14 10:13:03 -0800
commit00964e999d5bc1825ff664e1514efcacb6d2e23f (patch)
treee753cd26202501d3a9f9e6b2f5823f9ce635aff1
parentca2f3db53f3f330d283079bf44b3cef6b7f197be (diff)
downloadyosys-00964e999d5bc1825ff664e1514efcacb6d2e23f.tar.gz
yosys-00964e999d5bc1825ff664e1514efcacb6d2e23f.tar.bz2
yosys-00964e999d5bc1825ff664e1514efcacb6d2e23f.zip
autoname: add testcase with $-prefix-ed port
-rw-r--r--tests/various/autoname.ys19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/various/autoname.ys b/tests/various/autoname.ys
new file mode 100644
index 000000000..830962e81
--- /dev/null
+++ b/tests/various/autoname.ys
@@ -0,0 +1,19 @@
+read_ilang <<EOT
+autoidx 2
+module \top
+ wire output 3 $y
+ wire input 1 \a
+ wire input 2 \b
+ cell $and \b_$and_B
+ parameter \A_SIGNED 0
+ parameter \A_WIDTH 1
+ parameter \B_SIGNED 0
+ parameter \B_WIDTH 1
+ parameter \Y_WIDTH 1
+ connect \A \a
+ connect \B \b
+ connect \Y $y
+ end
+end
+EOT
+autoname