?? mult4x4_u.v
字號:
//
// Module: MULT4X4_U
//
// Description: Verilog Sub-module
// 4-bit X 4-bit embedded unsigned multiplier (asynchronous)
//
// Device: Virtex-II Family
//
// Copyright (c) 2000 Xilinx, Inc. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////////
//
/**************************************
Theory for 4x4 bit multiplier
using lsb inputs, outputs
[14'b0][a{3:0}]
x [14'b0][b{3:0}]
---------------------------------
*************************************/
module MULT4X4_U (A,B,P);
input [3:0] A;
input [3:0] B;
output [7:0] P;
wire [35:0] Product;
//
// Instantiation Section
//
MULT18X18 U_MULT4X4_U
(
.A ({14{1'b0}, A}) ,
.B ({14{1'b0}, B}) ,
.P (Product)
);
assign P = Product[7:0];
//
////////////////////////////////////////////////////////////////////////////////////
endmodule
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -