- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have a Custom IP developed in VHDL and i am able to communicate with the NiosII Soft processor.But when i simulate the Nios II processor,the communication between the Nios II and the IP is not as expected. If i watch the slave_write and chip_select ,then in between the consecutive slave_write pulses,there comes a slave_read pulse also. How to avoid the slave_read pulses in between?Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Usually, the slave write/read is controlled in the application code. You might want to check your code and see whether you have inserted the reads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have checked the application code .I am only allowing two writes from the code.No read operation i am doing in between.
But when i simulate in modelsim,it shows a read signal in between the two write operation.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using the io.h to perform IOWR_32DIRECT? Is Nios the only master to your custom IP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is the write instruction writing a whole word, or only a partial word - ie is the processor reading the full word, modifying the data and then writing back the full word having left the top byte unchanged, or similar?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Are you using the io.h to perform IOWR_32DIRECT? Is Nios the only master to your custom IP? --- Quote End --- Yes,I am using io.h to perform the write operation and Nios is the only master to the custom IP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Is the write instruction writing a whole word, or only a partial word - ie is the processor reading the full word, modifying the data and then writing back the full word having left the top byte unchanged, or similar? --- Quote End --- The write instruction is writing the whole word(32 bit data)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you trace back the read to Nios?
What happens if you remove the writes from your application? What is your custom IP doing?
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