Skip to content

Commit fdb2e88

Browse files
committed
projects: ad9209_fmca_ebz: vck190: Expose LCPLL reset to axi_gpio
Signed-off-by: Bogdan Luncan <[email protected]>
1 parent 11102fd commit fdb2e88

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

projects/ad9209_fmca_ebz/vck190/system_top.v

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***************************************************************************
22
// ***************************************************************************
3-
// Copyright (C) 2023-2024 Analog Devices, Inc. All rights reserved.
3+
// Copyright (C) 2023-2025 Analog Devices, Inc. All rights reserved.
44
//
55
// In this HDL repository, there are many different and unique modules, consisting
66
// of various HDL (Verilog or VHDL) components. The individual modules are
@@ -111,16 +111,19 @@ module system_top #(
111111
wire [ 7:0] rx_data_p_loc;
112112
wire [ 7:0] rx_data_n_loc;
113113

114+
wire ref_clk;
114115
wire clkin10;
115116
wire rx_device_clk;
116117

117-
wire gt_reset;
118+
wire mst_reset;
119+
wire gt_lcpll_reset;
118120
wire rx_reset_pll_and_datapath;
119121
wire rx_reset_datapath;
120122
wire rx_resetdone;
121123
wire gt_powergood;
122124
wire gt_reset_s;
123125
wire mst_resetdone;
126+
wire gt_lcpllresetdone;
124127

125128
// instantiations
126129
IBUFDS_GTE5 i_ibufds_ref_clk (
@@ -193,9 +196,12 @@ module system_top #(
193196

194197
assign gpio_i[64] = rx_resetdone;
195198
assign gpio_i[66] = mst_resetdone;
199+
assign gpio_i[67] = gt_lcpllresetdone;
196200
assign gt_reset = gpio_o[67];
197201
assign rx_reset_pll_and_datapath = gpio_o[68];
198202
assign rx_reset_datapath = gpio_o[70];
203+
assign gt_lcpll_reset = gpio_o[72];
204+
assign mst_reset = gpio_o[73];
199205

200206
generate
201207
if (RX_NUM_LINKS > 1 & JESD_MODE == "8B10B") begin
@@ -221,11 +227,9 @@ module system_top #(
221227

222228
// Unused GPIOs
223229
assign gpio_i[59:57] = gpio_o[59:57];
224-
assign gpio_i[94:72] = gpio_o[94:72];
230+
assign gpio_i[94:74] = gpio_o[94:74];
225231
assign gpio_i[31:10] = gpio_o[31:10];
226232

227-
/* Reset should only be asserted if powergood is high */
228-
assign gt_reset_s = gt_reset & gt_powergood;
229233
assign mst_resetdone = rx_resetdone;
230234

231235
system_wrapper i_system_wrapper (
@@ -268,11 +272,14 @@ module system_top #(
268272
.rx_1_p (rx_data_p_loc[7:4]),
269273
.rx_1_n (rx_data_n_loc[7:4]),
270274

271-
.gt_reset (gt_reset_s),
275+
.gt_reset (mst_reset & gt_powergood),
276+
.gt_lcpllreset (gt_lcpll_reset),
272277
.gt_reset_rx_datapath (rx_reset_datapath),
273278
.gt_reset_rx_pll_and_datapath (rx_reset_pll_and_datapath),
274279
.gt_powergood (gt_powergood),
275280
.rx_resetdone (rx_resetdone),
281+
.gt_lcpllresetdone (gt_lcpllresetdone),
282+
276283
.ref_clk_q0 (ref_clk),
277284
.ref_clk_q1 (ref_clk),
278285
.rx_device_clk (rx_device_clk),

0 commit comments

Comments
 (0)