Which RAM do COG parameters get stored in?
MX21
Posts: 7
While writing a spin application that used multiple cogs,
I ran into an unexpected result.· When I overran an
array in global RAM, it wiped out a parameter that had
already been passed into another cog!· I would have
expected that once a parameter was passed to the cog,
it would be stored internally, and would thus be protected.
Where are the parameters kept?· Everytime I access a
parameter on a cog, does it take a performance hit going
to shared RAM to fetch the parameter?
MX
·
I ran into an unexpected result.· When I overran an
array in global RAM, it wiped out a parameter that had
already been passed into another cog!· I would have
expected that once a parameter was passed to the cog,
it would be stored internally, and would thus be protected.
Where are the parameters kept?· Everytime I access a
parameter on a cog, does it take a performance hit going
to shared RAM to fetch the parameter?
MX
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax