From 7c91576e279958d9db8d8eba037478306e2bee88 Mon Sep 17 00:00:00 2001 From: Paul Grigoras Date: Mon, 31 Aug 2015 18:32:44 +0100 Subject: [PATCH] Update first position when reading nonzero length --- .../dfe_snippets/sparse/ParallelCsrReadControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7172fc4..6917a11 100644 --- a/src/com/custom_computing_ic/dfe_snippets/sparse/ParallelCsrReadControl.java +++ b/src/com/custom_computing_ic/dfe_snippets/sparse/ParallelCsrReadControl.java @@ -79,13 +79,13 @@ protected void nextState() { IF (iLengthReady === true) { toread.next <== iLength; rowLengthData.next <== iLength; + firstReadPosition.next <== crtPos; IF (iLength === 0) { rowFinishedData.next <== 1; readEnableData.next <== 0; readMaskData.next <== 0; rowLengthData.next <== 0; cycleCounter.next <== 0; - firstReadPosition.next <== crtPos; readMaskOutValid.next <== true; rowsProcessed.next <== rowsProcessed + 1; //debug.simPrintf("Empty row \n");