- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
Finally I could program NIOS to read and write a file from the host computer with fread and fwrite instruction (in debug mode). However, it's awfully slow. For instance, reading a 5MB image from the host computer takes more than 20 minutes! Any idea to fasten the process? Thanks in advance! AbbasLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That means about 4KB/s. I don't have any information of host-based filesystem performance, but I guess it could be a reasonable figure, especially if you use fread and fwrite calls with single byte or a few bytes. If this is your case, try the same file transfer by packing long byte streams into a single call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably the only way to get a real performance increase it to utilize a different interface, if you have one available. i.e. PCIe, or Ethernet. You could use Altera's TSE (or opencores, etc) to transfer the file to the local filesystem/memory.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page