diff --git a/src/com/custom_computing_ic/dfe_snippets/sparse/ParallelCsrReadControl.java b/src/com/custom_computing_ic/dfe_snippets/sparse/ParallelCsrReadControl.java index 061996c..69b520d 100644 --- a/src/com/custom_computing_ic/dfe_snippets/sparse/ParallelCsrReadControl.java +++ b/src/com/custom_computing_ic/dfe_snippets/sparse/ParallelCsrReadControl.java @@ -15,7 +15,6 @@ private enum Mode { ReadingLength, OutputtingCommands, Done, - Padding, } private final DFEsmStateEnum mode; @@ -23,7 +22,7 @@ private enum Mode { private final DFEsmPullInput iLength; private final DFEsmStateValue iLengthReady; private final DFEsmPushOutput oReadMask, oReadEnable, oRowFinished, oRowLength, oNnzCounter, oFirstReadPosition; - private final DFEsmInput vectorLoadCycles, nRows, nPartitions, paddingCycles; + private final DFEsmInput vectorLoadCycles, nRows, nPartitions; private final DFEsmPushOutput oVectorLoad; private final DFEsmStateValue outValid; @@ -46,7 +45,6 @@ public ParallelCsrReadControl(DFEManager owner, int inputWidth, boolean dbg) { vectorLoadCycles = io.scalarInput("vectorLoadCycles", dfeUInt(32)); nRows = io.scalarInput("nrows", dfeUInt(32)); nPartitions = io.scalarInput("nPartitions", dfeUInt(32)); - paddingCycles = io.scalarInput("paddingCycles", dfeUInt(32)); oReadMask = io.pushOutput("readmask", dfeUInt(inputWidth), 1); oReadEnable = io.pushOutput("readenable", dfeBool(), 1); @@ -98,12 +96,7 @@ void processRow() { mode.next <== Mode.VectorLoad; partitionsProcessed.next <== partitionsProcessed + 1; IF (partitionsProcessed === nPartitions - 1) { - IF (paddingCycles !== 0) { - mode.next <== Mode.Padding; - paddedOutputs.next <== 0; - } ELSE { - mode.next <== Mode.Done; - } + mode.next <== Mode.Done; } } ELSE { mode.next <== Mode.ReadingLength; @@ -118,16 +111,6 @@ protected void nextState() { iLengthReady.next <== iLengthReady(); SWITCH (mode) { - CASE (Mode.Padding) { - IF (outputNotStall()) { - debug.simPrintf("OUTPUT PADDING\n"); - paddedOutputs.next <== paddedOutputs + 1; - makeOutput(fls(), fls(), zero(inputWidth), zero(), zeroI(), crtPos, fls()); - IF (paddedOutputs === paddingCycles - 1) { - mode.next <== Mode.Done; - } - } - } CASE (Mode.Done) { // do nothing }