yosys/manual/PRESENTATION_ExAdv/macc_xilinx_test.v

14 lines
271 B
Coq
Raw Normal View History

2014-02-20 16:44:28 -06:00
module test1(a, b, c, d, e, f, y);
2014-02-20 13:44:41 -06: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;
endmodule
2014-02-20 16:44:28 -06:00
module test2(a, b, c, d, e, f, y);
input [19:0] a, b, c;
input [15:0] d, e, f;
output [41:0] y;
assign y = a*b + (c*d + e*f);
endmodule