Error with 32-bit Memory Writing

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Error with 32-bit Memory Writing

Re: Error with 32-bit Memory Writing

Post by 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.

Re: Error with 32-bit Memory Writing

Post by 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

Error with 32-bit Memory Writing

Post by 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?

Top