jeevs
Newbie level 4
Hi,
I need a help.In my testbench I am feeding the inputs to the dut through a file.This input to the dut from the file has to be restarted once there is certain condition.I had used $fscanf initially which only drives once but I cannot restart when certain condition occurs.I want to restart the File read.I was using fscanf in the initial block.I have changed this to an always block where I dont use the $fclose so that when certain condition occurs the fscanf should be restarted.
Is there any other alternative.
I am unable to get the desired result.Please advice.
Thanks in advance.
Regards,
Jeevs
I need a help.In my testbench I am feeding the inputs to the dut through a file.This input to the dut from the file has to be restarted once there is certain condition.I had used $fscanf initially which only drives once but I cannot restart when certain condition occurs.I want to restart the File read.I was using fscanf in the initial block.I have changed this to an always block where I dont use the $fclose so that when certain condition occurs the fscanf should be restarted.
Is there any other alternative.
I am unable to get the desired result.Please advice.
Thanks in advance.
Regards,
Jeevs