Entity: pack_interconnect
- File: pack_interconnect.v
Diagram
Description
Copyright 2018 (c) Analog Devices, Inc. All rights reserved.
In this HDL repository, there are many different and unique modules, consisting of various HDL (Verilog or VHDL) components. The individual modules are developed independently, and may be accompanied by separate and unique license terms.
The user should read each of these license terms, and understand the freedoms and responsabilities that he or she has by using this source/core.
This core is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Redistribution and use of source or resulting binaries, with or without modification of this file, are permitted under one of the following two license terms:
- The GNU General Public License version 2 as published by the Free Software Foundation, which can be found in the top level directory of this repository (LICENSE_GPL2), and also online at: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
OR
- An ADI specific BSD license, which can be found in the top level directory of this repository (LICENSE_ADIBSD), and also on-line at: https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD This will allow to generate bit files and not release the source code, as long as it attaches to an ADI device.
Generics
Generic name | Type | Value | Description |
---|---|---|---|
PORT_DATA_WIDTH | 16 | ||
PORT_ADDRESS_WIDTH | 3 | ||
MUX_ORDER | 2 | ||
NUM_STAGES | 2 | ||
PACK | 0 | 0 = Unpack, 1 = Pack |
Ports
Port name | Direction | Type | Description |
---|---|---|---|
ctrl | input | [2*PORT_ADDRESS_WIDTHMUX_ORDER*NUM_STAGES-1:0] | |
data_in | input | [PORT_DATA_WIDTH * 2**PORT_ADDRESS_WIDTH-1:0] | |
data_out | output | [PORT_DATA_WIDTH * 2**PORT_ADDRESS_WIDTH-1:0] |
Signals
Name | Type | Description |
---|---|---|
interconnect | wire [TOTAL_DATA_WIDTH-1:0] |
Constants
Name | Type | Value | Description |
---|---|---|---|
NUM_PORTS | 2**PORT_ADDRESS_WIDTH | * This module implements the interconnect for pack or unpack core. * The interconnect is made up of NUM_STAGES stages. Each stage is made up of * multiple MUXs (one for each port) and a perfect shuffle. * * The number of inputs per MUX is 2MUX_ORDER. * The number of ports is 2PORT_ADDRESS_WIDTH. */ | |
TOTAL_DATA_WIDTH | PORT_DATA_WIDTH * NUM_PORTS |