barrel_shifter_16.v

来自「this module performs the task of a barre」· Verilog 代码 · 共 48 行

V
48
字号
//**********************************************************************************
//   Copyright (c) 2007 by WichipTech
//   All right reserved.
//
//   Copyright Notification
//   No part may be reproduced except as authorized by written permission.
//
//   TITLE  : Barrel shifter 16 bits
//   FILE   : barrel_shifter_16.v
//   Author : Tran, Minh-Cuong
//   E-mail : tmcuong@wichiptech.com
//   Tel    : +84-98-606-6694
//   Fax    :
//   DESCRIPTION:  Barrel shifter
//
//
//   ORGANIZATION: WiCHIP Technologies, Inc.
//                 106 - C5 - Thanh Xuan Bac
//                 HaNoi, VIETNAM
// *********************************************************************************


module	barrel_shifter_16(
			input_code,
			output_code,
			shift
		);

//**********************************************************************************
//         Input ports
//**********************************************************************************
input	[15:0]	input_code;		 	//input code
input	[3:0]	shift				//number of bits to shift

//**********************************************************************************
//         Output ports
//**********************************************************************************
output	[15:0]	output_code;		//output code

//**********************************************************************************
//         Signal declaration: reg
//**********************************************************************************

//**********************************************************************************
//         Signal declaration: wire
//**********************************************************************************
endmodule

⌨️ 快捷键说明

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