3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

sv: check validity of package end label

This commit is contained in:
Zachary Snow 2021-05-10 11:06:02 -04:00 committed by Zachary Snow
parent 32a0ce9d68
commit 4452080861
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,15 @@
logger -expect-no-warnings
read_verilog -sv <<EOF
package correct_name;
localparam X = 1;
endpackage : correct_name
EOF
design -reset
logger -expect error "Package name \(correct_name\) and end label \(incorrect_name\) don't match\." 1
read_verilog -sv <<EOF
package correct_name;
localparam X = 1;
endpackage : incorrect_name
EOF