riscv-non-isa / riscv-trace-spec

RISC-V Processor Trace Specification
https://jira.riscv.org/browse/RVG-88
Creative Commons Attribution 4.0 International
159 stars 47 forks source link

What is the reset time of branch_map and pbc in branch prediction mode #104

Closed zhangdujiao closed 5 months ago

zhangdujiao commented 6 months ago

In the Branch prediction mode: When the branch_map is full and the correctly predicted branches count pbc is less than 31, format 1 is sent. After this, whether both branch_map and pbc need to be cleared to 0 or only branch_map is cleared to 0?

thanks!

IainCRobertson commented 6 months ago

Both. After sending a format 1, the encoder operates in normal branch map mode until 31 correct predictions have been reached.

Iain

From: zhangdujiao @.> Sent: 28 April 2024 09:53 To: riscv-non-isa/riscv-trace-spec @.> Cc: Subscribed @.***> Subject: [riscv-non-isa/riscv-trace-spec] What is the reset time of branch_map and pbc in branch prediction mode (Issue #104)

In the Branch prediction mode: When the branch_map is full and the correctly predicted branches count pbc is less than 31, format 1 is sent. After this, whether both branch_map and pbc need to be cleared to 0 or only branch_map is cleared to 0?

thanks!

- Reply to this email directly, view it on GitHubhttps://github.com/riscv-non-isa/riscv-trace-spec/issues/104, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQOPSTFFERNLJJKLSATYA3Y7S2H3AVCNFSM6AAAAABG42AFJWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DONBTGU4TOMQ. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

zhangdujiao commented 6 months ago

thanks! problem sovled!