There are 6 messages in this thread.
You are currently looking at messages 0 to 6.
Which C function should I use to perform read or write into block ram (connected to opb bus with opb bus controller)? Xio_in8 and Xio_out8 ? Thanks Marco
Hi Marco, Marco wrote: > Which C function should I use to perform read or write into block ram (connected to opb bus with opb bus controller)? > > Xio_in8 and Xio_out8 ? Not necessary - just read and write it like normal memory. Regards, John______________________________
"John Williams" <j...@itee.uq.edu.au> wrote in message news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au... > Hi Marco, > > Marco wrote: > > Which C function should I use to perform read or write into block ram (connected to opb bus with opb bus controller)? > > > > Xio_in8 and Xio_out8 ? > > Not necessary - just read and write it like normal memory. > > Regards, > > John Could you explain, please? Normally, when I write a C program, I create variables... and everything is stored in memory, but it is implicit. So, what sohuld I do to read or write into memory? In what way may I save, in example a matrix into block ram? Thanks Marco
You can just make use of pointers and thats easy enough, isn't it? "Marco" <m...@email.it> schrieb im Newsbeitrag news:d7kfc5$fup$1...@news.ngi.it... > "John Williams" <j...@itee.uq.edu.au> wrote in message > news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au... > > Hi Marco, > > > > Marco wrote: > > > Which C function should I use to perform read or write into block ram > (connected to opb bus with opb bus controller)? > > > > > > Xio_in8 and Xio_out8 ? > > > > Not necessary - just read and write it like normal memory. > > > > Regards, > > > > John > > > Could you explain, please? > > Normally, when I write a C program, I create variables... and everything is > stored in memory, but it is implicit. > > So, what sohuld I do to read or write into memory? In what way may I save, > in example a matrix into block ram? > > Thanks > Marco > >______________________________
"Joey" <j...@kaiserslautern.de> wrote in message news:d7kpmg$m53$2...@news.uni-kl.de... > > You can just make use of pointers and thats easy enough, isn't it? > > "Marco" <m...@email.it> schrieb im Newsbeitrag > news:d7kfc5$fup$1...@news.ngi.it... > > "John Williams" <j...@itee.uq.edu.au> wrote in message > > news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au... > > > Hi Marco, > > > > > > Marco wrote: > > > > Which C function should I use to perform read or write into block ram > > (connected to opb bus with opb bus controller)? > > > > > > > > Xio_in8 and Xio_out8 ? > > > > > > Not necessary - just read and write it like normal memory. > > > > > > Regards, > > > > > > John > > > > > > Could you explain, please? > > > > Normally, when I write a C program, I create variables... and everything > is > > stored in memory, but it is implicit. > > > > So, what sohuld I do to read or write into memory? In what way may I > save, > > in example a matrix into block ram? > > > > Thanks > > Marco > > > > > > I can use C pointers to point to address space mapped from microblaze?
I didn't try it with microblaze. But you should be able to do it. I did it with my power pc on the BRAM as well as the SDRAM. After all its just reading and writing a memory location. So it must work with Microblaze as well :) "Marco" <m...@email.it> schrieb im Newsbeitrag news:d7ku3f$kvu$1...@news.ngi.it... > > "Joey" <j...@kaiserslautern.de> wrote in message > news:d7kpmg$m53$2...@news.uni-kl.de... > > > > You can just make use of pointers and thats easy enough, isn't it? > > > > "Marco" <m...@email.it> schrieb im Newsbeitrag > > news:d7kfc5$fup$1...@news.ngi.it... > > > "John Williams" <j...@itee.uq.edu.au> wrote in message > > > news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au... > > > > Hi Marco, > > > > > > > > Marco wrote: > > > > > Which C function should I use to perform read or write into block > ram > > > (connected to opb bus with opb bus controller)? > > > > > > > > > > Xio_in8 and Xio_out8 ? > > > > > > > > Not necessary - just read and write it like normal memory. > > > > > > > > Regards, > > > > > > > > John > > > > > > > > > Could you explain, please? > > > > > > Normally, when I write a C program, I create variables... and everything > > is > > > stored in memory, but it is implicit. > > > > > > So, what sohuld I do to read or write into memory? In what way may I > > save, > > > in example a matrix into block ram? > > > > > > Thanks > > > Marco > > > > > > > > > > > > I can use C pointers to point to address space mapped from microblaze? > > > >______________________________