AnsweredAssumed Answered

Memory segment definition, explain TYPE()

Question asked by MrGreen on Jan 9, 2014
Latest reply on Jan 10, 2014 by CraigG

I am a bit confused regarding memory allocation.

When defining a memory segment you define memory type and width
ex:
  seg_rth      { TYPE(PM RAM) START(0x0008c000) END(0x0008c0ff) WIDTH(48) },
Start, End and Width are very clear but in what way is the memory segment affected by the TYPE() statement?
Available are PM,DM,SW (RAM) which relate to Program(bus), Data(bus),and Short Word but I do not understand why this has to be declared or in what way this affect the future use of the memory allocation.
Lets say  I want to set up a memory segment whith data that should be accessable by the PM, DM and IOP busses with 32bit width.
Is this possible? (Why not?), If possible should the area be set as PM or DM?
Lets say  I want to set up a memory segment whith data that should be accessable by the PM, DM and IOP busses with 16bit width.
Is this possible? (Why not?), If possible should the area be set as PM, DM or SW?
I am obviously missing some conseptual understanding here.
Thank you for helping out.

Outcomes