文章详情

ID: 7406
实例类型: faq
分类: Propel (RISC-V)
相关:
产品系列: All FPGA

搜索答案数据库

Search Text Image

RISC-V CPU IP Core: Do Lattice RISC-V supports exception trap handler when writing data to an invalid address?

Description:

 

RISC-V SM(v1.5)/MC(v2.5) CPUs currently only support trap handler for read access error.


  1. When CPU read from an invalid instruction/data address range, it will cause an exception which trigger the trap handler.

  2. However, if CPU write to an invalid data address range which trigger a write bus error, it is non-blocking and will not trigger write exception trap handler.


Solution:

This is a known limitation. It is recommended for user to ensure RISC-V software implementation does not access invalid addresses which doesn't exist in the SoC system.