mult17x17_u.v

来自「本人正在学习vhdl语言」· Verilog 代码 · 共 44 行

V
44 行
字号
//
// Module: MULT17X17_U
//
// Description: Verilog Sub-module
// 17-bit X 17-bit embedded unsigned multiplier (asynchronous)
//
// Device: Virtex-II Family
//
// Copyright (c) 2000 Xilinx, Inc.  All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////////
//
/**************************************
   Theory for 17x17 bit multiplier
    using lsb inputs, outputs

          [1'b0][a{16:0}]
        x [1'b0][b{16:0}]
     ---------------------------------
*************************************/
module MULT17X17_U (A,B,P);

input [16:0] A;
input [16:0] B;

output [33:0] P;
wire [35:0] Product;

//
// Instantiation Section
//

MULT18X18 U_MULT17X17_U
  (
    .A ({1{1'b0}, A}) , 
    .B ({1{1'b0}, B}) , 
    .P (Product)   
  );
assign P = Product[33:0];

//
////////////////////////////////////////////////////////////////////////////////////

endmodule

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?