altera- clock variations

main
Rejeesh Kutty 2016-04-28 15:46:27 -04:00
parent 243d3e6e41
commit 89f5d2394e
2 changed files with 12 additions and 26 deletions

View File

@ -49,29 +49,13 @@ module ad_cmos_clk (
input clk_in;
output clk;
// wires
wire clk_ibuf_s;
// instantiations
IBUFG i_rx_clk_ibuf (
.I (clk_in),
.O (clk_ibuf_s));
generate
if (DEVICE_TYPE == VIRTEX6) begin
BUFR #(.BUFR_DIVIDE("BYPASS")) i_clk_rbuf (
.CLR (1'b0),
.CE (1'b1),
.I (clk_ibuf_s),
.O (clk));
end else begin
BUFG i_clk_gbuf (
.I (clk_ibuf_s),
.O (clk));
end
endgenerate
alt_clk i_clk (
.rst (1'b0),
.refclk (clk_in),
.outclk_0 (clk),
.locked ());
endmodule

View File

@ -34,8 +34,6 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// ***************************************************************************
// ***************************************************************************
// ***************************************************************************
// ***************************************************************************
`timescale 1ns/100ps
@ -46,14 +44,18 @@ module ad_lvds_clk (
clk);
parameter DEVICE_TYPE = 0;
localparam SERIES7 = 0;
localparam VIRTEX6 = 1;
input clk_in_p;
input clk_in_n;
output clk;
assign clk = clk_in_p;
// instantiations
alt_clk i_clk (
.rst (1'b0),
.refclk (clk_in_p),
.outclk_0 (clk),
.locked ());
endmodule