- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an SOPC system and a write master. I use the write master to write in a 128 bit word into onchip memory every 1 second (the same address). Some of the time, it works fine but when I make a very small change (i.e., so the 128 bit word changes) the jtag uart output from nios stops outputting, so I just get a blank console screen where it should be periodically outputting the memory contents. It's strange because for some 128 bit words it works fine and for others, it doesn't and i'm having troublee identifiying the problem.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're doing IORD()?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- i'm having troublee identifiying the problem. --- Quote End --- 1) Use SignalTap to probe the Avalon bus when you have the problem. 2) Simulate the system using Modelsim and recreate the stimulus that is causing the hardware problem. 3) Debug, and repeat from (1). Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, will try that. My code is
while(1) { printf("Data in MEM1\n"); for(j = 0; j < 4; j++){ printf("%X\n",IORD(ONCHIP_MEMORY2_0_BASE, j)); alt_busy_sleep(1000000); } }![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
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