2017-05-17 17:28:50 +00:00
|
|
|
//
|
|
|
|
// The ADI JESD204 Core is released under the following license, which is
|
|
|
|
// different than all other HDL cores in this repository.
|
|
|
|
//
|
|
|
|
// Please read this, and understand the freedoms and responsibilities you have
|
|
|
|
// by using this source code/core.
|
|
|
|
//
|
|
|
|
// The JESD204 HDL, is copyright © 2016-2017 Analog Devices Inc.
|
|
|
|
//
|
|
|
|
// This core is free software, you can use run, copy, study, change, ask
|
|
|
|
// questions about and improve this core. Distribution of source, or resulting
|
|
|
|
// binaries (including those inside an FPGA or ASIC) require you to release the
|
|
|
|
// source of the entire project (excluding the system libraries provide by the
|
|
|
|
// tools/compiler/FPGA vendor). These are the terms of the GNU General Public
|
|
|
|
// License version 2 as published by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// 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. See the GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License version 2
|
|
|
|
// along with this source code, and binary. If not, see
|
|
|
|
// <http://www.gnu.org/licenses/>.
|
|
|
|
//
|
|
|
|
// Commercial licenses (with commercial support) of this JESD204 core are also
|
|
|
|
// available under terms different than the General Public License. (e.g. they
|
|
|
|
// do not require you to accompany any image (FPGA or ASIC) using the JESD204
|
|
|
|
// core with any corresponding source code.) For these alternate terms you must
|
|
|
|
// purchase a license from Analog Devices Technology Licensing Office. Users
|
|
|
|
// interested in such a license should contact jesd204-licensing@analog.com for
|
|
|
|
// more information. This commercial license is sub-licensable (if you purchase
|
|
|
|
// chips from Analog Devices, incorporate them into your PCB level product, and
|
|
|
|
// purchase a JESD204 license, end users of your product will also have a
|
|
|
|
// license to use this core in a commercial setting without releasing their
|
|
|
|
// source code).
|
|
|
|
//
|
|
|
|
// In addition, we kindly ask you to acknowledge ADI in any program, application
|
|
|
|
// or publication in which you use this JESD204 HDL core. (You are not required
|
|
|
|
// to do so; it is up to your common sense to decide whether you want to comply
|
|
|
|
// with this request or not.) For general publications, we suggest referencing :
|
|
|
|
// “The design and implementation of the JESD204 HDL Core used in this project
|
|
|
|
// is copyright © 2016-2017, Analog Devices, Inc.”
|
|
|
|
//
|
|
|
|
|
2018-08-27 07:14:54 +00:00
|
|
|
`timescale 1ns/100ps
|
|
|
|
|
2017-05-17 17:28:50 +00:00
|
|
|
module jesd204_tx #(
|
2018-03-29 09:38:34 +00:00
|
|
|
parameter NUM_LANES = 1,
|
2019-08-26 14:53:17 +00:00
|
|
|
parameter NUM_LINKS = 1,
|
2019-10-01 15:12:11 +00:00
|
|
|
parameter NUM_OUTPUT_PIPELINE = 0,
|
|
|
|
parameter LINK_MODE = 1, // 2 - 64B/66B; 1 - 8B/10B
|
|
|
|
/* Only 4 is supported at the moment for 8b/10b and 8 for 64b */
|
2020-10-09 06:25:13 +00:00
|
|
|
parameter DATA_PATH_WIDTH = LINK_MODE[1] ? 8 : 4,
|
|
|
|
parameter ENABLE_CHAR_REPLACE = 1'b0
|
2017-05-17 17:28:50 +00:00
|
|
|
) (
|
|
|
|
input clk,
|
|
|
|
input reset,
|
|
|
|
|
2019-10-01 15:12:11 +00:00
|
|
|
output [DATA_PATH_WIDTH*8*NUM_LANES-1:0] phy_data,
|
|
|
|
output [DATA_PATH_WIDTH*NUM_LANES-1:0] phy_charisk,
|
|
|
|
output [2*NUM_LANES-1:0] phy_header,
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
input sysref,
|
|
|
|
output lmfc_edge,
|
|
|
|
output lmfc_clk,
|
|
|
|
|
2018-03-29 09:38:34 +00:00
|
|
|
input [NUM_LINKS-1:0] sync,
|
2017-05-17 17:28:50 +00:00
|
|
|
|
2019-10-01 15:12:11 +00:00
|
|
|
input [DATA_PATH_WIDTH*8*NUM_LANES-1:0] tx_data,
|
2017-05-17 17:28:50 +00:00
|
|
|
output tx_ready,
|
2020-09-28 14:29:47 +00:00
|
|
|
output [DATA_PATH_WIDTH-1:0] tx_eof,
|
|
|
|
output [DATA_PATH_WIDTH-1:0] tx_sof,
|
|
|
|
output [DATA_PATH_WIDTH-1:0] tx_somf,
|
|
|
|
output [DATA_PATH_WIDTH-1:0] tx_eomf,
|
2017-07-17 13:32:16 +00:00
|
|
|
input tx_valid,
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
input [NUM_LANES-1:0] cfg_lanes_disable,
|
2018-03-29 09:38:34 +00:00
|
|
|
input [NUM_LINKS-1:0] cfg_links_disable,
|
2020-01-30 22:05:13 +00:00
|
|
|
input [9:0] cfg_octets_per_multiframe,
|
2017-05-17 17:28:50 +00:00
|
|
|
input [7:0] cfg_octets_per_frame,
|
|
|
|
input [7:0] cfg_lmfc_offset,
|
|
|
|
input cfg_sysref_oneshot,
|
2017-05-17 17:28:50 +00:00
|
|
|
input cfg_sysref_disable,
|
2017-05-17 17:28:50 +00:00
|
|
|
input cfg_continuous_cgs,
|
|
|
|
input cfg_continuous_ilas,
|
|
|
|
input cfg_skip_ilas,
|
|
|
|
input [7:0] cfg_mframes_per_ilas,
|
|
|
|
input cfg_disable_char_replacement,
|
|
|
|
input cfg_disable_scrambler,
|
|
|
|
|
|
|
|
output ilas_config_rd,
|
|
|
|
output [1:0] ilas_config_addr,
|
2020-01-30 22:05:13 +00:00
|
|
|
input [NUM_LANES*DATA_PATH_WIDTH*8-1:0] ilas_config_data,
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
input ctrl_manual_sync_request,
|
|
|
|
|
|
|
|
output event_sysref_edge,
|
|
|
|
output event_sysref_alignment_error,
|
|
|
|
|
2018-03-29 09:38:34 +00:00
|
|
|
output [NUM_LINKS-1:0] status_sync,
|
2017-05-17 17:28:50 +00:00
|
|
|
output [1:0] status_state
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
localparam MAX_OCTETS_PER_FRAME = 32;
|
2017-05-17 17:28:50 +00:00
|
|
|
localparam MAX_OCTETS_PER_MULTIFRAME =
|
|
|
|
(MAX_OCTETS_PER_FRAME * 32) > 1024 ? 1024 : (MAX_OCTETS_PER_FRAME * 32);
|
|
|
|
localparam MAX_BEATS_PER_MULTIFRAME = MAX_OCTETS_PER_MULTIFRAME / DATA_PATH_WIDTH;
|
|
|
|
|
|
|
|
localparam LMFC_COUNTER_WIDTH = MAX_BEATS_PER_MULTIFRAME > 256 ? 9 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 128 ? 8 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 64 ? 7 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 32 ? 6 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 16 ? 5 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 8 ? 4 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 4 ? 3 :
|
|
|
|
MAX_BEATS_PER_MULTIFRAME > 2 ? 2 : 1;
|
|
|
|
|
|
|
|
localparam DW = DATA_PATH_WIDTH * 8 * NUM_LANES;
|
2019-08-26 14:53:17 +00:00
|
|
|
localparam CW = DATA_PATH_WIDTH * NUM_LANES;
|
2019-10-01 15:12:11 +00:00
|
|
|
localparam HW = 2 * NUM_LANES;
|
2017-05-17 17:28:50 +00:00
|
|
|
|
2019-08-26 14:53:17 +00:00
|
|
|
wire [DW-1:0] phy_data_r;
|
|
|
|
wire [CW-1:0] phy_charisk_r;
|
2019-10-01 15:12:11 +00:00
|
|
|
wire [HW-1:0] phy_header_r;
|
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
wire eof_gen_reset;
|
2020-09-28 14:29:47 +00:00
|
|
|
wire tx_ready_64b_next;
|
2020-01-30 22:05:13 +00:00
|
|
|
reg tx_ready_64b;
|
|
|
|
wire frame_mark_reset;
|
2020-09-28 14:29:47 +00:00
|
|
|
wire [DATA_PATH_WIDTH-1:0] tx_sof_fm;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] tx_eof_fm;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] tx_somf_fm;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] tx_eomf_fm;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_sof_fm_d1;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_eof_fm_d1;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_somf_fm_d1;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_eomf_fm_d1;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_sof_fm_d2;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_eof_fm_d2;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_somf_fm_d2;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_eomf_fm_d2;
|
2019-10-01 15:12:11 +00:00
|
|
|
wire lmc_edge;
|
|
|
|
wire lmc_quarter_edge;
|
|
|
|
wire eoemb;
|
2019-08-26 14:53:17 +00:00
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
jesd204_lmfc #(
|
|
|
|
.LINK_MODE(LINK_MODE),
|
|
|
|
.DATA_PATH_WIDTH(DATA_PATH_WIDTH)
|
|
|
|
) i_lmfc (
|
2017-05-17 17:28:50 +00:00
|
|
|
.clk(clk),
|
|
|
|
.reset(reset),
|
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
.cfg_octets_per_multiframe(cfg_octets_per_multiframe),
|
2017-05-17 17:28:50 +00:00
|
|
|
.cfg_lmfc_offset(cfg_lmfc_offset),
|
|
|
|
.cfg_sysref_oneshot(cfg_sysref_oneshot),
|
2017-05-17 17:28:50 +00:00
|
|
|
.cfg_sysref_disable(cfg_sysref_disable),
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
.sysref(sysref),
|
|
|
|
|
|
|
|
.sysref_edge(event_sysref_edge),
|
|
|
|
.sysref_alignment_error(event_sysref_alignment_error),
|
|
|
|
|
|
|
|
.lmfc_edge(lmfc_edge),
|
|
|
|
.lmfc_clk(lmfc_clk),
|
2019-10-01 15:12:11 +00:00
|
|
|
.lmfc_counter(),
|
|
|
|
.lmc_edge(lmc_edge),
|
|
|
|
.lmc_quarter_edge(lmc_quarter_edge),
|
|
|
|
.eoemb(eoemb)
|
2017-05-17 17:28:50 +00:00
|
|
|
);
|
|
|
|
|
2020-09-28 14:29:47 +00:00
|
|
|
assign frame_mark_reset = (LINK_MODE == 1) ? eof_gen_reset : ~tx_ready_64b_next;
|
2020-01-30 22:05:13 +00:00
|
|
|
|
|
|
|
jesd204_frame_mark #(
|
|
|
|
.DATA_PATH_WIDTH (DATA_PATH_WIDTH)
|
|
|
|
) i_frame_mark (
|
|
|
|
.clk (clk),
|
|
|
|
.reset (frame_mark_reset),
|
|
|
|
.cfg_octets_per_multiframe (cfg_octets_per_multiframe),
|
|
|
|
.cfg_octets_per_frame (cfg_octets_per_frame),
|
2020-09-28 14:29:47 +00:00
|
|
|
.sof (tx_sof_fm),
|
|
|
|
.eof (tx_eof_fm),
|
|
|
|
.somf (tx_somf_fm),
|
|
|
|
.eomf (tx_eomf_fm)
|
2020-01-30 22:05:13 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
always @(posedge clk) begin
|
2020-09-28 14:29:47 +00:00
|
|
|
tx_sof_fm_d1 <= tx_sof_fm;
|
|
|
|
tx_eof_fm_d1 <= tx_eof_fm;
|
|
|
|
tx_somf_fm_d1 <= tx_somf_fm;
|
|
|
|
tx_eomf_fm_d1 <= tx_eomf_fm;
|
|
|
|
tx_sof_fm_d2 <= tx_sof_fm_d1;
|
|
|
|
tx_eof_fm_d2 <= tx_eof_fm_d1;
|
|
|
|
tx_somf_fm_d2 <= tx_somf_fm_d1;
|
|
|
|
tx_eomf_fm_d2 <= tx_eomf_fm_d1;
|
2020-01-30 22:05:13 +00:00
|
|
|
end
|
|
|
|
|
2020-09-28 14:29:47 +00:00
|
|
|
assign tx_sof = (LINK_MODE == 1) ? tx_sof_fm_d2 : tx_sof_fm;
|
|
|
|
assign tx_eof = (LINK_MODE == 1) ? tx_eof_fm_d2 : tx_eof_fm;
|
|
|
|
assign tx_somf = (LINK_MODE == 1) ? tx_somf_fm_d2 : tx_somf_fm;
|
|
|
|
assign tx_eomf = (LINK_MODE == 1) ? tx_eomf_fm_d2 : tx_eomf_fm;
|
|
|
|
|
2019-10-01 15:12:11 +00:00
|
|
|
generate
|
|
|
|
genvar i;
|
|
|
|
|
|
|
|
if (LINK_MODE[0] == 1) begin : mode_8b10b
|
|
|
|
|
2020-09-28 14:29:47 +00:00
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_eof_fm_d3;
|
|
|
|
reg [DATA_PATH_WIDTH-1:0] tx_eomf_fm_d3;
|
2019-10-01 15:12:11 +00:00
|
|
|
wire [NUM_LANES-1:0] lane_cgs_enable;
|
|
|
|
wire [DW-1:0] ilas_data;
|
2020-01-30 22:05:13 +00:00
|
|
|
wire [DATA_PATH_WIDTH*NUM_LANES-1:0] ilas_charisk;
|
2019-10-01 15:12:11 +00:00
|
|
|
|
|
|
|
wire cfg_generate_eomf = 1'b1;
|
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
always @(posedge clk) begin
|
2020-09-28 14:29:47 +00:00
|
|
|
tx_eof_fm_d3 <= tx_eof_fm_d2;
|
|
|
|
tx_eomf_fm_d3 <= tx_eomf_fm_d2;
|
2020-01-30 22:05:13 +00:00
|
|
|
end
|
|
|
|
|
2017-05-17 17:28:50 +00:00
|
|
|
jesd204_tx_ctrl #(
|
|
|
|
.NUM_LANES(NUM_LANES),
|
2018-03-29 09:38:34 +00:00
|
|
|
.NUM_LINKS(NUM_LINKS),
|
2017-05-17 17:28:50 +00:00
|
|
|
.DATA_PATH_WIDTH(DATA_PATH_WIDTH)
|
|
|
|
) i_tx_ctrl (
|
|
|
|
.clk(clk),
|
|
|
|
.reset(reset),
|
|
|
|
|
|
|
|
.sync(sync),
|
|
|
|
.lmfc_edge(lmfc_edge),
|
2020-09-28 14:29:47 +00:00
|
|
|
.somf(tx_somf_fm_d2),
|
|
|
|
.somf_early2(tx_somf_fm),
|
|
|
|
.eomf(tx_eomf_fm_d2),
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
.lane_cgs_enable(lane_cgs_enable),
|
|
|
|
.eof_reset(eof_gen_reset),
|
|
|
|
|
|
|
|
.tx_ready(tx_ready),
|
|
|
|
|
|
|
|
.ilas_data(ilas_data),
|
|
|
|
.ilas_charisk(ilas_charisk),
|
|
|
|
|
|
|
|
.ilas_config_addr(ilas_config_addr),
|
|
|
|
.ilas_config_rd(ilas_config_rd),
|
|
|
|
.ilas_config_data(ilas_config_data),
|
|
|
|
|
|
|
|
.cfg_lanes_disable(cfg_lanes_disable),
|
2018-03-29 09:38:34 +00:00
|
|
|
.cfg_links_disable(cfg_links_disable),
|
2017-05-17 17:28:50 +00:00
|
|
|
.cfg_continuous_cgs(cfg_continuous_cgs),
|
|
|
|
.cfg_continuous_ilas(cfg_continuous_ilas),
|
|
|
|
.cfg_skip_ilas(cfg_skip_ilas),
|
|
|
|
.cfg_mframes_per_ilas(cfg_mframes_per_ilas),
|
2020-01-30 22:05:13 +00:00
|
|
|
.cfg_octets_per_multiframe(cfg_octets_per_multiframe),
|
2017-05-17 17:28:50 +00:00
|
|
|
.ctrl_manual_sync_request(ctrl_manual_sync_request),
|
|
|
|
|
|
|
|
.status_sync(status_sync),
|
|
|
|
.status_state(status_state)
|
|
|
|
);
|
|
|
|
|
2017-07-11 16:46:28 +00:00
|
|
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
localparam D_START = i * DATA_PATH_WIDTH*8;
|
|
|
|
localparam D_STOP = D_START + DATA_PATH_WIDTH*8-1;
|
|
|
|
localparam C_START = i * DATA_PATH_WIDTH;
|
|
|
|
localparam C_STOP = C_START + DATA_PATH_WIDTH-1;
|
|
|
|
|
|
|
|
jesd204_tx_lane #(
|
2020-10-09 06:25:13 +00:00
|
|
|
.DATA_PATH_WIDTH(DATA_PATH_WIDTH),
|
|
|
|
.ENABLE_CHAR_REPLACE(ENABLE_CHAR_REPLACE)
|
2017-05-17 17:28:50 +00:00
|
|
|
) i_lane (
|
|
|
|
.clk(clk),
|
|
|
|
|
2020-09-28 14:29:47 +00:00
|
|
|
.eof(tx_eof_fm_d3),
|
|
|
|
.eomf(tx_eomf_fm_d3),
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
.cgs_enable(lane_cgs_enable[i]),
|
|
|
|
|
|
|
|
.ilas_data(ilas_data[D_STOP:D_START]),
|
2020-01-30 22:05:13 +00:00
|
|
|
.ilas_charisk(ilas_charisk[C_STOP:C_START]),
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
.tx_data(tx_data[D_STOP:D_START]),
|
|
|
|
.tx_ready(tx_ready),
|
|
|
|
|
2019-08-26 14:53:17 +00:00
|
|
|
.phy_data(phy_data_r[D_STOP:D_START]),
|
|
|
|
.phy_charisk(phy_charisk_r[C_STOP:C_START]),
|
2017-05-17 17:28:50 +00:00
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
.cfg_octets_per_frame(cfg_octets_per_frame),
|
|
|
|
.cfg_disable_char_replacement(cfg_disable_char_replacement),
|
2017-05-17 17:28:50 +00:00
|
|
|
.cfg_disable_scrambler(cfg_disable_scrambler)
|
|
|
|
);
|
|
|
|
end
|
2019-10-01 15:12:11 +00:00
|
|
|
|
|
|
|
assign phy_header_r = 'h0;
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
if (LINK_MODE[1] == 1) begin : mode_64b66b
|
|
|
|
|
|
|
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
|
|
|
localparam D_START = i * DATA_PATH_WIDTH*8;
|
|
|
|
localparam D_STOP = D_START + DATA_PATH_WIDTH*8-1;
|
|
|
|
localparam H_START = i * 2;
|
|
|
|
localparam H_STOP = H_START + 2 -1;
|
|
|
|
jesd204_tx_lane_64b i_lane(
|
|
|
|
.clk(clk),
|
|
|
|
.reset(reset),
|
|
|
|
|
|
|
|
.tx_data(tx_data[D_STOP:D_START]),
|
2020-01-30 22:05:13 +00:00
|
|
|
.tx_ready(tx_ready_64b),
|
2019-10-01 15:12:11 +00:00
|
|
|
|
|
|
|
.phy_data(phy_data_r[D_STOP:D_START]),
|
|
|
|
.phy_header(phy_header_r[H_STOP:H_START]),
|
|
|
|
|
|
|
|
.lmc_edge(lmc_edge),
|
|
|
|
.lmc_quarter_edge(lmc_quarter_edge),
|
|
|
|
.eoemb(eoemb),
|
|
|
|
|
|
|
|
.cfg_disable_scrambler(cfg_disable_scrambler),
|
|
|
|
.cfg_header_mode(2'b0),
|
|
|
|
.cfg_lane_disable(cfg_lanes_disable[i])
|
|
|
|
);
|
|
|
|
end
|
|
|
|
|
2020-09-28 14:29:47 +00:00
|
|
|
assign tx_ready_64b_next = reset ? 1'b0 : (lmfc_edge || tx_ready_64b);
|
|
|
|
|
2019-10-01 15:12:11 +00:00
|
|
|
always @(posedge clk) begin
|
|
|
|
if (reset) begin
|
2020-01-30 22:05:13 +00:00
|
|
|
tx_ready_64b <= 1'b0;
|
2020-09-28 14:29:47 +00:00
|
|
|
end else begin
|
|
|
|
tx_ready_64b <= tx_ready_64b_next;
|
2019-10-01 15:12:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-01-30 22:05:13 +00:00
|
|
|
assign tx_ready = tx_ready_64b;
|
2019-10-01 15:12:11 +00:00
|
|
|
// Link considered in DATA phase when SYSREF received and LEMC clock started
|
|
|
|
// running
|
2020-01-30 22:05:13 +00:00
|
|
|
assign status_state = {2{tx_ready_64b}};
|
2019-10-01 15:12:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
assign phy_charisk_r = 'h0;
|
|
|
|
assign ilas_config_rd = 'h0;
|
|
|
|
assign ilas_config_addr = 'h0;
|
|
|
|
assign status_sync = 'h0;
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2017-05-17 17:28:50 +00:00
|
|
|
endgenerate
|
|
|
|
|
2019-10-01 15:12:11 +00:00
|
|
|
pipeline_stage #(
|
|
|
|
.WIDTH(CW + DW + HW),
|
|
|
|
.REGISTERED(NUM_OUTPUT_PIPELINE)
|
|
|
|
) i_output_pipeline_stage (
|
|
|
|
.clk(clk),
|
|
|
|
.in({
|
|
|
|
phy_data_r,
|
|
|
|
phy_charisk_r,
|
|
|
|
phy_header_r
|
|
|
|
}),
|
|
|
|
.out({
|
|
|
|
phy_data,
|
|
|
|
phy_charisk,
|
|
|
|
phy_header
|
|
|
|
})
|
|
|
|
);
|
|
|
|
|
2017-05-17 17:28:50 +00:00
|
|
|
endmodule
|