其他分享
首页 > 其他分享> > n位乘加器(先乘后加)

n位乘加器(先乘后加)

作者:互联网

设计n位乘加器(先乘后加)Design a n-bit multiplier (firstly multiply and then add)

 
  1. module MAC_N
  2. #(
  3. parameter N = 16
  4. )
  5. (
  6. input [N - 1: 0 ] A,
  7. input [N - 1: 0 ] B,
  8. input [N - 1: 0 ] C,
  9. output [2*N - 1 : 0] R
  10. );
  11. assign R = A * B + C;
  12. endmodule

标签:先乘,后加,加器,assign,input,位乘
来源: https://www.cnblogs.com/amxiang/p/16263966.html