convert wildcard bindings before interfaces

This commit is contained in:
Zachary Snow 2020-12-03 11:03:09 -07:00
parent 091520e4cd
commit 5c0f414dfa
3 changed files with 33 additions and 1 deletions

View File

@ -75,7 +75,6 @@ phases excludes =
, Convert.ParamType.convert
, Convert.SizeCast.convert
, Convert.Simplify.convert
, Convert.StarPort.convert
, Convert.Stream.convert
, Convert.Struct.convert
, Convert.TFBlock.convert
@ -94,6 +93,7 @@ phases excludes =
, Convert.Foreach.convert
, Convert.StringParam.convert
, selectExclude (Job.Interface, Convert.Interface.convert)
, Convert.StarPort.convert
, selectExclude (Job.Always , Convert.AlwaysKW.convert)
, selectExclude (Job.Succinct , Convert.RemoveComments.convert)
]

View File

@ -0,0 +1,21 @@
interface Interface(data);
input logic data;
initial #1 $display("Interface %b", data);
endinterface
module Module(intf);
Interface intf;
initial #2 $display("Module %b", intf.data);
endmodule
module top;
logic data;
Interface intf(.*);
Module m(.*);
initial begin
data = 0;
#1;
data = 1;
#1;
end
endmodule

View File

@ -0,0 +1,11 @@
module top;
reg data;
initial #1 $display("Interface %b", data);
initial #2 $display("Module %b", data);
initial begin
data = 0;
#1;
data = 1;
#1;
end
endmodule