Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #1485

struct typedef io decleration with packed array does not instantiated correctly with AUTOINST

Added by Idan Regev about 2 months ago. Updated about 2 months ago.

Status:
NoFixNeeded
Priority:
Normal
Assignee:
Category:
Autos
% Done:

0%


Description

verilog-mode v2019-05-06-28bee25-vpo;

package a_pkg; typedef struct packed{ logic [7:0] a; logic b; } t_a_field; endpackage

module a #(parameter A=2) ( input a_pkg::t_a_field [A-1:0] userdata // );

using autoinst in other module: a #( .A(2) ) u_a ( /*AUTOINST*/ );

Result: AUTOINST of a will result of an error .a_pkg::t_a_field(a_pkg::t_a_field/*.[A-1:0]*/),

Current workaround Use a non packed array module a #(parameter A=2) ( input a_pkg::t_a_field userdata [A-1:0]// );

History

#1 Updated by Wilson Snyder about 2 months ago

  • Status changed from New to NoFixNeeded

You need to tell Verilog-Mode what are types. For example add to the end of your module and submodule files:

// Local Variables:
// verilog-typedef-regexp: "^t_" 
// End:

Also available in: Atom