mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
fpga/common: Connect xcvr_ctrl_rst to QPLLs
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
a99815800b
commit
7d2f77a30b
@ -152,6 +152,17 @@ wire gt_rxprbslocked;
|
||||
|
||||
wire [15:0] gt_dmonitorout;
|
||||
|
||||
wire common_reset_in_int;
|
||||
|
||||
sync_reset #(
|
||||
.N(4)
|
||||
)
|
||||
sync_reset_common_reset_inst (
|
||||
.clk(drp_clk),
|
||||
.rst(drp_rst || xcvr_ctrl_rst),
|
||||
.out(common_reset_in_int)
|
||||
);
|
||||
|
||||
// QPLL0 reset and power down
|
||||
reg qpll0_reset_drp_reg = 1'b0;
|
||||
reg qpll0_reset_reg = 1'b1;
|
||||
@ -174,6 +185,10 @@ always @(posedge drp_clk) begin
|
||||
qpll0_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (common_reset_in_int) begin
|
||||
qpll0_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (drp_rst) begin
|
||||
qpll0_reset_reg <= 1'b1;
|
||||
qpll0_pd_reg <= QPLL0_PD;
|
||||
@ -210,6 +225,10 @@ always @(posedge drp_clk) begin
|
||||
qpll1_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (common_reset_in_int) begin
|
||||
qpll1_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (drp_rst) begin
|
||||
qpll1_reset_reg <= 1'b1;
|
||||
qpll1_pd_reg <= QPLL1_PD;
|
||||
|
@ -212,6 +212,17 @@ always @(posedge drp_clk) begin
|
||||
phy_rx_status_sync_2_reg <= phy_rx_status_sync_1_reg;
|
||||
end
|
||||
|
||||
wire common_reset_in_int;
|
||||
|
||||
sync_reset #(
|
||||
.N(4)
|
||||
)
|
||||
sync_reset_common_reset_inst (
|
||||
.clk(drp_clk),
|
||||
.rst(drp_rst || xcvr_ctrl_rst),
|
||||
.out(common_reset_in_int)
|
||||
);
|
||||
|
||||
// QPLL0 reset and power down
|
||||
reg qpll0_reset_drp_reg = 1'b0;
|
||||
reg qpll0_reset_reg = 1'b1;
|
||||
@ -234,6 +245,10 @@ always @(posedge drp_clk) begin
|
||||
qpll0_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (common_reset_in_int) begin
|
||||
qpll0_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (drp_rst) begin
|
||||
qpll0_reset_reg <= 1'b1;
|
||||
qpll0_pd_reg <= QPLL0_PD;
|
||||
@ -270,6 +285,10 @@ always @(posedge drp_clk) begin
|
||||
qpll1_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (common_reset_in_int) begin
|
||||
qpll1_reset_counter_reg <= 0;
|
||||
end
|
||||
|
||||
if (drp_rst) begin
|
||||
qpll1_reset_reg <= 1'b1;
|
||||
qpll1_pd_reg <= QPLL1_PD;
|
||||
|
Loading…
x
Reference in New Issue
Block a user