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:
commit
3e46faa58c
8 changed files with 73 additions and 12 deletions
2
tests/select/no_warn_assert.ys
Normal file
2
tests/select/no_warn_assert.ys
Normal file
|
@ -0,0 +1,2 @@
|
|||
logger -expect-no-warnings
|
||||
select -assert-count 0 top/t:ff4 top/w:d0 %co:+[d] %i
|
5
tests/select/no_warn_prefixed_arg_memb.ys
Normal file
5
tests/select/no_warn_prefixed_arg_memb.ys
Normal file
|
@ -0,0 +1,5 @@
|
|||
logger -expect-no-warnings
|
||||
read_verilog ../../examples/igloo2/example.v
|
||||
hierarchy
|
||||
proc
|
||||
select example/t:$add
|
3
tests/select/no_warn_prefixed_empty_select_arg.ys
Normal file
3
tests/select/no_warn_prefixed_empty_select_arg.ys
Normal file
|
@ -0,0 +1,3 @@
|
|||
logger -expect-no-warnings
|
||||
select n:foo/bar*
|
||||
select t:$assert
|
6
tests/select/run-test.sh
Executable file
6
tests/select/run-test.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
for x in *.ys; do
|
||||
echo "Running $x.."
|
||||
../../yosys -ql ${x%.ys}.log $x
|
||||
done
|
3
tests/select/warn_empty_select_arg.ys
Normal file
3
tests/select/warn_empty_select_arg.ys
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue