K
kumar
Guest
Hello..
The problem which i am facing with ActiveHDL6.1 system tasks is
str_len = $fgets(l, f);
p = $fseek(f, -str_len, 1);
and i open the file in "rb" mode
My string is "Hello World" in the txt file
First i do a $fgets() operation, which results in "Hello World"
I then push back the string with the length given by $fgets() task.
After this if i try to retrive the data with $fgets() once again after
push back,
then my return string will be "llo World".
Could any body explain as to why this is happening? I also tried the
same operation with NC-Sim, Model-Sim and VCS. All these simulators
gives back the string "Hello World".
Is this a bug with ActiveHDL 6.1?
Regards
Kumar
The problem which i am facing with ActiveHDL6.1 system tasks is
str_len = $fgets(l, f);
p = $fseek(f, -str_len, 1);
and i open the file in "rb" mode
My string is "Hello World" in the txt file
First i do a $fgets() operation, which results in "Hello World"
I then push back the string with the length given by $fgets() task.
After this if i try to retrive the data with $fgets() once again after
push back,
then my return string will be "llo World".
Could any body explain as to why this is happening? I also tried the
same operation with NC-Sim, Model-Sim and VCS. All these simulators
gives back the string "Hello World".
Is this a bug with ActiveHDL 6.1?
Regards
Kumar