Knowledge Base Article

Error(14394): Verilog HDL error at <module_name>.sv(<line>): vector/single is not declared under the prefix ""

Description

Due to a problem in the Quartus® Prime Pro Edition Software version 26.1.1 or earlier, you might see this error when synthesizing the SystemVerilog HDL code where a typedef struct declared inside an interface is referenced within a nested submodule.

The SystemVerilog HDL code as below:

interface my_interface

#(

parameter int WIDTH = 1

)();

typedef struct packed {

logic single;

logic [WIDTH-1:0] vector;

} MY_STRUCT;

logic req;

logic ack;

MY_STRUCT data;

modport src

(

output req,

input ack,

output data

);

modport dst

(

input req,

output ack,

input data

);

endinterface

module testmodule

(

input wire clock,

my_interface.dst data_in,

my_interface.src data_out

);

typedef data_in.MY_STRUCT ITYPE;

typedef data_out.MY_STRUCT OTYPE;

…

ITYPE demo_in;

OTYPE demo_out;

assign demo_in = data_in.data;

assign data_out.data = demo_out;

submodule my_sub

(

.data_in ( demo_in ),

.data_out ( demo_out )

);

module submodule

(

input ITYPE data_in,

output OTYPE data_out

);

…

endmodule

endmodule
Resolution

To work around this problem in the Quartus® Prime Pro Edition Software version 26.1, download and install the patch 0.37 below.

This problem is scheduled to be fixed in a future release of the Quartus® Prime Pro Edition Software.

Updated 1 month ago
Version 2.0
No CommentsBe the first to comment