From d717e5481f21887010277d33edce9bf0146da892 Mon Sep 17 00:00:00 2001 From: WangXuan95 <629708558@qq.com> Date: Fri, 8 Apr 2022 14:02:37 +0800 Subject: [PATCH] update --- RTL/hard_png.sv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/RTL/hard_png.sv b/RTL/hard_png.sv index f38ef22..9fe6bcb 100644 --- a/RTL/hard_png.sv +++ b/RTL/hard_png.sv @@ -917,12 +917,12 @@ function automatic logic [7:0] paeth(input [7:0] a, input [7:0] b, input [7:0] c pa = p > sa ? p - sa : sa - p; pb = p > sb ? p - sb : sb - p; pc = p > sc ? p - sc : sc - p; - if (pa <= pb && pa <= pc) - return a; - else if (pb <= pc) - return b; - else - return c; + if (pa <= pb && pa <= pc) + return a; + else if (pb <= pc) + return b; + else + return c; endfunction reg nfirstrow = 1'b0;