From a7237baa87e3de82c4b813ae7aa96ea5a6215b20 Mon Sep 17 00:00:00 2001 From: Kip Macsai-Goren Date: Fri, 10 Feb 2023 10:37:06 -0800 Subject: [PATCH] fixed small errors to get regression to run with bit manip supported. --- src/ieu/bmu/clmul.sv | 19 ++++++++----------- src/ieu/bmu/popcnt.sv | 10 +++++++--- src/ieu/bmu/zbs.sv | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/ieu/bmu/clmul.sv b/src/ieu/bmu/clmul.sv index 5557283f..a83d014a 100644 --- a/src/ieu/bmu/clmul.sv +++ b/src/ieu/bmu/clmul.sv @@ -34,20 +34,17 @@ module clmul #(parameter WIDTH=32) ( output logic [WIDTH-1:0] ClmulResult); // ZBS result logic [WIDTH-1:0] pp [WIDTH-1:0]; //partial AND products + // Note: only generates the bottom WIDTH bits of the carryless multiply. + // To get the high bits or the reversed bits, the inputs can be shifted and reversed + // as they are in zbc where this is instantiated - genvar i,j; - for (i=1; i