increase number of Memory ships to 3 in the large configuration
[fleet.git] / src / edu / berkeley / fleet / fpga / greg / ddr2_phy_dm_iob.v
1 //*****************************************************************************
2 // DISCLAIMER OF LIABILITY
3 //
4 // This text/file contains proprietary, confidential
5 // information of Xilinx, Inc., is distributed under license
6 // from Xilinx, Inc., and may be used, copied and/or
7 // disclosed only pursuant to the terms of a valid license
8 // agreement with Xilinx, Inc. Xilinx hereby grants you a
9 // license to use this text/file solely for design, simulation,
10 // implementation and creation of design files limited
11 // to Xilinx devices or technologies. Use with non-Xilinx
12 // devices or technologies is expressly prohibited and
13 // immediately terminates your license unless covered by
14 // a separate agreement.
15 //
16 // Xilinx is providing this design, code, or information
17 // "as-is" solely for use in developing programs and
18 // solutions for Xilinx devices, with no obligation on the
19 // part of Xilinx to provide support. By providing this design,
20 // code, or information as one possible implementation of
21 // this feature, application or standard, Xilinx is making no
22 // representation that this implementation is free from any
23 // claims of infringement. You are responsible for
24 // obtaining any rights you may require for your implementation.
25 // Xilinx expressly disclaims any warranty whatsoever with
26 // respect to the adequacy of the implementation, including
27 // but not limited to any warranties or representations that this
28 // implementation is free from claims of infringement, implied
29 // warranties of merchantability or fitness for a particular
30 // purpose.
31 //
32 // Xilinx products are not intended for use in life support
33 // appliances, devices, or systems. Use in such applications is
34 // expressly prohibited.
35 //
36 // Any modifications that are made to the Source Code are
37 // done at the user\92s sole risk and will be unsupported.
38 //
39 // Copyright (c) 2006-2007 Xilinx, Inc. All rights reserved.
40 //
41 // This copyright and support notice must be retained as part
42 // of this text at all times.
43 //*****************************************************************************
44 //   ____  ____
45 //  /   /\/   /
46 // /___/  \  /    Vendor: Xilinx
47 // \   \   \/     Version: 2.3
48 //  \   \         Application: MIG
49 //  /   /         Filename: ddr2_phy_dm_iob.v
50 // /___/   /\     Date Last Modified: $Date: 2008/05/21 14:53:09 $
51 // \   \  /  \    Date Created: Wed Aug 16 2006
52 //  \___\/\___\
53 //
54 //Device: Virtex-5
55 //Design Name: DDR2
56 //Purpose:
57 //   This module places the data mask signals into the IOBs.
58 //Reference:
59 //Revision History:
60 //*****************************************************************************
61
62 `timescale 1ns/1ps
63
64 module ddr2_phy_dm_iob
65   (
66    input  clk90,
67    input  dm_ce,
68    input  mask_data_rise,
69    input  mask_data_fall,
70    output ddr_dm
71    );
72
73   wire    dm_out;
74   wire    dm_ce_r;
75
76   FDRSE_1 u_dm_ce
77     (
78      .Q    (dm_ce_r),
79      .C    (clk90),
80      .CE   (1'b1),
81      .D    (dm_ce),
82      .R   (1'b0),
83      .S   (1'b0)
84      );
85
86   ODDR #
87     (
88      .SRTYPE("SYNC"),
89      .DDR_CLK_EDGE("SAME_EDGE")
90      )
91     u_oddr_dm
92       (
93        .Q  (dm_out),
94        .C  (clk90),
95        .CE (dm_ce_r),
96        .D1 (mask_data_rise),
97        .D2 (mask_data_fall),
98        .R  (1'b0),
99        .S  (1'b0)
100        );
101
102   OBUF u_obuf_dm
103     (
104      .I (dm_out),
105      .O (ddr_dm)
106      );
107
108 endmodule