support nested interfaces

This commit is contained in:
Zachary Snow
2020-04-13 22:50:41 -04:00
parent c5ef5ea9e2
commit f381476161
3 changed files with 44 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
module top;
logic x = 1;
foo f(x);
endmodule
interface foo(input logic x);
bar a(x);
bar b(~x);
endinterface
interface bar(input logic x);
initial begin
$display("bar got %b", x);
end
endinterface