Not able to find the package in the directory

In reply to susharma:

You don’t ever want to include uvm_reg.svh or any other UVM source code file within your code. All of the UVM code is pre-compiled as part of the uvm_pkg. You will only ever need:

import uvm_pkg::*;
`include "uvm_macros.svh"

in all of your UVM based code. Note that there is no path specified in the uvm_macros.svh include directive. Importing uvm_pkg::* will provide access to all of the UVM classes, including the uvm_reg. There is no specific uvm_reg::* package.

If you include UVM source code directly in your package, you will cause multiple definitions and havoc will ensue.