[VTA][Runtime] fix hardcoded VerifyDep step#5471
[VTA][Runtime] fix hardcoded VerifyDep step#5471zhanghaohit wants to merge 1 commit intoapache:masterfrom
Conversation
|
@tqchen @tmoreau89 Could you kindly help review this PR? Thanks. |
95c551a to
3b0d179
Compare
tmoreau89
left a comment
There was a problem hiding this comment.
Thanks @zhanghaohit for the proposed change, moving away from a hardcoded value is the right move!
I find the ACC_DEP_DISTANCE to be confusing however. Ultimately it's derived from the latency (in cycles) it takes for a write to address X to be visible on the read port at address X. Maybe we can dub this SRAM_WRITE_TO_READ_LATENCY or something along those lines?
Thanks @tmoreau89 for the suggestion. I think The |
|
ping @tmoreau89 @zhanghaohit please followup :) |
Thanks @tqchen for the reminder. I think this PR depends on this PR in VTA repo. |
Bug Description
VerifyDep hardcode step check of 2, which is not true in other dependence settings (e.g., if we change the acc dependence distance in VTA hardware implementation)
Solution
add
ACC_DEP_DISTANCEin vta_config.json and use that to derive checkingstep.ACC_DEP_DISTANCEis also used in VTA hardware implementation when defining acc dependence distance (see here)