Can the system task $writememh be executed within an object? Kindly let me know.
In my case, the code outline is as follows:
bit [7:0] frame_out [1023:0];
bit [7:0] input[1023:0];
$writememh("out_frame.txt",frame_out); //Array is initialized prior to this
I have created an object, env_o and run this. $readmemh functions as expected but $writememh does not write any data into the file "out_frame.txt", though it creates the file "out_frame.txt".