03-25-2009 06:51 PM
I'm having some trouble using $fscanf in a design I'm working on. Specifically, ISim refuses to simulate my design! :(
When I try to run the attached test file, Isim returns "ERROR:Simulator:671", which claims that "This system task is not supported" in reference to my fscanf system call.
Xilinx's ISim help file specifically says that fscanf is supported:
So why doesn't it work for me? :(
Solved! Go to Solution.
03-26-2009 11:33 AM - edited 03-26-2009 11:49 AM
I tried the attached code in 11.1 and it does work correctly. Although there is still a warning that seems to be
innocuous, I am looking into this with engineering why we have a warning.
03-26-2009 11:41 AM - edited 03-26-2009 11:42 AM
Unfortunately, we're using 10.1 at my shop. What can I do do make this kind of thing work in ISim 10? ISim 10's own documentation (as linked in my first post) says that I ought to be able to use $fscanf. Is there some kind of patch or include file that I don't have?
03-27-2009 11:59 AM
Unfortunately it is not a simple fix. I confirmed with 11.1 that your design files work fine.
We should have 11.1 available by end of April. If you do need something earlier, I would request that you open a case with Tech Support and request for a patch, so they can see if a patch can be provided.
04-23-2009 03:49 PM
While trying to track down my own problems with the lack of $feof I started getting code which used to work with $fscanf to give the "not supported" error. It turned out that while the editor won't recognize it, as long as the return value is assigned it works for me. ie
$fscanf(file,"%d\n",count); // fails
tmp = $fscanf(file,"%d\n",count); // works
... maybe that will work for you ?
04-24-2009 10:29 AM
Meant to get back to you on this. As you saw from Niall, this is not a simulator bug. This is a usage issue of how fscanf was used.
You need to have it used in a mechanism of x=func() for fscanf and we have also fixed the error message to be clearer on why it was erroring out.