Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 787 Bytes

File metadata and controls

25 lines (19 loc) · 787 Bytes

mux (module)

Author : Foez Ahmed (foez.official@gmail.com)

TOP IO

Description

The mux module is a parameterized SystemVerilog module that implements a multiplexer. The module uses an assignment to select the appropriate output based on the select input. Added by: Anindya Kishore Choudhury (anindyakchoudhury@gmail.com)

Parameters

Name Type Dimension Default Value Description
ELEM_WIDTH int 8 width of each multiplexer input element
NUM_ELEM int 6 number of elements in the multiplexer

Ports

Name Direction Type Dimension Description
s_i input logic [$clog2(NUM_ELEM)-1:0] select
i_i input logic [NUM_ELEM-1:0][ELEM_WIDTH-1:0] Array of input bus
o_o output logic [ELEM_WIDTH-1:0] Output bus