n位乘加器(先乘后加)
作者:互联网
设计n位乘加器(先乘后加)Design a n-bit multiplier (firstly multiply and then add)
- module MAC_N
- #(
- parameter N = 16
- )
- (
- input [N - 1: 0 ] A,
- input [N - 1: 0 ] B,
- input [N - 1: 0 ] C,
- output [2*N - 1 : 0] R
- );
- assign R = A * B + C;
- endmodule
标签:先乘,后加,加器,assign,input,位乘 来源: https://www.cnblogs.com/amxiang/p/16263966.html