Hi all, i am designing a system in which we have a bram block,microblaze processor and other essential component. i have written a verilog code for bram controller (successfully compiled)to interface bram block to opb bus.now i have to write a c code to perform read write operation in bram block.i have written following code
#include #include #include int main(){ printf("Hello this is the start, printing using print\n"); volatile char *pointer = ( volatile char *) 0x10013405; *pointer = 'c'; char temp = *pointer; printf("%c %c\n",temp , *pointer); return 0 ; }
which is not working so regarding this i have following question
1-in c ,is it possible to assign address to a pointer according to us ???? 2-is it necessary to use gpio function to read write operation in a peripheral ??if you find some conceptual mistake in code then please reply
with regards Ajay