Altera_Forum
Honored Contributor
19 years agoMemory access from Nios I
Hej !
I'm quite a newbie to Nios 1 so it may be quite easy but I don't figure out how to do this : I have a peripheral which I declared as a user-logic component in SOPC Builder and as a memory for the type because I have to read and write it. The problems I have now are -how do I write to my peripheral any data (i think about using sprintf ?) ? -how do I read it, knowing that my peripheral generates an interrupt whenever a data is ready to be read, and so on how do I detect this interruption (name of the ISR ?) ? I know how to do all of this with a traditionnal PIO, but not with a user-logic peripheral plugged as a memory (the type of this in the file excalibur.h is not anymore a pio* but a void*). Thanks for your help cause I'm completely stuck there. Cheers, Flyjuju2