Skip to content

Commit

Permalink
Fix wrong annotation for FetchSubTuple
Browse files Browse the repository at this point in the history
  • Loading branch information
burchanie committed Sep 6, 2015
1 parent 67332da commit 8448257
Show file tree
Hide file tree
Showing 5 changed files with 4,926 additions and 5,001 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
LUTs FFs BRAMs DSPs : FetchSubTupleKernel.maxj
1996 239 1 0 : resources used by this file
0.38% 0.02% 0.04% 0.00% : % of available
20.23% 0.97% 0.70% 0.00% : % of total used
72.63% 1.60% 100.00% 0.00% : % of user resources
11446 428 2 0 : resources used by this file
2.18% 0.04% 0.08% 0.00% : % of available
57.24% 1.21% 0.74% 0.00% : % of total used
95.74% 1.96% 100.00% 0.00% : % of user resources

: /***
: Here we provide an example use case of irregular fetch buffer.
Expand All @@ -23,7 +23,7 @@
: import com.maxeler.maxcompiler.v2.kernelcompiler.types.composite.DFEVector;
: import com.maxeler.maxcompiler.v2.kernelcompiler.types.composite.DFEVectorType;
:
: //import com.custom_computing_ic.dfe_snippets.utils.FetchSubTuple;
: import com.custom_computing_ic.dfe_snippets.utils.FetchSubTuple;
:
: class FetchSubTupleKernel extends Kernel
: {
Expand All @@ -37,10 +37,10 @@
: DFEVectorType<DFEVar> tupleType =
: new DFEVectorType<DFEVar> (floatType, tupleSize);
:
70 101 0 0 : DFEVar cycleCounter = control.count.simpleCounter(32);
70 102 0 0 : DFEVar cycleCounter = control.count.simpleCounter(32);
1 1 0 0 : DFEVar prefetchEnable = cycleCounter < 1;
5 4 0 0 : DFEVar pushEnable = ~prefetchEnable & ( (cycleCounter < 27) | (cycleCounter > 30) );
12 4 0 0 : DFEVar popEnable = ~prefetchEnable & ( (cycleCounter < 10) | (cycleCounter > 11) );
11 4 0 0 : DFEVar popEnable = ~prefetchEnable & ( (cycleCounter < 10) | (cycleCounter > 11) );
:
:
:
Expand All @@ -53,12 +53,12 @@
: //debug.simPrintf("\ncycle=%d, pushEnable2=%d | ", cycleCounter, pushEnable2);
:
1 1 0 0 : DFEVector<DFEVar> input = io.input("input", tupleType, dataRequestEnable);
1 6 0 0 : DFEVar size = io.input("sizes", scalarType, popEnable);
1 7 0 0 : DFEVar size = io.input("sizes", scalarType, popEnable);
:
: boolean alignOutput = false;
: FetchSubTuple buffer = new FetchSubTuple(this, "test", tupleSize, 64, floatType, alignOutput);
5 9 0 0 : DFEVar subTupleSize = (popEnable)? size: 0;
1898 109 1 0 : DFEVector<DFEVar> outTuple = buffer.popPush(subTupleSize, pushEnable2, input);
6 6 0 0 : DFEVar subTupleSize = (popEnable)? size: 0;
11348 299 2 0 : DFEVector<DFEVar> outTuple = buffer.popPush(subTupleSize, pushEnable2, input);
:
: dataRequestEnableLoop <== buffer.nextPushEnable();
:
Expand Down
Loading

0 comments on commit 8448257

Please sign in to comment.