From 570a628198d1b94ded77dac4b6421c5865b4567f Mon Sep 17 00:00:00 2001 From: Harshini Srinath <93847878+harshinisrinath1001@users.noreply.github.com> Date: Fri, 9 Jun 2023 08:50:51 -0700 Subject: [PATCH] Update subcachelineread.sv Code clean up --- src/cache/subcachelineread.sv | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cache/subcachelineread.sv b/src/cache/subcachelineread.sv index ea305fb6c..a70a80b1e 100644 --- a/src/cache/subcachelineread.sv +++ b/src/cache/subcachelineread.sv @@ -43,9 +43,8 @@ module subcachelineread #(parameter LINELEN, WORDLEN, logic [LINELEN+(WORDLEN-MUXINTERVAL)-1:0] ReadDataLinePad; logic [WORDLEN-1:0] ReadDataLineSets [(LINELEN/MUXINTERVAL)-1:0]; - if (PADLEN > 0) begin - assign ReadDataLinePad = {{PADLEN{1'b0}}, ReadDataLine}; - end else assign ReadDataLinePad = ReadDataLine; + if (PADLEN > 0) assign ReadDataLinePad = {{PADLEN{1'b0}}, ReadDataLine}; + else assign ReadDataLinePad = ReadDataLine; genvar index; for (index = 0; index < WORDSPERLINE; index++) begin:readdatalinesetsmux