Entity: util_cpack2_impl

Diagram

NUM_OF_CHANNELS SAMPLES_PER_CHANNEL SAMPLE_DATA_WIDTH clk reset [NUM_OF_CHANNELS-1:0] enable [NUM_OF_CHANNELS-1:0] fifo_wr_en [NUM_OF_CHANNELS*SAMPLE_DATA_WIDTH*SAMPLES_PER_CHANNEL-1:0] fifo_wr_data packed_fifo_wr_overflow fifo_wr_overflow reg packed_fifo_wr_en reg packed_fifo_wr_sync reg [NUM_OF_CHANNELS*SAMPLE_DATA_WIDTH*SAMPLES_PER_CHANNEL-1:0] packed_fifo_wr_data

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:

  1. 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

  1. 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
NUM_OF_CHANNELS 4
SAMPLES_PER_CHANNEL 1
SAMPLE_DATA_WIDTH 16

Ports

Port name Direction Type Description
clk input
reset input
enable input [NUM_OF_CHANNELS-1:0]
fifo_wr_en input [NUM_OF_CHANNELS-1:0]
fifo_wr_overflow output
fifo_wr_data input [NUM_OF_CHANNELSSAMPLE_DATA_WIDTHSAMPLES_PER_CHANNEL-1:0]
packed_fifo_wr_en output reg
packed_fifo_wr_overflow input
packed_fifo_wr_sync output reg
packed_fifo_wr_data output reg [NUM_OF_CHANNELSSAMPLE_DATA_WIDTHSAMPLES_PER_CHANNEL-1:0]

Signals

Name Type Description
reset_data wire * Control signals from the pack shell. */
ready wire
interleaved_data wire [TOTAL_DATA_WIDTH-1:0] * Interleaved version of fifo_wr_data. */
out_data wire [TOTAL_DATA_WIDTH-1:0] * Output data and corresponding control signal from the routing network. */
out_sync wire
out_valid wire [NUM_OF_CHANNELS*SAMPLES_PER_CHANNEL-1:0]
data_wr_en wire * Only the first signal of fifo_rd_en is used. All others are ignored. The * only reason why fifo_rd_en has multiple entries is to keep the interface * somewhat backwards compatible to the previous upack. */

Constants

Name Type Value Description
TOTAL_DATA_WIDTH SAMPLE_DATA_WIDTH * SAMPLES_PER_CHANNEL * NUM_OF_CHANNELS

Processes

Type: always

Type: always

Instantiations

Description

  • Data at the input of the routing network should be interleaved. The cpack
  • core is supposed to accept deinterleaved data. This just rearrange the bits
  • in the data vector and does not consume any FPGA resources.
    */