RoaLogic / plic

Platform Level Interrupt Controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Design Compiler Synthesis Error

cr8601 opened this issue · comments

Hi,
I am trying to run a simple synthesis with Synopsis Design Compiler and ending up in an error:

rtl/verilog/core/plic_dynamic_registers.sv:607: symbol register_function must be a constant or parameter. (VER-260)

Has this ever been tested with Design Compiler?

Best regards
cr8601

The problematic verilog is the case statement:
plic_dynamic_registers.sv#L607

register_function(r) is a function, but needs to be constant or parameter for synthesizable (system)-verilog

The function is declared here:
plic_dynamic_registers.sv#L211