Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYou can set the behavior of each separate register, so since I only need to read from one of the two I set the other one as write with loopback so I can read what I write into it from the memory debug console (or at least, that's what I think)...but my problem is that when I issue the write command nothing happens. This is the code:
int result=0; int* resultpointer=&result; volatile int* rsacoprocessoraddress = _rsa_coprocessor_address_reg; *rsacoprocessoraddress=resultpointer; from this segment I expect to read the address of "result" into the memory location where tue first register is (_rsa_coprocessor_address_reg is a constant defined with the slave's base address), but nothing happens: the locations where my slave is are just 01000000 00000000 00000000 000000000 01000000 00000000 00000000 000000000 01000000 00000000 00000000 000000000 and so on...