I am trying to simulate a testbench for a D Flip Flop verification. I have arranged my code in different files such monitor.sv, generator.sv, scoreboard.sv, driver.sv, transaction.sv, environment.sv and testbench.sv. I am including all the class files in a package.sv file and subsequently including this package in each of the class files. This is not working out for me since I get a simulation error. Is there a standard way to divide the classes and multiple files and include them.
In reply to totochan1985:
You never include the package.sv file or import the package. Do not include the environment.sv file
I have updated the code so you should see the package.sv file along with other changes. If I cannot `include or import the package, how do I use the package in my individual class files, environment and the testbench top to compile successfully?