- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I am new to NIOS, and I'm trying to simulate a NIOS2 based design using ModelSim. Everything runs as expected (accesses to Avalon slaves, printf thru Jtag-Uart, ...), except for "usleep" instructions. "usleep" calls compile with no warnings (IDE), execute with no errors (Modelsim), but the simulator shows the same duration regardless of the argument given (1us, 100us, 100000us). Any hints? Jean-ChristopheLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ahaha!
I found the answer myself, after investigating for half a day... The function that implements the actual sleep is "alt_busy_sleep()". This function checks wether "ALT_SIM_OPTIMIZE" is defined to decide if it skips wait cycles (simulation) or pauses for a while (real target). Sorry for bothering you all :-)
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