From 20ee10ea46f0147630831b3573afe2696c02e86c Mon Sep 17 00:00:00 2001 From: Rejeesh Kutty Date: Thu, 27 Aug 2015 11:14:03 -0400 Subject: [PATCH] common/ad_lvds_out- add single ended --- library/common/ad_lvds_out.v | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/library/common/ad_lvds_out.v b/library/common/ad_lvds_out.v index 14b380e38..5c3cdfd88 100644 --- a/library/common/ad_lvds_out.v +++ b/library/common/ad_lvds_out.v @@ -34,8 +34,6 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // *************************************************************************** // *************************************************************************** -// *************************************************************************** -// *************************************************************************** `timescale 1ns/100ps @@ -65,6 +63,7 @@ module ad_lvds_out ( // parameters parameter DEVICE_TYPE = 0; + parameter SINGLE_ENDED = 0; parameter IODELAY_ENABLE = 0; parameter IODELAY_CTRL = 0; parameter IODELAY_GROUP = "dev_if_delay_group"; @@ -157,10 +156,19 @@ module ad_lvds_out ( end endgenerate + generate + if (SINGLE_ENDED == 1) begin + assign tx_data_out_n = 1'b0; + OBUF i_tx_data_obuf ( + .I (tx_data_odelay_s), + .O (tx_data_out_p)); + end else begin OBUFDS i_tx_data_obuf ( .I (tx_data_odelay_s), .O (tx_data_out_p), .OB (tx_data_out_n)); + end + endgenerate endmodule