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_wr_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_wr_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_wr_gray_cntr
56
  (
57
   input        clk,
58
   input        reset,
59
   input        cnt_en,
60
   output [3:0] wgc_gcnt
61
   );
62
   reg [3:0]    d_in;
63
   wire [3:0]   gc_int;
64
 
65
   assign       wgc_gcnt = gc_int;
66
   always @(gc_int) begin
67
      case (gc_int)
68
        4'b0000 : d_in <= 4'b0001;  //1
69
        4'b0001 : d_in <= 4'b0011;  //3
70
        4'b0010 : d_in <= 4'b0110;  //6
71
        4'b0011 : d_in <= 4'b0010;  //2
72
        4'b0100 : d_in <= 4'b1100;  //c
73
        4'b0101 : d_in <= 4'b0100;  //4
74
        4'b0110 : d_in <= 4'b0111;  //7
75
        4'b0111 : d_in <= 4'b0101;  //5
76
        4'b1000 : d_in <= 4'b0000;  //0
77
        4'b1001 : d_in <= 4'b1000;  //8
78
        4'b1010 : d_in <= 4'b1011;  //b
79
        4'b1011 : d_in <= 4'b1001;  //9
80
        4'b1100 : d_in <= 4'b1101;  //d
81
        4'b1101 : d_in <= 4'b1111;  //f
82
        4'b1110 : d_in <= 4'b1010;  //a
83
        4'b1111 : d_in <= 4'b1110;  //e
84
        default : d_in <= 4'b0001;  //1
85
      endcase
86
   end
87
 
88
   FDCE bit0
89
     (
90
      .Q(gc_int[0]),
91
      .C(clk),
92
      .CE(cnt_en),
93
      .CLR(reset),
94
      .D(d_in[0])
95
      );
96
 
97
   FDCE bit1
98
     (
99
      .Q(gc_int[1]),
100
      .C(clk),
101
      .CE(cnt_en),
102
      .CLR(reset),
103
      .D(d_in[1])
104
      );
105
 
106
   FDCE bit2
107
     (
108
      .Q(gc_int[2]),
109
      .C(clk),
110
      .CE(cnt_en),
111
      .CLR(reset),
112
      .D(d_in[2])
113
      );
114
 
115
   FDCE bit3
116
     (
117
      .Q(gc_int[3]),
118
      .C(clk),
119
      .CE(cnt_en),
120
      .CLR(reset),
121
      .D(d_in[3])
122
      );
123
 
124
endmodule

powered by: WebSVN 2.1.0

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