Additionally, The following warning appears during simulation
**** Warning: ** Warning: (vsim-4014) No objects found matching ‘this’**.
In reply to Anuradha Rangineni:
Hi,
Can the system task $writememh be executed within an object? Kindly let me know.
In my case, the code outline is as follows:
class environment_c;
bit [7:0] frame_out [1023:0];
bit [7:0] input[1023:0];
task process();
$readmemh(“input.txt”,input);
$writememh(“out_frame.txt”,frame_out); //Array is initialized prior to this
endtask
endclass
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”.