2023-08-18 07:55:04 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
// Copyright (C) 2017, 2018, 2020-2022 Analog Devices, Inc. All rights reserved.
|
|
|
|
// SPDX short identifier: ADIJESD204
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
2020-01-30 22:05:13 +00:00
|
|
|
|
|
|
|
`timescale 1ns/100ps
|
|
|
|
|
|
|
|
module jesd204_frame_mark_tb;
|
|
|
|
|
2022-04-08 10:21:52 +00:00
|
|
|
parameter VCD_FILE = "jesd204_frame_mark_tb.vcd";
|
|
|
|
`define TIMEOUT 1000000
|
|
|
|
`include "tb_base.v"
|
2020-01-30 22:05:13 +00:00
|
|
|
|
2022-04-08 10:21:52 +00:00
|
|
|
localparam DATA_PATH_WIDTH = 8;
|
2020-01-30 22:05:13 +00:00
|
|
|
|
2022-04-08 10:21:52 +00:00
|
|
|
wire [9:0] cfg_octets_per_multiframe = 23;
|
|
|
|
wire [7:0] cfg_beats_per_multiframe = 2;
|
|
|
|
wire [7:0] cfg_octets_per_frame = 5;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] sof;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] somf;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] eof;
|
|
|
|
wire [DATA_PATH_WIDTH-1:0] eomf;
|
2020-01-30 22:05:13 +00:00
|
|
|
|
2022-04-08 10:21:52 +00:00
|
|
|
jesd204_frame_mark #(
|
|
|
|
.DATA_PATH_WIDTH (DATA_PATH_WIDTH)
|
|
|
|
) frame_mark (
|
|
|
|
.clk (clk),
|
|
|
|
.reset (reset),
|
|
|
|
.cfg_octets_per_multiframe (cfg_octets_per_multiframe),
|
|
|
|
.cfg_beats_per_multiframe (cfg_beats_per_multiframe),
|
|
|
|
.cfg_octets_per_frame (cfg_octets_per_frame),
|
|
|
|
.sof (sof),
|
|
|
|
.eof (eof),
|
|
|
|
.somf (somf),
|
|
|
|
.eomf (eomf));
|
2020-01-30 22:05:13 +00:00
|
|
|
|
2020-12-07 12:16:30 +00:00
|
|
|
endmodule
|