generate consistent hashes within interface conversion

This commit is contained in:
Zachary Snow
2021-02-05 10:00:59 -05:00
parent dd1a9efb40
commit 490d96ba46
3 changed files with 54 additions and 9 deletions
+23
View File
@@ -0,0 +1,23 @@
interface Interface;
logic x;
endinterface
module ModuleC(Interface intf, input y);
initial $display("ModuleC %b %b", intf.x, y);
endmodule
module ModuleB(Interface intf, input y);
initial $display("ModuleB %b %b", intf.x, y);
ModuleC m[2:0] (intf, y);
endmodule
module ModuleA(Interface intf, input y);
initial $display("ModuleA %b %b", intf.x, y);
ModuleB m[2:0] (intf, y);
endmodule
module top;
logic y;
Interface intf();
ModuleA m[2:0] (intf, y);
endmodule