Code_coverage: condition RTL with the debug parameter (#1582)

This commit is contained in:
AEzzejjari 2023-10-31 17:35:59 +01:00 committed by GitHub
parent a34aca924e
commit 1faaec09bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 114 additions and 71 deletions

View file

@ -361,7 +361,7 @@ module frontend
end
// 7. Debug
// enter debug on a hard-coded base-address
if (set_debug_pc_i)
if (CVA6Cfg.DebugEn && set_debug_pc_i)
npc_d = CVA6Cfg.DmBaseAddress[riscv::VLEN-1:0] + CVA6Cfg.HaltAddress[riscv::VLEN-1:0];
icache_dreq_o.vaddr = fetch_address;
end