diff --git a/hw/ip/spatz/src/spatz_vlsu.sv b/hw/ip/spatz/src/spatz_vlsu.sv index e88486c..851f2b4 100644 --- a/hw/ip/spatz/src/spatz_vlsu.sv +++ b/hw/ip/spatz/src/spatz_vlsu.sv @@ -341,8 +341,8 @@ module spatz_vlsu // A is assumed to be Transposed in memory while B is in its original form // For loads, column counter is enabled by default // For stores, row counter is enabled by default - assign mx_cnt_en_row[port] = mem_spatz_req.op_arith.is_mx & mem_counter_en[port] & ((mem_spatz_req.op==VSE) | (mx_cnt_col_q[port] == mx_cnt_max_col)); - assign mx_cnt_en_col[port] = mem_spatz_req.op_arith.is_mx & mem_counter_en[port] & ((mem_spatz_req.op==VLE) | (mx_cnt_row_q[port] == mx_cnt_max_row)); + assign mx_cnt_en_row[port] = mem_spatz_req.op_arith.is_mx & mem_counter_en[port] & (mx_cnt_col_q[port] == mx_cnt_max_col); + assign mx_cnt_en_col[port] = mem_spatz_req.op_arith.is_mx & mem_counter_en[port]; // Count up to (tile_size - 1), and tile_size is power of 2 assign mx_cnt_clr_row[port] = mx_cnt_en_row[port] & (mx_cnt_row_q[port] == mx_cnt_max_row); assign mx_cnt_clr_col[port] = mx_cnt_en_col[port] & (mx_cnt_col_q[port] == mx_cnt_max_col);