URL
https://opencores.org/ocsvn/embedded_risc/embedded_risc/trunk
Subversion Repositories embedded_risc
[/] [embedded_risc/] [trunk/] [Verilog/] [MUX16.V] - Rev 27
Compare with Previous | Blame | View Log
/****************************************************************************************MODULE: Sub Level Multiplexer BlockFILE NAME: mux16.vVERSION: 1.0DATE: September 28th, 2001AUTHOR: Hossein AmidiCOMPANY: California Unique Electrical Co.CODE TYPE: Register Transfer LevelInstantiations:DESCRIPTION:Sub Level RTL Multiplexer blockHossein Amidi(C) September 2001California Unique Electric***************************************************************************************/`timescale 1ns / 1psmodule MUX16 ( // InputA_in,B_in,A_Select,// OutputOut);// 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
