2014-02-20 23:44:28 +01:00
|
|
|
module test1(a, b, c, d, e, f, y);
|
2014-02-21 02:13:02 +01:00
|
|
|
input [19:0] a, b, c;
|
|
|
|
|
input [15:0] d, e, f;
|
|
|
|
|
output [41:0] y;
|
|
|
|
|
assign y = a*b + c*d + e*f;
|
2014-02-20 20:44:41 +01:00
|
|
|
endmodule
|
2014-02-20 23:44:28 +01:00
|
|
|
|
|
|
|
|
module test2(a, b, c, d, e, f, y);
|
2014-02-21 02:13:02 +01:00
|
|
|
input [19:0] a, b, c;
|
|
|
|
|
input [15:0] d, e, f;
|
|
|
|
|
output [41:0] y;
|
|
|
|
|
assign y = a*b + (c*d + e*f);
|
2014-02-20 23:44:28 +01:00
|
|
|
endmodule
|