ad9081_fmca_ebz/vck190: Reset GT with HMC7044 lock

Reset transceiver with a pulse
main
Laszlo Nagy 2021-09-21 07:33:27 +01:00 committed by Laszlo Nagy
parent 2562aead32
commit 3a1babe366
2 changed files with 14 additions and 2 deletions

View File

@ -137,6 +137,8 @@ if {$ADI_PHY_SEL == 1} {
create_bd_cell -type container -reference jesd_phy jesd204_phy
create_bd_port -dir I gt_reset
}
if {$ADI_PHY_SEL == 1} {
@ -322,7 +324,7 @@ if {$ADI_PHY_SEL == 1} {
ad_connect GND jesd204_phy/reset_rx_pll_and_datapath_in
ad_connect GND jesd204_phy/reset_tx_pll_and_datapath_in
ad_connect GND jesd204_phy/gt_reset_gt_bridge_ip_0
ad_connect gt_reset jesd204_phy/gt_reset_gt_bridge_ip_0
ad_connect axi_mxfe_rx_jesd/rx_axi/device_reset jesd204_phy/reset_rx_datapath_in
ad_connect axi_mxfe_tx_jesd/tx_axi/device_reset jesd204_phy/reset_tx_datapath_in

View File

@ -219,6 +219,15 @@ module system_top #(
assign gpio_i[94:54] = gpio_o[94:54];
assign gpio_i[31:10] = gpio_o[31:10];
reg ext_pll_lock,ext_pll_lock_d;
always @(posedge tx_device_clk) begin
ext_pll_lock <= gpio_i[43];
ext_pll_lock_d <= ext_pll_lock;
end
assign gt_reset = ext_pll_lock & ~ext_pll_lock_d;
system_wrapper i_system_wrapper (
.gpio0_i (gpio_i[31:0]),
.gpio0_o (gpio_o[31:0]),
@ -268,7 +277,8 @@ module system_top #(
.rx_sync_0 (rx_syncout),
.tx_sync_0 (tx_syncin),
.rx_sysref_0 (sysref),
.tx_sysref_0 (sysref)
.tx_sysref_0 (sysref),
.gt_reset (gt_reset)
);
assign rx_data_p_loc[RX_JESD_L*RX_NUM_LINKS-1:0] = rx_data_p[RX_JESD_L*RX_NUM_LINKS-1:0];