How to mantain the report file handle in verification component?

Dear all,
As we know,it’s suggested to use factory to create object for verification component.
In OVM,we can set_report_default_file for report file handle.
My question is,if this verification component was instanciated multiple times,such a driver,how to configure diffirent instance to use diffirent report file handle during use factory method?
Thank you!

You can:

  1. Have each component just open its own file using a unique file name (e.g based on a static variable counter - $psprintf(“driver_log_%0d”,static_id))

  2. Use set_config_string() to pass file names from the parent or top level into the components and the components use get_config_string() to get the file name and open the file

  3. Open the files in the parent or top level and use set_config_int() / get_config_int() to pass the file handle instead of the name to the child component

-Kurt

Hi Kurts,
Thanks for your great solution and help!