In platform I defined memory range like that
DDR3_VIDEO base 0xF000 000 length 0x1000 000
How do I get base and length into XDC cfg file to create for example SharedMemory region
SharedRegion.setEntryMeta(1,
{
base: base,
len: length
}
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In platform I defined memory range like that
DDR3_VIDEO base 0xF000 000 length 0x1000 000
How do I get base and length into XDC cfg file to create for example SharedMemory region
SharedRegion.setEntryMeta(1,
{
base: base,
len: length
}
Sam,
the platform details are available through Program.cpu.memoryMap.
You can either access Program.cpu.memory["DDR3_VIDEO"] if you already know the name or you can loop through all memory objects:
for (var mem in Program.cpu.memoryMap) {
print(mem);
print(Program.cpu.memoryMap[mem].base);
print(Program.cpu.memoryMap[mem].len);
}