plic icon indicating copy to clipboard operation
plic copied to clipboard

Design Compiler Synthesis Error

Open cr8601 opened this issue 3 years ago • 2 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

cr8601 avatar Jun 16 '21 09:06 cr8601

Honestly I don’t know if this was tried with Design Compiler.

Can you point me to the error? This might be a case of just asking the question differently (i.e. rewriting RTL).

The ‘ dynamic_registers’  block is quite compiler heavy

Richard

Richard Herveille

Managing Director

Phone +31 (45) 405 5681

Cell +31 (6) 5207 2230

@.***

On 16/06/2021, 11:15, "cr8601" @.***> wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rherveille avatar Jun 16 '21 09:06 rherveille

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

cr8601 avatar Jun 16 '21 09:06 cr8601