OpenCores
URL https://opencores.org/ocsvn/openarty/openarty/trunk

Subversion Repositories openarty

[/] [openarty/] [trunk/] [rtl/] [xioddrds.v] - Blame information for rev 60

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 dgisselq
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Filename:    xioddrds.v
4
//
5
// Project:     OpenArty, an entirely open SoC based upon the Arty platform
6
//
7
// Purpose:     For the DDR3 SDRAM, this handles the Xilinx specific portions
8
//              of the IO necessary to make this happen for differential I/O
9
//      pins.
10
//
11
// Creator:     Dan Gisselquist, Ph.D.
12
//              Gisselquist Technology, LLC
13
//
14
////////////////////////////////////////////////////////////////////////////////
15
//
16
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
17
//
18
// This program is free software (firmware): you can redistribute it and/or
19
// modify it under the terms of  the GNU General Public License as published
20
// by the Free Software Foundation, either version 3 of the License, or (at
21
// your option) any later version.
22
//
23
// This program is distributed in the hope that it will be useful, but WITHOUT
24
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
25
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26
// for more details.
27
//
28
// You should have received a copy of the GNU General Public License along
29
// with this program.  (It's in the $(ROOT)/doc directory, run make with no
30
// target there if the PDF file isn't present.)  If not, see
31
// <http://www.gnu.org/licenses/> for a copy.
32
//
33
// License:     GPL, v3, as defined and found on www.gnu.org,
34
//              http://www.gnu.org/licenses/gpl.html
35
//
36
//
37
////////////////////////////////////////////////////////////////////////////////
38
//
39
//
40
module  xioddrds(i_clk, i_oe, i_v, o_v, io_p, io_n);
41
        input   i_clk, i_oe;
42
        input   [1:0]    i_v;
43
        output  [1:0]    o_v;
44
        inout           io_p, io_n;
45
 
46
        wire    w_internal, w_read_path;
47
 
48
        ODDR #(
49
                .DDR_CLK_EDGE("SAME_EDGE"),
50
                .INIT(1'b0),
51
                .SRTYPE("SYNC")
52
        ) ODDRi(
53
                .Q(w_internal),
54
                .C(i_clk),
55
                .CE(1'b1),
56
                .D1(i_v[0]),
57
                .D2(i_v[1]),
58
                .R(1'b0),
59
                .S(1'b0));
60
 
61
        IDDR #(
62
                .DDR_CLK_EDGE("SAME_EDGE_PIPELINED"),
63
                .INIT_Q1(1'b0),
64
                .INIT_Q2(1'b0),
65
                .SRTYPE("SYNC")
66
        ) IDDRi(
67
                .Q1(o_v[0]),
68
                .Q2(o_v[1]),
69
                .C(i_clk),
70
                .CE(1'b1),
71
                .D(w_read_path),
72
                .R(1'b0),
73
                .S(1'b0));
74
 
75
        IOBUFDS #(
76
                .DIFF_TERM("FALSE"),
77
                .IBUF_LOW_PWR("TRUE"),
78
                .IOSTANDARD("DIFF_SSTL135"),
79
                .SLEW("FAST")
80
        ) IOBUFDSi(
81
                .O(w_read_path),
82
                .IO(io_p),.IOB(io_n),
83
                .I(w_internal),
84
                .T(i_oe));
85
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.