From 483e375910baa3e9408e6cd9464f910ec891fab8 Mon Sep 17 00:00:00 2001 From: Rejeesh Kutty Date: Wed, 19 Aug 2015 14:54:38 -0400 Subject: [PATCH] dac/adc-rst: common ad-rst instance --- library/common/up_adc_common.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/common/up_adc_common.v b/library/common/up_adc_common.v index 373e9e8fa..dd7c4e531 100644 --- a/library/common/up_adc_common.v +++ b/library/common/up_adc_common.v @@ -156,7 +156,7 @@ module up_adc_common ( // internal registers - reg up_preset = 'd0; + reg up_core_preset = 'd0; reg up_mmcm_preset = 'd0; reg up_wack = 'd0; reg [31:0] up_scratch = 'd0; @@ -201,7 +201,7 @@ module up_adc_common ( always @(negedge up_rstn or posedge up_clk) begin if (up_rstn == 0) begin - up_preset <= 1'd1; + up_core_preset <= 1'd1; up_mmcm_preset <= 1'd1; up_wack <= 'd0; up_scratch <= 'd0; @@ -223,7 +223,7 @@ module up_adc_common ( up_adc_gpio_out <= 'd0; up_adc_start_code <= 'd0; end else begin - up_preset <= 1'd0; + up_core_preset <= 1'd0; up_mmcm_preset <= ~up_mmcm_resetn; up_wack <= up_wreq_s; if ((up_wreq_s == 1'b1) && (up_waddr[7:0] == 8'h02)) begin @@ -324,8 +324,8 @@ module up_adc_common ( // resets - ad_rst i_mmcm_rst_reg (.preset(up_mmcm_preset), .clk(up_clk), .rst(mmcm_rst)); - ad_rst i_adc_rst_reg (.preset(up_preset), .clk(adc_clk), .rst(adc_rst)); + ad_rst i_mmcm_rst_reg (.preset(up_mmcm_preset), .clk(up_clk), .rst(mmcm_rst)); + ad_rst i_core_rst_reg (.preset(up_core_preset), .clk(adc_clk), .rst(adc_rst)); // adc control & status