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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [xilinx/] [s3adsp1800/] [rtl/] [verilog/] [xilinx_s3adsp_ddr2/] [s3adsp_ddr2_rd_gray_cntr.v] - Blame information for rev 568

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 568 julius
//*****************************************************************************
2
// DISCLAIMER OF LIABILITY
3
//
4
// This file contains proprietary and confidential information of
5
// Xilinx, Inc. ("Xilinx"), that is distributed under a license
6
// from Xilinx, and may be used, copied and/or disclosed only
7
// pursuant to the terms of a valid license agreement with Xilinx.
8
//
9
// XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION
10
// ("MATERIALS") "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
11
// EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING WITHOUT
12
// LIMITATION, ANY WARRANTY WITH RESPECT TO NONINFRINGEMENT,
13
// MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. Xilinx
14
// does not warrant that functions included in the Materials will
15
// meet the requirements of Licensee, or that the operation of the
16
// Materials will be uninterrupted or error-free, or that defects
17
// in the Materials will be corrected. Furthermore, Xilinx does
18
// not warrant or make any representations regarding use, or the
19
// results of the use, of the Materials in terms of correctness,
20
// accuracy, reliability or otherwise.
21
//
22
// Xilinx products are not designed or intended to be fail-safe,
23
// or for use in any application requiring fail-safe performance,
24
// such as life-support or safety devices or systems, Class III
25
// medical devices, nuclear facilities, applications related to
26
// the deployment of airbags, or any other applications that could
27
// lead to death, personal injury or severe property or
28
// environmental damage (individually and collectively, "critical
29
// applications"). Customer assumes the sole risk and liability
30
// of any use of Xilinx products in critical applications,
31
// subject only to applicable laws and regulations governing
32
// limitations on product liability.
33
//
34
// Copyright 2005, 2006, 2007 Xilinx, Inc.
35
// All rights reserved.
36
//
37
// This disclaimer and copyright notice must be retained as part
38
// of this file at all times.
39
//*****************************************************************************
40
//   ____  ____
41
//  /   /\/   /
42
// /___/  \  /   Vendor             : Xilinx
43
// \   \   \/    Version            : 3.6.1
44
//  \   \        Application        : MIG
45
//  /   /        Filename           : s3adsp_ddr2_rd_gray_cntr.v
46
// /___/   /\    Date Last Modified : $Date: 2010/11/26 18:25:42 $
47
// \   \  /  \   Date Created       : Mon May 2 2005
48
//  \___\/\___\
49
// Device       : Spartan-3/3A/3A-DSP
50
// Design Name  : DDR2 SDRAM
51
// Purpose      :
52
//*****************************************************************************
53
 
54
`timescale 1ns/100ps
55
module s3adsp_ddr2_rd_gray_cntr
56
  (
57
   input        clk90,
58
   input        reset90,
59
   input        cnt_en,
60
   output [3:0] rgc_gcnt
61
    );
62
 
63
   wire [3:0] gc_int;
64
   reg [3:0]  d_in;
65
   reg  reset90_r;
66
 
67
   assign rgc_gcnt = gc_int;
68
 
69
 
70
   always @( posedge clk90 )
71
     reset90_r <= reset90;
72
 
73
   always@(gc_int) begin
74
      case (gc_int)
75
        4'b0000:  d_in <= 4'b0001;  //1
76
        4'b0001:  d_in <= 4'b0011;  //3
77
        4'b0010:  d_in <= 4'b0110;  //6
78
        4'b0011:  d_in <= 4'b0010;  //2
79
        4'b0100:  d_in <= 4'b1100;  //c
80
        4'b0101:  d_in <= 4'b0100;  //4
81
        4'b0110:  d_in <= 4'b0111;  //7
82
        4'b0111:  d_in <= 4'b0101;  //5
83
        4'b1000:  d_in <= 4'b0000;  //0
84
        4'b1001:  d_in <= 4'b1000;  //8
85
        4'b1010:  d_in <= 4'b1011;  //b
86
        4'b1011:  d_in <= 4'b1001;  //9
87
        4'b1100:  d_in <= 4'b1101;  //d
88
        4'b1101:  d_in <= 4'b1111;  //f
89
        4'b1110:  d_in <= 4'b1010;  //a
90
        4'b1111:  d_in <= 4'b1110;  //e
91
        default : d_in <= 4'b0001;  //1
92
      endcase
93
   end
94
 
95
   FDRE bit0
96
     (
97
      .Q  (gc_int[0]),
98
      .C  (clk90),
99
      .CE (cnt_en),
100
      .D  (d_in[0]),
101
      .R  (reset90_r)
102
      );
103
 
104
   FDRE bit1
105
     (
106
      .Q  (gc_int[1]),
107
      .C  (clk90),
108
      .CE (cnt_en),
109
      .D  (d_in[1]),
110
      .R  (reset90_r)
111
      );
112
 
113
   FDRE bit2
114
     (
115
      .Q  (gc_int[2]),
116
      .C  (clk90),
117
      .CE (cnt_en),
118
      .D  (d_in[2]),
119
      .R  (reset90_r)
120
      );
121
 
122
   FDRE bit3
123
     (
124
      .Q  (gc_int[3]),
125
      .C  (clk90),
126
      .CE (cnt_en),
127
      .D  (d_in[3]),
128
      .R  (reset90_r)
129
      );
130
 
131
endmodule

powered by: WebSVN 2.1.0

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