- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-25-2009 06:51 PM
Hi all,
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:
http://www.xilinx.com/itp/xilinx10/isehelp/ism_r_v
So why doesn't it work for me? :(
Solved! Go to Solution.
Re: Problem using $fscanf in ISIM
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-26-2009 11:33 AM - edited 03-26-2009 11:49 AM
Hi,
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.
Thanks
Duth
Re: Problem using $fscanf in ISIM
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-26-2009 11:41 AM - edited 03-26-2009 11:42 AM
Hi Duth,
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?
-Nick
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-26-2009 11:52 AM
Let me look into this. Can you send me the input.txt file as well? Let me see if we can find a solution for 10.1
Thanks
Duth
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-26-2009 11:58 AM
Sure thing! Thanks for diving into this.
-Nick
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-27-2009 11:59 AM
Hi Nick,
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.
Thanks
Duth
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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 ?
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-23-2009 05:24 PM
Well I'll be a son of a..
That worked perfectly. Thanks for the tip, niall99!
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-24-2009 10:29 AM
Hi Nick,
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.
Thanks
Duth
Re: Problem using $fscanf in ISIM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-24-2009 10:32 AM











