Skip to content

Commit

Permalink
[hardware] Fix issue counter trimming for VSLIDEUP
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Mar 12, 2023
1 parent 54c4080 commit 4c35812
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hardware/src/sldu/sldu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,10 @@ module sldu import ara_pkg::*; import rvv_pkg::*; #(
issue_cnt_d = vinsn_issue_q.vl << int'(vinsn_issue_q.vtype.vsew);

// Initialize be-enable-generation ancillary signals
output_limit_d = pe_req_i.use_scalar_op ? out_pnt_d + issue_cnt_d : issue_cnt_d;
output_limit_d = vinsn_issue_q.use_scalar_op ? out_pnt_d + issue_cnt_d : issue_cnt_d;

// Trim vector elements which are not touched by the slide unit
if (!pe_req_i.use_scalar_op)
issue_cnt_d -= vinsn_issue_q.stride[$bits(issue_cnt_d)-1:0];
issue_cnt_d -= vinsn_issue_q.stride[$bits(issue_cnt_d)-1:0];

// Start writing at the middle of the destination vector
vrf_pnt_d = vinsn_issue_q.stride >> $clog2(8*NrLanes);
Expand Down

0 comments on commit 4c35812

Please sign in to comment.