Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
I have simulate the design using modelsim and i get the read data but i think it is a garbage value. every time i got the new value and even the read signal didn't set to logic level "1" during the operation.
So, what should I do to resolved this problem. I have used just simple 'i = IORD_32DIRECT(BASE, 0x00)" macro where 'i' is the integer variable. - Altera_Forum
Honored Contributor
Do you have a known, fixed value in the register map of your slave that you can look for? Then you'd know if it was garbage or not.
Cheers, Alex - Altera_Forum
Honored Contributor
yeah I got the garbage value but at the same time the read signal should goes to higher level (logic 1) but it didn't.
and after writing some data to that component i got both the wire pulse and well as read pulse so what should I do if I want only read operation. - Altera_Forum
Honored Contributor
The 'IORD' command is all you need if you only want a read operation. How are you checking that the read signal doesn't go high? SignalTap? or with an oscilloscope with read taken to an external pin?
You're going to have to post much more of your project's code if we're to help with this. How is your Nios connected to your slave? Cheers, Alex