Hi,
I have taken up verification of a subsystem. It has a 3rd party UVC, which has a file name cpu_virtual_sequence.sv and it has the line below:
class virtual_sequence extends uvm_sequence;
My predecessor had added one more file called top_virtual_sequence.sv file at one hierarchy up and it has the same line below:
class virtual_sequence extends uvm_sequence;
This was compiling and running fine. Now I have changed the top_virtual_sequence.sv as below (as part of clean up and good coding guideline):
class top_virtual_sequence extends uvm_sequence;
This change gives compile error (which is related to the UVC). My question is:
Is it possible to have same class name inside two different files?
Thanks,
mpattaje