3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-10 16:13:26 +00:00

Merge pull request #1763 from boqwxp/issue1762

Closes #1762. Adds warnings for `select` arguments not matching any object and for `add` command when no modules selected
This commit is contained in:
N. Engelhardt 2020-03-23 20:14:13 +01:00 committed by GitHub
commit 3e46faa58c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 73 additions and 12 deletions

View file

@ -0,0 +1,2 @@
logger -expect-no-warnings
select -assert-count 0 top/t:ff4 top/w:d0 %co:+[d] %i

View file

@ -0,0 +1,5 @@
logger -expect-no-warnings
read_verilog ../../examples/igloo2/example.v
hierarchy
proc
select example/t:$add

View file

@ -0,0 +1,3 @@
logger -expect-no-warnings
select n:foo/bar*
select t:$assert

6
tests/select/run-test.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set -e
for x in *.ys; do
echo "Running $x.."
../../yosys -ql ${x%.ys}.log $x
done

View file

@ -0,0 +1,3 @@
logger -expect warning "did not match any module." 1
logger -expect warning "did not match any object." 1
select foo/bar