i want to write output from monitor into a text file i did try using file handlers like fdisplay and fwrite i am still not able to write into the file but able to read the contents at same hierarchy .
could someone write an example on writing into a file with path in eda? I see that the text file and components are at same level but still a problem in writing to it.
In reply to sandhyallan:
You question is not very clear to me. The UVM provides a mechanism for redirecting text output from uvm_report_info/warning/error to a file (see this link), but it has nothing else for generic file I/O. So you need to explain what you mean by “hierarchy” and how that relates to what you are trying to do.