I tried using the below code to dump the configuration -
function void display_config() ;
uvm_printer printer_knobs;
printer_knobs.mcd = $fopen("CONFIG_OVERRIDE_FILE.txt"); // opening the file
this.print();
$fclose(mcd); // closing the file
endtask
But it results in a compilation error. Is there any way to dump the configuration data to a file and read then read this configuration data ?
Do I need to modify the format while reading ?
Thanks !