You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: David Rogoff
Original Redmine Issue: 373 from https://www.veripool.org
Original Date: 2011-08-09
Original Assignee: Wilson Snyder (@wsnyder)
Hi guys.
I'm using ports of type structure in my design. If it's just a structure, it's fine. However, if I have an array of structure, the AUTOINST and AUTOREGINPUT get confused and add an extra port/signal with the name of the typedef and not the structure instance.
Also, AUTOINST groups struct ports with interfaces. I don't know if this is intentional and if you want to separate these.
Thanks much,
David
Here are my files:
structs.vh:
typedef struct packed {
logic [7:0] data;
logic wr_ena;
} mystruct_s;
Author Name: David Rogoff
Original Redmine Issue: 373 from https://www.veripool.org
Original Date: 2011-08-09
Original Assignee: Wilson Snyder (@wsnyder)
Hi guys.
I'm using ports of type structure in my design. If it's just a structure, it's fine. However, if I have an array of structure, the AUTOINST and AUTOREGINPUT get confused and add an extra port/signal with the name of the typedef and not the structure instance.
Also, AUTOINST groups struct ports with interfaces. I don't know if this is intentional and if you want to separate these.
Thanks much,
David
Here are my files:
structs.vh:
typedef struct packed {
logic [7:0] data;
logic wr_ena;
} mystruct_s;
submod.v:
`include "structs.vh"
module submod
(input logic a_port,
input logic [4:0] b_bus,
input mystruct_s single_struct_is_fine,
input mystruct_s [2:0] array_of_struct_is_not,
output logic status);
endmodule // submod
top.v:
`include "structs.vh"
module top;
endmodule // top
The text was updated successfully, but these errors were encountered: