zero-day-labs / riscv-iommu

IOMMU IP compliant with the RISC-V IOMMU Specification v1.0
Apache License 2.0
66 stars 12 forks source link

Wrong cause_code if pc.ta.v == 0 #25

Open mhayat-10xe opened 1 month ago

mhayat-10xe commented 1 month ago

The spec states that:

  1. If PC.ta.V == 0, stop and report "PDT entry not valid" (cause = 266).

Here is the counter-example of the violation of the spec where in cycle 11 when pc.ta.v == 0, then in the next cycle RTL is not giving cause_code == 266 instead it is giving cause_code == 267 which is wrong. image