A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | DDR5 Timing Calculator for AMD by RedF & Wolf87, Guided by Veii | ||||||||||||||||||||||||
2 | Version 0.0.08 | ||||||||||||||||||||||||
3 | Primary Timings | use this formula at your own risk | calculated | Edit | do not touch ! | ||||||||||||||||||||
4 | tCL | 28 | |||||||||||||||||||||||
5 | tRCDWR | 37 | |||||||||||||||||||||||
6 | tRCDRD | 37 | |||||||||||||||||||||||
7 | tRP | 37 | |||||||||||||||||||||||
8 | tRTP | 12 | |||||||||||||||||||||||
9 | tWR | 48 | tWR Rule is not under 48, but 24 is somewhat an option | ||||||||||||||||||||||
10 | toogle switch for tWR (switch between 48 or fail safe variante ) 1=48 0=failsafe | 1 | |||||||||||||||||||||||
11 | |||||||||||||||||||||||||
12 | minimum tRAS | 49 | tRCD | tRTP | |||||||||||||||||||||
13 | tRCD+tRTP | 37 | 12 | ||||||||||||||||||||||
14 | |||||||||||||||||||||||||
15 | optimum tRAS | 57 | tRCD | tRTP | BurstLength 16 / 2 = BurstChop | X = + 2 or 4 Points, minimum = 0 | |||||||||||||||||||
16 | tRCD + tRTP + BurstChop + X | 37 | 12 | 8 | 0 | ||||||||||||||||||||
17 | |||||||||||||||||||||||||
18 | safe tRAS | tCWL | tRCDWR | tWR | this variant garants always a ROW Hit | ||||||||||||||||||||
19 | tCWL+tRCDWR+tWR | 111 | 26 | 37 | 48 | ||||||||||||||||||||
20 | tRC = tRAS, for safe tRAS | ||||||||||||||||||||||||
21 | |||||||||||||||||||||||||
22 | tRC = for tRAS minimum or optimum | tRC = for tRAS min | tRC = for tRAS Optimum | ||||||||||||||||||||||
23 | 86 | 94 | |||||||||||||||||||||||
24 | |||||||||||||||||||||||||
25 | tFAW | 32 | for all of our DIMMs ~ 32. 32 for 1kb pagesize dimms 48 for 2kb pagesize dimms. // As long as it is not confirmed that AMD uses 2 MC links each DIMM, the value is 32/48 instead of 16/24 :) | ||||||||||||||||||||||
26 | |||||||||||||||||||||||||
27 | tRFC | choose your clock value and your tRFC for your Dimm type | Hynix A-Die [ns] | Hynix M-Die [ns] | Samsung B-Die [ns] | Samsung D-Die [ns] | Micron A+G REV [ns] | Micron Rev B [ns] | if you stay with 65535 maxed, is 320,352,384,416 If you want to give 65528 a try , then its 308, 340, 372 ,404 ~ pick one that suits you Scale both sets +/- 32. But keep values. Just test what REFI brings you most consistency(not latency) | ||||||||||||||||
28 | 120 | 160 | 260 | 270 | 260 | 360 | minimum value | ||||||||||||||||||
29 | DDR5 MHz | 6400 | |||||||||||||||||||||||
30 | tRFC [tREFi 65528] | 500 | 156,3 | 156,3 | 156,3 | 156,3 | 156,3 | 156,3 | if you use tREFi 65528, red value=if you reach min Value | ||||||||||||||||
31 | tRFC [tREFi 65535] | 480 | 150,0 | 150,0 | 150,0 | 150,0 | 150,0 | 150,0 | if you use tREFi 65535, red value=if you reach min Value | ||||||||||||||||
32 | |||||||||||||||||||||||||
33 | tRRD_S/DG | 8 | |||||||||||||||||||||||
34 | tRRD_L/SG | 12 | recommended 12 | ||||||||||||||||||||||
35 | tWTR_S/DG | 7 | Veii tweak (can also run at 4 )Thanks to this I have found a "small" exploit of my own. DDR4 & DDR5 can execute within 2 writes per read. Actually a little more, but they can do 2. As an example: RRDS 8 RRDL 12 WTRS 4 WTRL 24 RDRDSCL = 12-8+1 = 5 That is, If CCDLWR is used and WTRL would be exactly double of RRDL (normal) If the SC_Longs are also correct (the minimums) and RTP is not too low. Then the loop ends at exactly the right time to run WTRS at half clock. If not, a delay somewhere between reads would be too slow or too short. tWR & tRTP as main variables. | ||||||||||||||||||||||
36 | tWTR_L/SG | 24 | |||||||||||||||||||||||
38 | |||||||||||||||||||||||||
39 | Interface Timings | ||||||||||||||||||||||||
40 | CCD_S | 8 | |||||||||||||||||||||||
41 | CCD_L | =>tRRDL oder tRRDS | 12 | ||||||||||||||||||||||
42 | CCDL_WR | = CCDL *2 | 24 | ||||||||||||||||||||||
43 | |||||||||||||||||||||||||
44 | Mathematical Offset Timings | ||||||||||||||||||||||||
45 | tRDRDSC_L min | 5 | CCDL | RdBurstChop | OdtEnDly | ||||||||||||||||||||
46 | CCDL - RdBurstChop + ODTEnDly | 12 | 8 | 1 | |||||||||||||||||||||
47 | |||||||||||||||||||||||||
48 | tWRWRSC_L min | 17 | CCDLWR | WrBurstChop | OdtEnDly | ||||||||||||||||||||
49 | CCDLWR - WrBurstChop + ODTEnDly | 24 | 8 | 1 | |||||||||||||||||||||
50 | |||||||||||||||||||||||||
51 | tRDWR min | 12 | tCL | tCWL | BurstChop | OdtEnDly | WrPRE (shown in MemTweak) | safety delay | |||||||||||||||||
52 | tCL - tCWL + BC8 + ODTEnDly + WrPRE + SafetyDly | 28 | 26 | 8 | 1 | 0 | 1 | ||||||||||||||||||
53 | |||||||||||||||||||||||||
54 | Tertiäre Timings (SC + SD + DD) | ||||||||||||||||||||||||
55 | If you have single sided Module, then you have to enter value 1 (for example 2*16 GB), if you have dual sided Modules (Chips on both sides like 2*32GB) you have to enter the value 0 | 1 | _DD & _SD/DR | wenn 2x32bit MC/DIMM | |||||||||||||||||||||
56 | tRDWR (lower 16 possible min formula above) | 12 | tCCD_S | 4 | not clear | ||||||||||||||||||||
57 | tWRRD | 1 | tRDRD_ | 4 | not clear | ||||||||||||||||||||
58 | tRDRDSC | 1 | tWRWR_ | 3 | not clear | ||||||||||||||||||||
59 | tRDRDSD | 1 | tRDWR_ | 8 | not clear | ||||||||||||||||||||
60 | tRDRDDD | 8 | tWRRD_ | 2 | not clear | ||||||||||||||||||||
61 | tWRWRSC | 1 | |||||||||||||||||||||||
62 | tWRWRSD | 1 | |||||||||||||||||||||||
63 | tWRWRDD | 6 | |||||||||||||||||||||||
64 | |||||||||||||||||||||||||
65 | tREFi < Maximum Value 65536(-1), please choose lower Value if you have thermal problems | 65536 | 65536 (minus 8192 steps) = result -1. // to choose for thermal problems | ||||||||||||||||||||||
66 | |||||||||||||||||||||||||
67 | tRRD_L/SG | 16GB Dimm | 24GB Dimm | ||||||||||||||||||||||
68 | tCCD_S oder höher | 8 | 12 | CCDS , or bigger. CCDS is always 8 unless double MC link. Starting point 8+ | |||||||||||||||||||||
69 | |||||||||||||||||||||||||
70 | Refresh Timings | tRFC | |||||||||||||||||||||||
71 | tRFC | 480 | you have to edit this value for calculate tRFC2+ tRFCsb at the moment AMD doesn't apply these values | ||||||||||||||||||||||
72 | tRFC2 | 260 | |||||||||||||||||||||||
73 | tRFCsb | 212 | |||||||||||||||||||||||
74 | |||||||||||||||||||||||||
75 | tWR Failsafe | tWR | tCL | tWTRL | Buffer 8 | ||||||||||||||||||||
76 | tWR = WTR_A+ RTP + X (BC8) ~ tCL+tWTRL+8 | 60 | 28 | 24 | 8 | ||||||||||||||||||||
77 | round up multiple of 6 | 60 | |||||||||||||||||||||||
78 | |||||||||||||||||||||||||
79 | |||||||||||||||||||||||||
80 | |||||||||||||||||||||||||
81 | |||||||||||||||||||||||||
82 | |||||||||||||||||||||||||
83 | |||||||||||||||||||||||||
84 | |||||||||||||||||||||||||
85 | |||||||||||||||||||||||||
86 | |||||||||||||||||||||||||
87 | |||||||||||||||||||||||||
88 | |||||||||||||||||||||||||
89 | |||||||||||||||||||||||||
90 | |||||||||||||||||||||||||
91 | |||||||||||||||||||||||||
92 | |||||||||||||||||||||||||
93 | |||||||||||||||||||||||||
94 | |||||||||||||||||||||||||
95 | |||||||||||||||||||||||||
96 | |||||||||||||||||||||||||
97 | |||||||||||||||||||||||||
98 | |||||||||||||||||||||||||
99 | |||||||||||||||||||||||||
100 | |||||||||||||||||||||||||
101 |