Error with 32-bit Memory Writing

Questions and discussions about the Xillybus IP core and drivers

Error with 32-bit Memory Writing

Postby Guest »

Hi,
I needed a 32-bit memory for my application, so I generated a custom IP core with a "xillybus_memory_32" device. The address was set to be 16-bits. When I try to write something to any address other than 0, I keep getting a "Failed to Seek" error. The "memwrite" program fails to move the pointer to the specified location. What can be the cause of this?
Guest
 

Re: Error with 32-bit Memory Writing

Postby support »

Hello,

It sounds like you tried to seek to a position that isn't a multiple of 4. Think about the elements of the memory as a file, in which the elements are laid out one after the other. The seeking operation makes you jump to a certain position in this file, so you can read or write there.

Since each element is 4 bytes long, it makes no sense seeking to a position that isn't a multiple of 4. So if you want to reach address N, seek to 4*N.

Regards,
Eli
support
 
Posts: 802
Joined:

Re: Error with 32-bit Memory Writing

Postby Guest »

Thanks Eli, that solved the issue. I was indeed using addresses which were not multiples of 4. I thought since each location was 32 bits wide, successive locations much have sequential addresses.
Guest
 


Return to Xillybus