ad_lvds_in: Add single ended option

main
Adrian Costina 2015-11-13 12:13:09 +02:00
parent bec4c8da84
commit 3c27b3a4c5
1 changed files with 11 additions and 1 deletions

View File

@ -64,6 +64,7 @@ module ad_lvds_in (
// parameters
parameter SINGLE_ENDED = 0;
parameter DEVICE_TYPE = 0;
parameter IODELAY_CTRL = 0;
parameter IODELAY_GROUP = "dev_if_delay_group";
@ -117,10 +118,19 @@ module ad_lvds_in (
// receive data interface, ibuf -> idelay -> iddr
IBUFDS i_rx_data_ibuf (
generate
if (SINGLE_ENDED == 1) begin
assign tx_data_out_n = 1'b0;
IBUF i_rx_data_ibuf (
.I (rx_data_in_p),
.O (rx_data_ibuf_s));
end else begin
IBUFDS i_rx_data_ibuf (
.I (rx_data_in_p),
.IB (rx_data_in_n),
.O (rx_data_ibuf_s));
end
endgenerate
if (DEVICE_TYPE == VIRTEX6) begin
(* IODELAY_GROUP = IODELAY_GROUP *)