dharag
Newbie level 5
- Joined
- Mar 24, 2014
- Messages
- 9
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 66
Hello,
I am using Questasim for verification of VHDL and SV files. In generator class run task I am giving the input from a .DAT file and I am facing an error for the same. Error is
"Error: (vsim PLI-3084) : $fscanf: Argument 1 is not a valid file descriptor"
Code is:
int i;
int D;
i = $fscanf(fp,"%d",D);
file pointer fp is passed through environment class run task.
Please help me to come out of this error :thinker:
Thanks in advance
I am using Questasim for verification of VHDL and SV files. In generator class run task I am giving the input from a .DAT file and I am facing an error for the same. Error is
"Error: (vsim PLI-3084) : $fscanf: Argument 1 is not a valid file descriptor"
Code is:
int i;
int D;
i = $fscanf(fp,"%d",D);
file pointer fp is passed through environment class run task.
Please help me to come out of this error :thinker:
Thanks in advance