errors · bitdewfpga sim / bit, the source scan before the tools run

design.sv:2: ERROR [package-not-found]: `import cfg_pkg::*` names the package cfg_pkg, and no file in this folder declares it (package cfg_pkg; ... endpackage). Fix: check the spelling, or add the file that declares it and `include it as the first line of design.sv.

design.sv:2: ERROR [package-not-found]: `import cfg_pkg::*` names the package cfg_pkg, and no file in this folder declares it (package cfg_pkg; ... endpackage). Fix: check the spelling, or add the file that declares it and `include it as the first line of design.sv. https://nosey-dewdrop.github.io/dewfpga/errors/package-not-found/

Why does it happen?

The package file was not copied with the lab, or the name is misspelt. Without it yosys would drop the import and build every name from it as an undriven wire.

What is the fix?

Copy the package's file into the folder and include it:

`include "cfg_pkg.sv"

Which command prints it?