Skip to content

Commit

Permalink
[i2c,dv] Remove +3 correction for coerced period in host_perf_vseq
Browse files Browse the repository at this point in the history
This is no longer necessary now that lowRISC#21813 has been merged. However, due
to the 'PERFTHRESHOLD = 0.80' fudge-factor in comparing the exp/obs SCL
period in this vseq, the check still passed.
This perf check should be made more stringent in the future.

Signed-off-by: Harry Callahan <[email protected]>
  • Loading branch information
hcallahan-lowrisc committed Mar 27, 2024
1 parent e050485 commit 3d6f0ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hw/ip/i2c/dv/env/seq_lib/i2c_host_perf_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ class i2c_host_perf_vseq extends i2c_rx_tx_vseq;
thigh.rand_mode(0);
// Coerce value after quantization. Actual frequency is different from the
// randomized setting, due to the granularity of the dividers.
// TODO(#18492): Remove round-trip latency of 3 cycles when appropriate fixes
// go into the RTL.
coerced_scl_period = t_r + t_f + thigh + tlow + 3;
coerced_scl_period = t_r + t_f + thigh + tlow;
coerced_scl_frequency = 10**9/(coerced_scl_period*cfg.clk_rst_vif.clk_period_ps);
endfunction

Expand Down

0 comments on commit 3d6f0ab

Please sign in to comment.