Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tlul,rtl] Correct the calculation of data_intg in tlul_adapter_sram #25925

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions hw/ip/rom_ctrl/dv/cov/rom_ctrl_cov_excl.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ Condition 21 "3623514242" "(d_valid & rspfifo_rvalid & (reqfifo_rdata.op == OpRe
// popped again before anything appears in the response fifo.
Condition 24 "1059982851" "(vld_rd_rsp & ((~d_error))) 1 -1" (2 "10")

// The reason for condition 24 explains why we can't get (vld_rd_rsp && reqfifo_rdata.error) = 1 as
// if vld_rd_rsp = 1, this means that rspfifo_rvalid = 1. But when we have reqfifo_rdata.error, the
// request from the req_fifo gets popped again before becoming visible to response fifo. This also
// explains why we can't expect 1 and 11 for condition 25 and 26 respectively.
Condition 25 "2807788926" "((vld_rd_rsp && reqfifo_rdata.error) ? error_blanking_integ :
(vld_rd_rsp ? rspfifo_rdata.data_intg :
prim_secded_pkg::SecdedInv3932ZeroEcc)) 1 -1" (2 "1")
Condition 26 "561780173" "(vld_rd_rsp && reqfifo_rdata.error) 1 -1" (3 "11")

// We cannot see d_valid = 0 and d_error = 1. For d_error to be true, we need reqfifo_rvalid to be
// true. But then the only way for d_valid to be false is if rspfifo_rvalid is false (and
// reqfifo_rdata.op is OpRead).
Expand Down
6 changes: 3 additions & 3 deletions hw/ip/tlul/rtl/tlul_adapter_sram.sv
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ module tlul_adapter_sram
// If this a write response with data fields set to 0, we have to set all ECC bits correctly
// since we are using an inverted Hsiao code.
logic [DataIntgWidth-1:0] data_intg;
assign data_intg = (vld_rd_rsp && reqfifo_rdata.error) ? error_blanking_integ : // TL-UL error
(vld_rd_rsp) ? rspfifo_rdata.data_intg : // valid read
prim_secded_pkg::SecdedInv3932ZeroEcc; // valid write
assign data_intg = (reqfifo_rdata.error) ? error_blanking_integ : // TL-UL error
(vld_rd_rsp) ? rspfifo_rdata.data_intg : // valid read
prim_secded_pkg::SecdedInv3932ZeroEcc; // valid write

// When an error is seen on an incoming transaction it gets an immediate response without
// performing an SRAM request. It may be the transaction receives a ready the first cycle it is
Expand Down
Loading