You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About 140 tests from chapter-16 and chapter-18 subdirectories start from importing the uvm_pkg package before it's definition. The include directive comes right after the import:
import uvm_pkg::*;
`include "uvm_macros.svh"
Both open-source (slang) and commercial (VCS) EDA tools report errors on such tests -- are these tests treated to be negative?
Here is a fragment of VCS log for chapter-16/16.2--assert-final-uvm.sv test:
Parsing design file '16.2--assert-final-uvm.sv'
Error-[SV-LCM-PND] Package not defined
16.2--assert-final-uvm.sv, 19
$unit, "uvm_pkg::"
Package scope resolution failed. Token 'uvm_pkg' is not a package.
Originating module '$unit'.
Move package definition before the use of the package.
uvm_macros.svh is not what contains the definition of uvm_pkg. As the name implies, this svh file only contains `define statements for various helper macros, e.g. `uvm_info, `uvm_error
uvm_pkg.sv is a separate file that must be a part of the filelist in addition to the test-case file.
It does appear that the test-case in the repo is attempting to add the file to the command line. With git clone --recursive I do see that the surelog repo has the UVM directory shown below, but I suspect it is the relative hierarchies that are causing the files to not be found when being passed to other tools such as slang.
About 140 tests from
chapter-16
andchapter-18
subdirectories start from importing theuvm_pkg
package before it's definition. The include directive comes right after the import:Both open-source (slang) and commercial (VCS) EDA tools report errors on such tests -- are these tests treated to be negative?
Here is a fragment of VCS log for
chapter-16/16.2--assert-final-uvm.sv
test:Here is the complete list of such tests:
undefined-import-uvm-tests.txt
The text was updated successfully, but these errors were encountered: