Hello,
Is there a way to use proxies of modules which have different instance configs? I'm just looking to create a set of modules which have the same function interface, but implement things differently under the hood. I would like each implementation of the interface to have different config parameters. But the proxy's handle will not take an inherited modules handle, and the proxy's params are only that of the interface.
example
interface IMod
{
// do not want all inherited mods configs here, otherwise why have the proxy
void runModule();
}
module ModA inherits IMod
{
instance:
int BufferSize;
}
module ModB inherits IMod
{
instance:
int bufferSize;
int numBuffers; // multi run version
}
module runMods
{
proxy PMod inherits IMod
instance:
PMod.Handle PModH
}
prog.cfg
multiDataRun = ModB.create(ModBParams);
runMods = xdc.useModule('runMods');
runMods.PMod = xdc.useModule('ModB');
runModsInst.PModH = multiDataRun; // not allowed
runModsInst.PModH = runMods.PMod.create(params); // here I cannot set the parameters I want