3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-18 09:12:18 +00:00

Add quick-and-dirty specify tests

This commit is contained in:
Eddie Hung 2019-05-03 15:35:26 -07:00
parent d9c4644e88
commit 09841c2ac1
2 changed files with 53 additions and 0 deletions

25
tests/various/specify.ys Normal file
View file

@ -0,0 +1,25 @@
read_verilog -specify specify.v
prep
cd test
select t:$specify2 -assert-count 0
select t:$specify3 -assert-count 1
select t:$specrule -assert-count 2
cd test2
select t:$specify2 -assert-count 1
select t:$specify3 -assert-count 0
select t:$specrule -assert-count 0
write_verilog specify.out
design -stash gold
read_verilog -specify specify.out
cd test
select t:$specify2 -assert-count 0
select t:$specify3 -assert-count 1
select t:$specrule -assert-count 2
cd test2
select t:$specify2 -assert-count 1
select t:$specify3 -assert-count 0
select t:$specrule -assert-count 0
design -stash gate
# TODO: How to check $specify and $specrule-s are equivalent?