Xué video camera
Sign in or create your account | Project List | Help
Xué video camera Git Source Tree
Root/
| 1 | /**************************************************************************************** |
| 2 | * |
| 3 | * Disclaimer This software code and all associated documentation, comments or other |
| 4 | * of Warranty: information (collectively "Software") is provided "AS IS" without |
| 5 | * warranty of any kind. MICRON TECHNOLOGY, INC. ("MTI") EXPRESSLY |
| 6 | * DISCLAIMS ALL WARRANTIES EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED |
| 7 | * TO, NONINFRINGEMENT OF THIRD PARTY RIGHTS, AND ANY IMPLIED WARRANTIES |
| 8 | * OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. MTI DOES NOT |
| 9 | * WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT THE |
| 10 | * OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE. |
| 11 | * FURTHERMORE, MTI DOES NOT MAKE ANY REPRESENTATIONS REGARDING THE USE OR |
| 12 | * THE RESULTS OF THE USE OF THE SOFTWARE IN TERMS OF ITS CORRECTNESS, |
| 13 | * ACCURACY, RELIABILITY, OR OTHERWISE. THE ENTIRE RISK ARISING OUT OF USE |
| 14 | * OR PERFORMANCE OF THE SOFTWARE REMAINS WITH YOU. IN NO EVENT SHALL MTI, |
| 15 | * ITS AFFILIATED COMPANIES OR THEIR SUPPLIERS BE LIABLE FOR ANY DIRECT, |
| 16 | * INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES (INCLUDING, |
| 17 | * WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, |
| 18 | * OR LOSS OF INFORMATION) ARISING OUT OF YOUR USE OF OR INABILITY TO USE |
| 19 | * THE SOFTWARE, EVEN IF MTI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
| 20 | * DAMAGES. Because some jurisdictions prohibit the exclusion or |
| 21 | * limitation of liability for consequential or incidental damages, the |
| 22 | * above limitation may not apply to you. |
| 23 | * |
| 24 | * Copyright 2005 Micron Technology, Inc. All rights reserved. |
| 25 | * |
| 26 | * |
| 27 | * Revisions: baaab - 06/20/06 - tMRD was set to 2.0 ns but should be 2 * tCK. Fixed. |
| 28 | * Added ROW_BITS & BA_BITS for compatibility w/our system. |
| 29 | * Removed part size parameter. |
| 30 | * |
| 31 | ****************************************************************************************/ |
| 32 | |
| 33 | // Parameters current with T47M datasheet rev M (07/07) |
| 34 | // 04.17.08 - Paramters current with 512Mb Data sheet rev C (03/08) |
| 35 | // Timing parameters based on Speed Grade |
| 36 | |
| 37 | |
| 38 | // SYMBOL UNITS DESCRIPTION |
| 39 | // ------ ----- ----------- |
| 40 | `ifdef sg5 // Timing Parameters for -5 (CL = 3) |
| 41 | parameter tAC3_max = 5.0; // tAC ns Access window of DQ from CK/CK# |
| 42 | parameter tAC2_max = 6.5; // tAC ns Access window of DQ from CK/CK# |
| 43 | parameter tCK = 5.0; // tCK ns Nominal Clock Cycle Time |
| 44 | parameter tCK3_min = 5.0; // tCK ns Nominal Clock Cycle Time |
| 45 | parameter tCK2_min = 12.0; // tCK ns Nominal Clock Cycle Time |
| 46 | parameter tDQSQ = 0.40; // tDQSQ ns DQS-DQ skew, DQS to last DQ valid, per group, per access |
| 47 | parameter tHZ3_max = 5.0; // tHZ ns Data-out high Z window from CK/CK# |
| 48 | parameter tHZ2_max = 6.5; // tHZ ns Data-out high Z window from CK/CK# |
| 49 | parameter tRAS = 40.0; // tRAS ns Active to Precharge command time |
| 50 | parameter tRC = 55.0; // tRC ns Active to Active/Auto Refresh command time |
| 51 | parameter tRCD = 15.0; // tRCD ns Active to Read/Write command time |
| 52 | parameter tRP = 15.0; // tRP ns Precharge command period |
| 53 | parameter tRRD = 10.0; // tRRD ns Active bank a to Active bank b command time |
| 54 | parameter tWTR = 2.0; // tWTR tCK Internal Write-to-Read command delay |
| 55 | parameter tXP = 10.0; // tXP ns Exit power-down to first valid cmd *note: In data sheet this is specified as one clk, but min tck fails before tXP on the actual part |
| 56 | `else `ifdef sg54 // Timing Parameters for -6 (CL = 3) |
| 57 | parameter tAC3_max = 5.0; // tAC ns Access window of DQ from CK/CK# |
| 58 | parameter tAC2_max = 6.5; // tAC ns Access window of DQ from CK/CK# |
| 59 | parameter tCK = 5.4; // tCK ns Nominal Clock Cycle Time |
| 60 | parameter tCK3_min = 5.4; // tCK ns Nominal Clock Cycle Time |
| 61 | parameter tCK2_min = 12.0; // tCK ns Nominal Clock Cycle Time |
| 62 | parameter tDQSQ = 0.45; // tDQSQ ns DQS-DQ skew, DQS to last DQ valid, per group, per access |
| 63 | parameter tHZ3_max = 5.0; // tHZ ns Data-out high Z window from CK/CK# |
| 64 | parameter tHZ2_max = 6.5; // tHZ ns Data-out high Z window from CK/CK# |
| 65 | parameter tRAS = 42.0; // tRAS ns Active to Precharge command time |
| 66 | parameter tRC = 59.4; // tRC ns Active to Active/Auto Refresh command time |
| 67 | parameter tRCD = 16.2; // tRCD ns Active to Read/Write command time |
| 68 | parameter tRP = 16.2; // tRP ns Precharge command period |
| 69 | parameter tRRD = 10.8; // tRRD ns Active bank a to Active bank b command time |
| 70 | parameter tWTR = 2.0; // tWTR tCK Internal Write-to-Read command delay |
| 71 | parameter tXP = 10.8; // tXP ns Exit power-down to first valid cmd *note: In data sheet this is specified as one clk, but min tck fails before tXP on the actual part |
| 72 | `else `ifdef sg6 // Timing Parameters for -6 (CL = 3) |
| 73 | parameter tAC3_max = 5.0; // tAC ns Access window of DQ from CK/CK# |
| 74 | parameter tAC2_max = 6.5; // tAC ns Access window of DQ from CK/CK# |
| 75 | parameter tCK = 6.0; // tCK ns Nominal Clock Cycle Time |
| 76 | parameter tCK3_min = 6.0; // tCK ns Nominal Clock Cycle Time |
| 77 | parameter tCK2_min = 12.0; // tCK ns Nominal Clock Cycle Time |
| 78 | parameter tDQSQ = 0.50; // tDQSQ ns DQS-DQ skew, DQS to last DQ valid, per group, per access |
| 79 | parameter tHZ3_max = 5.0; // tHZ ns Data-out high Z window from CK/CK# |
| 80 | parameter tHZ2_max = 6.5; // tHZ ns Data-out high Z window from CK/CK# |
| 81 | parameter tRAS = 42.0; // tRAS ns Active to Precharge command time |
| 82 | parameter tRC = 60.0; // tRC ns Active to Active/Auto Refresh command time |
| 83 | parameter tRCD = 18.0; // tRCD ns Active to Read/Write command time |
| 84 | parameter tRP = 18.0; // tRP ns Precharge command period |
| 85 | parameter tRRD = 12.0; // tRRD ns Active bank a to Active bank b command time |
| 86 | parameter tWTR = 2.0; // tWTR tCK Internal Write-to-Read command delay |
| 87 | parameter tXP = 6.0; // tXP ns Exit power-down to first valid cmd *note: In data sheet this is specified as one clk, but min tck fails before tXP on the actual part |
| 88 | `else `define sg75 // Timing Parameters for -75 (CL = 3) |
| 89 | parameter tAC3_max = 6.0; // tAC ns Access window of DQ from CK/CK# |
| 90 | parameter tAC2_max = 6.5; // tAC ns Access window of DQ from CK/CK# |
| 91 | parameter tCK = 7.5; // tCK ns Nominal Clock Cycle Time |
| 92 | parameter tCK3_min = 7.5; // tCK ns Nominal Clock Cycle Time |
| 93 | parameter tCK2_min = 12.0; // tCK ns Nominal Clock Cycle Time |
| 94 | parameter tDQSQ = 0.60; // tDQSQ ns DQS-DQ skew, DQS to last DQ valid, per group, per access |
| 95 | parameter tHZ3_max = 6.0; // tHZ ns Data-out high Z window from CK/CK# |
| 96 | parameter tHZ2_max = 6.5; // tHZ ns Data-out high Z window from CK/CK# |
| 97 | parameter tRAS = 45.0; // tRAS ns Active to Precharge command time |
| 98 | parameter tRC = 75.0; // tRC ns Active to Active/Auto Refresh command time |
| 99 | parameter tRCD = 22.5; // tRCD ns Active to Read/Write command time |
| 100 | parameter tRP = 22.5; // tRP ns Precharge command period |
| 101 | parameter tRRD = 15.0; // tRRD ns Active bank a to Active bank b command time |
| 102 | parameter tWTR = 1.0; // tWTR tCK Internal Write-to-Read command delay |
| 103 | parameter tXP = 7.5; // tXP ns Exit power-down to first valid cmd *note: In data sheet this is specified as one clk, but min tck fails before tXP on the actual part |
| 104 | `endif `endif `endif |
| 105 | |
| 106 | parameter tAC2_min = 2.0; // tAC ns Access window of DQ from CK/CK# |
| 107 | parameter tAC3_min = 2.0; // tAC ns Access window of DQ from CK/CK# |
| 108 | parameter tLZ = 1.0; // tLZ ns Data-out low Z window from CK/CK# |
| 109 | parameter tMRD = 2.0; // tMRD tCK Load Mode Register command cycle time |
| 110 | parameter tRFC = 97.5; // tRFC ns Refresh to Refresh Command interval time |
| 111 | parameter tSRC = 1.0; // tSRC tCK SRR READ command to first valid command (Not Applicable for 128Mb, 256Mb Parts) |
| 112 | parameter tSRR = 2.0; // tSRR tCK SRR command to SRR READ command (Not Applicable for 128Mb, 256Mb Parts) |
| 113 | parameter tWR = 15.0; // tWR ns Write recovery time |
| 114 | |
| 115 | // Size Parameters based on Part Width |
| 116 | `ifdef x16 |
| 117 | parameter ADDR_BITS = 13; // Set this parameter to control how many Address bits are used |
| 118 | parameter ROW_BITS = 13; // Set this parameter to control how many Row bits are used |
| 119 | parameter DQ_BITS = 16; // Set this parameter to control how many Data bits are used |
| 120 | parameter DQS_BITS = 2; // Set this parameter to control how many DQS bits are used |
| 121 | parameter DM_BITS = 2; // Set this parameter to control how many DM bits are used |
| 122 | parameter COL_BITS = 10; // Set this parameter to control how many Column bits are used |
| 123 | parameter BA_BITS = 2; // Bank bits |
| 124 | `else `define x32 |
| 125 | `ifdef RP |
| 126 | parameter ADDR_BITS = 14; // Set this parameter to control how many Address bits are used |
| 127 | parameter ROW_BITS = 14; // Set this parameter to control how many Row bits are used |
| 128 | parameter DQ_BITS = 32; // Set this parameter to control how many Data bits are used |
| 129 | parameter DQS_BITS = 4; // Set this parameter to control how many DQS bits are used |
| 130 | parameter DM_BITS = 4; // Set this parameter to control how many DM bits are used |
| 131 | parameter COL_BITS = 8; // Set this parameter to control how many Column bits are used |
| 132 | parameter BA_BITS = 2; // Bank bits |
| 133 | `else |
| 134 | parameter ADDR_BITS = 13; // Set this parameter to control how many Address bits are used |
| 135 | parameter ROW_BITS = 13; // Set this parameter to control how many Row bits are used |
| 136 | parameter DQ_BITS = 32; // Set this parameter to control how many Data bits are used |
| 137 | parameter DQS_BITS = 4; // Set this parameter to control how many DQS bits are used |
| 138 | parameter DM_BITS = 4; // Set this parameter to control how many DM bits are used |
| 139 | parameter COL_BITS = 9; // Set this parameter to control how many Column bits are used |
| 140 | parameter BA_BITS = 2; // Bank bits |
| 141 | `endif |
| 142 | `endif |
| 143 | |
| 144 | // For use with the Multi Chip Package |
| 145 | `ifdef DUAL_RANK |
| 146 | parameter CS_BITS = 2; // Set this parameter to control how many Chip Select bits are used |
| 147 | parameter RANKS = 2; // Set this parameter to control how many Ranks on the mcp are used |
| 148 | `else |
| 149 | parameter CS_BITS = 2; // Set this parameter to control how many Chip Select bits are used |
| 150 | parameter RANKS = 1; // Set this parameter to control how many Ranks on the mcp are used |
| 151 | `endif |
| 152 | |
| 153 | parameter full_mem_bits = BA_BITS+ADDR_BITS+COL_BITS; // Set this parameter to control how many unique addresses are used |
| 154 | parameter part_mem_bits = 10; // Set this parameter to control how many unique addresses are used |
| 155 | parameter part_size = 512; // Set this parameter to indicate part size(512Mb, 256Mb, 128Mb) |
| 156 | parameter tCH_MAX = 0.55; // Clk high level width |
| 157 | parameter tCH_MIN = 0.45; // Clk high level width |
| 158 | parameter tCL_MAX = 0.55; // Clk low level width |
| 159 | parameter tCL_MIN = 0.45; // Clk low level width |
| 160 | parameter tCKE = 1.0; // Minimum tCKE High/Low time (in tCK's) |
| 161 | parameter CL_MAX = 3; // Maximum CAS Latency |
| 162 | parameter BL_MAX = 16 ; |
| 163 |
Branches:
master
