Skip to content

Commit

Permalink
Add default lmem -> kernel connect.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-g committed Aug 29, 2015
1 parent 0a31ea2 commit 8927d8f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import com.maxeler.maxcompiler.v2.managers.engine_interfaces.CPUTypes;
import com.maxeler.maxcompiler.v2.managers.DFEModel;
import com.maxeler.maxcompiler.v2.managers.BuildConfig;
import com.maxeler.maxcompiler.v2.managers.custom.stdlib.MemoryControlGroup;
import com.maxeler.maxcompiler.v2.managers.custom.blocks.KernelBlock;

import java.util.HashMap;

Expand Down Expand Up @@ -90,5 +92,11 @@ public static void setFullBuild(CustomManager m, int numCostTables, int numThrea
{
setFullBuild(m, BuildConfig.Effort.HIGH, numCostTables, numThreads);
}

public static void addLinearStreamFromLmemToKernel(CustomManager m, KernelBlock kernel, String name) {
kernel.getInput(name) <== m.addStreamFromOnCardMemory(
name,
MemoryControlGroup.MemoryAccessPattern.LINEAR_1D);
}
}

0 comments on commit 8927d8f

Please sign in to comment.