Skip to content

Commit

Permalink
Add new tcl script for 2.5 GHz (might not be right), enable DOUBLEBIT
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmurthy committed Dec 10, 2024
1 parent a667fe7 commit f5f6bc4
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
52 changes: 52 additions & 0 deletions fpga_family/mgt/gtp_ethernet_2_50.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
set cfg_dict {
CONFIG.identical_val_tx_line_rate {2.50}
CONFIG.gt0_val {true}
CONFIG.gt0_val_drp_clock {50}
CONFIG.gt0_val_rx_refclk {REFCLK0_Q0}
CONFIG.gt0_val_tx_refclk {REFCLK0_Q0}
CONFIG.gt0_val_txbuf_en {true}
CONFIG.gt0_val_rxbuf_en {true}
CONFIG.gt0_val_port_rxslide {false}
CONFIG.gt0_usesharedlogic {0}
CONFIG.identical_val_rx_line_rate {2.50}
CONFIG.gt_val_tx_pll {PLL0}
CONFIG.gt_val_rx_pll {PLL0}
CONFIG.identical_val_tx_reference_clock {125.000}
CONFIG.identical_val_rx_reference_clock {125.000}
CONFIG.gt0_val_tx_line_rate {2.50}
CONFIG.gt0_val_tx_data_width {20}
CONFIG.gt0_val_tx_int_datawidth {20}
CONFIG.gt0_val_tx_reference_clock {125.000}
CONFIG.gt0_val_rx_line_rate {2.50}
CONFIG.gt0_val_rx_data_width {20}
CONFIG.gt0_val_rx_int_datawidth {20}
CONFIG.gt0_val_rx_reference_clock {125.000}
CONFIG.gt0_val_cpll_fbdiv {4}
CONFIG.gt0_val_cpll_rxout_div {4}
CONFIG.gt0_val_cpll_txout_div {4}
CONFIG.gt0_val_tx_buffer_bypass_mode {Auto}
CONFIG.gt0_val_txoutclk_source {false}
CONFIG.gt0_val_rx_buffer_bypass_mode {Auto}
CONFIG.gt0_val_rxusrclk {RXOUTCLK}
CONFIG.gt0_val_rxslide_mode {OFF}
CONFIG.gt0_val_port_txbufstatus {true}
CONFIG.gt0_val_port_rxbufstatus {true}
CONFIG.gt0_val_port_rxpmareset {true}
CONFIG.gt0_val_align_mcomma_det {true}
CONFIG.gt0_val_align_pcomma_det {true}
CONFIG.gt0_val_comma_preset {User_defined}
CONFIG.gt0_val_align_pcomma_value {1111110000}
CONFIG.gt0_val_align_mcomma_value {0011001111}
CONFIG.gt0_val_align_comma_enable {1111111111}
CONFIG.gt0_val_align_comma_double {true}
CONFIG.gt0_val_align_comma_word {Two_Byte_Boundaries}
CONFIG.gt0_val_port_rxpcommaalignen {false}
CONFIG.gt0_val_port_rxmcommaalignen {false}
CONFIG.gt0_val_dfe_mode {LPM-Auto}
CONFIG.gt0_val_rx_termination_voltage {Programmable}
CONFIG.gt0_val_rx_cm_trim {800}
CONFIG.gt0_val_port_rxdfereset {true}
CONFIG.gt0_val_pd_trans_time_to_p2 {100}
CONFIG.gt0_val_pd_trans_time_from_p2 {60}
CONFIG.gt0_val_pd_trans_time_non_p2 {25}
}
2 changes: 1 addition & 1 deletion projects/comms_top/gige_eth/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ ifneq (,$(findstring bit,$(MAKECMDGOALS)))
endif
endif

CLEAN += *.bit ../test/*.dat
CLEAN += *.bit *.bin ../test/*.dat
include $(BUILD_DIR)/bottom_rules.mk
2 changes: 1 addition & 1 deletion projects/comms_top/gige_eth/gige_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module gige_top (

localparam IPADDR = {8'd192, 8'd168, 8'd1, 8'd179};
localparam MACADDR = 48'h00105ad155b5;
localparam DOUBLEBIT = 0; // DOUBLEBIT = 1 fails hardware test
localparam DOUBLEBIT = 1; // XXX DOUBLEBIT = 1 fails hardware test

`define AC701
`ifdef AC701
Expand Down
5 changes: 4 additions & 1 deletion projects/comms_top/gige_eth/gtp_gige_top.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ set gt 0
set en8b10b 0
set endrp 0
set pll_type "PLL0"
add_gt_protocol $gt_type $MGT_CONFIG_DIR/gtp_ethernet.tcl $quad $gt $en8b10b $endrp $pll_type
# Stupid but working with 62.5 MHz clk:
# add_gt_protocol $gt_type $MGT_CONFIG_DIR/gtp_ethernet.tcl $quad $gt $en8b10b $endrp $pll_type
# for DOUBLEBIT experiments:
add_gt_protocol $gt_type $MGT_CONFIG_DIR/gtp_ethernet_2_50.tcl $quad $gt $en8b10b $endrp $pll_type

# proc add_aux_ip {ipname config_file module_name}
add_aux_ip clk_wiz $MGT_CONFIG_DIR/mgt_eth_clk.tcl mgt_eth_mmcm
Expand Down

0 comments on commit f5f6bc4

Please sign in to comment.