aboutsummaryrefslogtreecommitdiffstats
path: root/manual/PRESENTATION_ExAdv/macc_simple_xmap.v
blob: 42f5bae958e594f7dcc3541934dd1bd8620708d6 (plain)
1
2
3
4
5
6
module macc_16_16_32(a, b, c, y);
input [15:0] a, b;
input [31:0] c;
output [31:0] y;
assign y = a*b + c;
endmodule
n class="p">[11:0] y; assign {y[11:4], y[1:0], y[3:2]} = {a, b, -{c, d}, ~{e, f}}; endmodule