jesd204_soft_pcs_loopback_tb: Add parameter for lane polarity inversion

Add a parameter to the soft_pcs_loopback_tb that allows to test whether the
soft PCS modules work correctly when the lane polarity is inverted.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2018-04-05 16:45:18 +02:00 committed by Lars-Peter Clausen
parent 18f535d1ba
commit c514c5cc28
1 changed files with 5 additions and 2 deletions

View File

@ -45,6 +45,7 @@
module soft_pcs_loopback_tb;
parameter VCD_FILE = "soft_pcs_loopback_tb.vcd";
parameter DATA_PATH_WIDTH = 4;
parameter LANE_INVERT = 0;
`include "tb_base.v"
@ -96,7 +97,8 @@ module soft_pcs_loopback_tb;
end
jesd204_soft_pcs_tx #(
.DATA_PATH_WIDTH(DATA_PATH_WIDTH)
.DATA_PATH_WIDTH(DATA_PATH_WIDTH),
.INVERT_OUTPUTS(LANE_INVERT)
) i_soft_pcs_tx (
.clk(pcs_clk),
.reset(pcs_reset),
@ -108,7 +110,8 @@ module soft_pcs_loopback_tb;
);
jesd204_soft_pcs_rx #(
.DATA_PATH_WIDTH(DATA_PATH_WIDTH)
.DATA_PATH_WIDTH(DATA_PATH_WIDTH),
.INVERT_INPUTS(LANE_INVERT)
) i_soft_pcs_rx (
.clk(pcs_clk),
.reset(pcs_reset),