UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor dprasad019
Visitor
1,753 Views
Registered: ‎03-10-2013

Bram read write from ise using xps_bram_controller

I had created a project in ise and added edk as a component.

In EDK I added only UART and xps_bram_controller, I mapped the input and output ports into two registers as in figure below..

My c code to read and write is

 

 

e = 0;
xil_printf("enter your datas\n");
xil_printf("data1:");

f = XUartLite_RecvByte(0x84000000,a);
/*XBram_ReadReg(0x7FFF0000,f);*/
XBram_WriteReg(0x84418001,e,0x26);
d = XBram_ReadReg(0x84418001,e);
XUartLite_SendByte(0x84000000,f);

xil_printf("\r\n\r");

if (f == d) {
xil_printf ("Memory Read Passed!!\n\r");
}
else {
xil_printf ("Memory Read Failed!!\n\r");
}
xil_printf("\r\n\r");
xil_printf("data1uart:%d\n\r",f);
xil_printf("data1bram:%x\n\r",d);

 

I tried by giving default values in ISE to Din in bram_controller it is able to read perfectly,

i want to write through hyper terminal and read it as a not of data written.... but i am not able to write...

can anybody give the Idea..

bram_read_write.JPGbram.JPG

0 Kudos