In reply to babanrosesalluri5:
Based on your compilation command, you seem to have everything in one file. You should look at using SV packages for better code reuse.
In any case, you use “uvm_config_db” in your ‘top’ module. You need to ensure that you ‘import uvm_pkg::*;’ prior to referencing this. Since you don’t, you will get the error related to uvm_config_db that you see.
If you are getting an OVM error, then you are likely importing ovm_pkg::* instead of uvm_pkg::*. You can not use both in the same environment.