Skip to content

Commit

Permalink
[hardware] Fix latches
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Nov 25, 2024
1 parent 68802b3 commit 77f4770
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hardware/src/lane/operand_queue.sv
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ module operand_queue import ara_pkg::*; import rvv_pkg::*; import cf_math_pkg::i
last_packet = 1'b0;

for (int i = 0; i < 2; i++) fp16[i] = '0;
for (int i = 0; i < 1; i++) fp32[i] = '0;
fp32 = '0;

// Reductions need to mask away the inactive elements
// A temporary solution is to send a neutral value directly
Expand Down
2 changes: 1 addition & 1 deletion hardware/src/lane/vmfpu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ module vmfpu import ara_pkg::*; import rvv_pkg::*; import fpnew_pkg::*;
: {vinsn_issue_q.use_vd_op, vinsn_issue_q.use_vs2, vinsn_issue_q.use_vs1};

for (int i = 0; i < 2; i++) fp16[i] = '0;
for (int i = 0; i < 1; i++) fp32[i] = '0;
fp32 = '0;

first_op_d = first_op_q;
simd_red_cnt_d = simd_red_cnt_q;
Expand Down
2 changes: 2 additions & 0 deletions hardware/src/masku/masku.sv
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
end

// Shuffle the VIOTA, VID byte enable signal
be_viota_shuf = '0;
for (int b = 0; b < (NrLanes*StrbWidth); b++) begin
automatic int shuffle_byte = shuffle_index(b, NrLanes, vinsn_issue.vtype.vsew);
be_viota_shuf[shuffle_byte] = be_viota_seq_d[b];
Expand All @@ -701,6 +702,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
// Prepare the background data with vtype.vsew encoding
result_queue_mask_seq = vinsn_issue.op inside {[VIOTA:VID]} ? '0 : masku_operand_m_seq | {NrLanes*DataWidth{vinsn_issue.vm}} | {NrLanes*DataWidth{vinsn_issue.op inside {[VMADC:VMSBC]}}};
background_data_init_seq = masku_operand_vd_seq | result_queue_mask_seq;
background_data_init_shuf = '0;
for (int b = 0; b < (NrLanes*StrbWidth); b++) begin
automatic int shuffle_byte = shuffle_index(b, NrLanes, vinsn_issue.vtype.vsew);
background_data_init_shuf[8*shuffle_byte +: 8] = background_data_init_seq[8*b +: 8];
Expand Down
3 changes: 3 additions & 0 deletions hardware/src/vlsu/addrgen.sv
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ module addrgen import ara_pkg::*; import rvv_pkg::*; #(
// Nothing to acknowledge
addrgen_ack_o = 1'b0;
addrgen_exception_o.valid = 1'b0;
addrgen_exception_o.gva = '0;
addrgen_exception_o.tinst = '0;
addrgen_exception_o.tval = '0;
addrgen_exception_o.tval2 = '0;
addrgen_exception_o.cause = '0;
addrgen_illegal_load_o = 1'b0;
addrgen_illegal_store_o = 1'b0;
Expand Down

0 comments on commit 77f4770

Please sign in to comment.