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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [rtl/] [xoddr.v] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 dgisselq
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Filename:    xoddr.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 output necessary to make this happen for one pin only.
9
//      For the QSPI, this helps to make certain that as much of the logic
10
//      delay as possible has been removed from the path--to get the full
11
//      100MHz speed.
12
//
13
// Creator:     Dan Gisselquist, Ph.D.
14
//              Gisselquist Technology, LLC
15
//
16
////////////////////////////////////////////////////////////////////////////////
17
//
18
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
19
//
20
// This program is free software (firmware): you can redistribute it and/or
21
// modify it under the terms of  the GNU General Public License as published
22
// by the Free Software Foundation, either version 3 of the License, or (at
23
// your option) any later version.
24
//
25
// This program is distributed in the hope that it will be useful, but WITHOUT
26
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
27
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
28
// for more details.
29
//
30
// You should have received a copy of the GNU General Public License along
31
// with this program.  (It's in the $(ROOT)/doc directory, run make with no
32
// target there if the PDF file isn't present.)  If not, see
33
// <http://www.gnu.org/licenses/> for a copy.
34
//
35
// License:     GPL, v3, as defined and found on www.gnu.org,
36
//              http://www.gnu.org/licenses/gpl.html
37
//
38
//
39
////////////////////////////////////////////////////////////////////////////////
40
//
41
//
42
module  xoddr(i_clk, i_v, o_pin);
43
        input           i_clk;
44
        input   [1:0]    i_v;
45
        output          o_pin;
46
 
47
        wire    w_internal;
48
        reg     last;
49
 
50
        always @(posedge i_clk)
51
                last <= i_v[1];
52
 
53
        ODDR #(
54
                .DDR_CLK_EDGE("SAME_EDGE"),
55
                .INIT(1'b0),
56
                .SRTYPE("SYNC")
57
        ) ODDRi(
58
                .Q(o_pin),
59
                .C(i_clk),
60
                .CE(1'b1),
61
                .D1(last),      // Negative clock edge (goes first)
62
                .D2(i_v[0]),     // Positive clock edge
63
                .R(1'b0),
64
                .S(1'b0));
65
 
66
endmodule

powered by: WebSVN 2.1.0

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