2021-03-04 13:07:56 -06:00
|
|
|
`default_nettype none
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
module module_scope_Example(o1, o2);
|
2021-03-04 13:07:56 -06:00
|
|
|
parameter [31:0] v1 = 10;
|
|
|
|
parameter [31:0] v2 = 20;
|
|
|
|
output [31:0] o1, o2;
|
2021-09-22 10:34:20 -05:00
|
|
|
assign module_scope_Example.o1 = module_scope_Example.v1;
|
|
|
|
assign module_scope_Example.o2 = module_scope_Example.v2;
|
2021-03-04 13:07:56 -06:00
|
|
|
endmodule
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
module module_scope_ExampleLong(o1, o2);
|
2021-03-04 13:07:56 -06:00
|
|
|
parameter [31:0] ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum1 = 10;
|
|
|
|
parameter [31:0] ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum2 = 20;
|
|
|
|
output [31:0] o1, o2;
|
2021-09-22 10:34:20 -05:00
|
|
|
assign module_scope_ExampleLong.o1 = module_scope_ExampleLong.ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum1;
|
|
|
|
assign module_scope_ExampleLong.o2 = module_scope_ExampleLong.ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum2;
|
2021-03-04 13:07:56 -06:00
|
|
|
endmodule
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
module module_scope_top(
|
2021-03-04 13:07:56 -06:00
|
|
|
output [31:0] a1, a2, b1, b2, c1, c2,
|
|
|
|
output [31:0] d1, d2, e1, e2, f1, f2
|
|
|
|
);
|
2021-09-22 10:34:20 -05:00
|
|
|
module_scope_Example a(a1, a2);
|
|
|
|
module_scope_Example #(1) b(b1, b2);
|
|
|
|
module_scope_Example #(1, 2) c(c1, c2);
|
|
|
|
module_scope_ExampleLong d(d1, d2);
|
|
|
|
module_scope_ExampleLong #(1) e(e1, e2);
|
|
|
|
module_scope_ExampleLong #(1, 2) f(f1, f2);
|
2021-03-04 13:07:56 -06:00
|
|
|
endmodule
|