--- Quote Start ---
originally posted by banx@May 15 2006, 05:42 PM
hello fly,
i presume excalibur.h has given you an address for your block of user logic and has cast it to be a pointer to void like this na_mylogic ((void*) 0x0002010)
if your logic expects to be written and read in 32-bit wide accesses (ints) then just declare an integer pointer and make it point to your logic using a cast.
unsigned int *my_pointer = (unsigned int*)na_mylogic;
you could now use my_pointer to access your logic as if it were a memory array (of integers). you could easily modify the above to suit the width of your logic.
i hope this is what you were asking, and it is of some help.
banx.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15382)
--- quote end ---
--- Quote End ---
It's exactly what I was expecting ! but just one question : will the Nios automatically assert my read and write and chip_select signal correctly when I will write to it ? Moreover, when I have an interrupt from my logic, how can I clear the flag ? because i don't have anymore any pioedgecapture available !
thanx a lot for your help banx !
Flyjuju2