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

请教一个关于BankedDataArray里的read_result ecc问题 #2305

Closed
janboeye opened this issue Sep 15, 2023 · 2 comments
Closed

请教一个关于BankedDataArray里的read_result ecc问题 #2305

janboeye opened this issue Sep 15, 2023 · 2 comments
Assignees

Comments

@janboeye
Copy link

janboeye commented Sep 15, 2023

你好

在BankedDataArray的代码里,

read_result(bank_index)(way_index).error_delayed := dcacheParameters.dataCode.decode(ecc_data_delayed).error

在ld指令的测试中,从波形上看,L1Dcache里error_delayed一直为高,不知道这个是否正常。

谢谢

@linjuanZ
Copy link
Member

linjuanZ commented Sep 19, 2023

您好,error_delayed 这个信号没有考虑使能信号,您还需要从波形里面关注一下读使能是否有效以及是否存在 bank 冲突:

(0 until LoadPipelineWidth).map(i => {
    // ... ...
    (0 until VLEN/DCacheSRAMRowBits).map( j =>{
      io.read_resp_delayed(i)(j) := bank_result_delayed(rr_div_addr)(rr_bank_addr(j))
      // error detection
      io.read_error_delayed(i)(j) := rr_read_fire && read_bank_error_delayed(rr_div_addr)(rr_bank_addr(j)) && !RegNext(io.bank_conflict_slow(i))
    })
  })

@janboeye
Copy link
Author

多谢。commit 62dfd6c3b0f051d061f4e8c2c855ef69ecba0d94上没有这处的改动,我再试试最新的代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants