mux16.v

来自「是一个用于soc的32bit risc核」· Verilog 代码 · 共 49 行

V
49 行
字号
/**************************************************************************************** MODULE:		Sub Level Multiplexer Block FILE NAME:	mux16.v VERSION:	1.0 DATE:		September 28th, 2001 AUTHOR:		Hossein Amidi COMPANY:	California Unique Electrical Co. CODE TYPE:	Register Transfer Level Instantiations:  DESCRIPTION: Sub Level RTL Multiplexer block Hossein Amidi (C) September 2001 California Unique Electric***************************************************************************************/ `timescale 1ns / 1psmodule MUX16 (	// Input					A_in,					B_in,					A_Select,					// Output					Out					);// Parameterparameter DataWidth = 32;parameter AddrWidth = 24;// Inputinput  [AddrWidth - 1 : 0]  A_in;input  [DataWidth - 1 : 0]  B_in;input  A_Select;// Outputoutput [DataWidth - 1 : 0]  Out;//Dataflow description of MUX16assign Out = A_Select ? B_in : {8'b0, A_in};endmodule

⌨️ 快捷键说明

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