In reply to bdreku:
contents of eth_pkt_pkg.sv
package eth_pkt_pkg;
`include “eth_pkt.sv”
endpackage:eth_pkt_pkg
contents of eth_pkt.sv
class eth_pkt;
rand bit [31:0] pkt_da;
rand bit [31:0] pkt_sa;
.
.
.
.
endclass:eth_pkt
contents of eth_env.sv
package eth_env_pkg;
include "eth_pkt_pkg.sv"
include “eth_pkgn.sv”
include "eth_drvr.sv"
include “eth_mntr.sv”
`include “eth_chkr.sv”
import eth_pkt_pkg::eth_pkt;
class eth_env_c;
.
.
.
.
endclass:eth_env_c
contents of eth_top.sv
include "eth_env.sv"
include “eth_if.sv”
import eth_env_pkg::*;
module eth_top();
.
.
.
endmodule:eth_top