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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [rtl/] [xoddrserdesb.v] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 dgisselq
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Filename:    xoddrserdes.v
4
//
5
// Project:     A wishbone controlled DDR3 SDRAM memory controller.
6
//
7
// Purpose:     Provide DDR outputs at 8x the clock rate (with a 4x clock given)
8
//              for such things as the memory clock output, and the data strobe
9
//      output (DQS) which needs to be synchronous with the memory clock output.
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  xoddrserdesb(i_clk_fast, i_clk_slow, i_reset,
41
                i_data, o_pin_p, o_pin_n);
42
        input           i_clk_fast, i_clk_slow, i_reset;
43
        input   [7:0]    i_data;
44
        output  wire    o_pin_p, o_pin_n;
45
 
46
        wire            local_monitor_pin__unconnected;
47
        wire            oe_for_fabric__unconnected;
48
        wire    [1:0]    local_shiftout__unconnected;
49
        wire            local_tbyte_out__unconnected;
50
        wire            send_to_iob;
51
        wire            oe_for_iob;
52
 
53
        OSERDESE2       #(
54
                        .DATA_RATE_OQ("DDR"),
55
                        .DATA_RATE_TQ("BUF"),
56
                        .DATA_WIDTH(8), // 8 data wires sent per clkdiv
57
                        .INIT_OQ(1'b1),
58
                        .SERDES_MODE("MASTER"),
59
                        // 
60
                        .TRISTATE_WIDTH(1),
61
                        .INIT_TQ(1'b1),
62
                        .TBYTE_CTL("FALSE"),
63
                        .TBYTE_SRC("FALSE")
64
                ) oserdes_i(
65
                        .CLK(i_clk_fast),
66
                        .CLKDIV(i_clk_slow),
67
                        .OCE(1'b1),
68
                        .OFB(local_monitor_pin__unconnected),
69
                        .OQ(send_to_iob),
70
                        .RST(i_reset),
71
                        //
72
                        .TCE(1'b1),
73
                        .TQ(oe_for_iob),
74
                        .TFB(oe_for_fabric__unconnected),
75
                        .T1(1'b0), .T2(1'b0), .T3(1'b0), .T4(1'b0),
76
                        //
77
                        .SHIFTOUT1(local_shiftout__unconnected[0]),
78
                        .SHIFTOUT2(local_shiftout__unconnected[1]),
79
                        .SHIFTIN1(1'b0),
80
                        .SHIFTIN2(1'b0),
81
                        .TBYTEIN(1'b0),
82
                        .TBYTEOUT(local_tbyte_out__unconnected),
83
                        //
84
                        // And now for the actual data we wish to send
85
                        //
86
                        .D1(i_data[0]), .D2(i_data[1]),
87
                        .D3(i_data[2]), .D4(i_data[3]),
88
                        .D5(i_data[4]), .D6(i_data[5]),
89
                        .D7(i_data[6]), .D8(i_data[7])
90
                );
91
 
92
        OBUFDS  iobuf_i(
93
                        .I(send_to_iob),
94
                        .O(o_pin_p), .OB(o_pin_n));
95
 
96
endmodule
97
 

powered by: WebSVN 2.1.0

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