@@ -25,7 +25,7 @@ public DimmMemory(SPDAccessor accessor, string name, Identifier identifier, ISet
2525 case SPDMemoryType . SPD_DDR5_SDRAM :
2626 case SPDMemoryType . SPD_LPDDR5_SDRAM :
2727 _thermalSensor = new SpdThermalSensor ( $ "DIMM #{ accessor . Index } ",
28- accessor . Index ,
28+ 0 ,
2929 SensorType . Temperature ,
3030 this ,
3131 settings ,
@@ -68,58 +68,65 @@ private void CreateSensorsDDR4(DDR4Accessor accessor, bool hasThermalSensor)
6868 if ( hasThermalSensor )
6969 {
7070 //Temperature Resolution (fixed value)
71- AddSensor ( "Temperature Sensor Resolution" , 0 , false , SensorType . Temperature , accessor . TemperatureResolution ) ;
71+ AddSensor ( "Temperature Sensor Resolution" , 1 , false , SensorType . Temperature , accessor . TemperatureResolution ) ;
72+ AddSensor ( "Thermal Sensor Low Limit" , 2 , false , SensorType . Temperature , accessor . ThermalSensorLowLimit ) ;
73+ AddSensor ( "Thermal Sensor High Limit" , 3 , false , SensorType . Temperature , accessor . ThermalSensorHighLimit ) ;
74+ AddSensor ( "Thermal Sensor Critical Limit" , 4 , false , SensorType . Temperature , accessor . ThermalSensorCriticalLimit ) ;
7275 }
7376
7477 //Timings
75- AddSensor ( "tCKAVGmin (Minimum Cycle Time)" , 1 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCycleTime ) ;
76- AddSensor ( "tCKAVGmax (Maximum Cycle Time)" , 2 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MaximumCycleTime ) ;
77- AddSensor ( "tAA (CAS Latency Time)" , 3 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCASLatencyTime ) ;
78- AddSensor ( "tRCD (RAS to CAS Delay Time)" , 4 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRASToCASDelayTime ) ;
79- AddSensor ( "tRP (Row Precharge Delay Time)" , 5 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRowPrechargeDelayTime ) ;
80- AddSensor ( "tRAS (Active to Precharge Delay Time)" , 6 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToPrechargeDelayTime ) ;
81- AddSensor ( "tRC (Active to Active/Refresh Delay Time)" , 7 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToActiveRefreshDelayTime ) ;
82- AddSensor ( "tRFC1 (Refresh Recovery Delay Time)" , 8 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRefreshRecoveryDelayTime1 ) ;
83- AddSensor ( "tRFC2 (Refresh Recovery Delay Time)" , 9 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRefreshRecoveryDelayTime2 ) ;
84- AddSensor ( "tRFC4 (Refresh Recovery Delay Time)" , 10 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRefreshRecoveryDelayTime4 ) ;
85- AddSensor ( "tFAW (Four Activate Window Time)" , 11 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumFourActivateWindowTime ) ;
86- AddSensor ( "tRRD_S (Activate to Activate Delay Time)" , 12 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActivateToActivateDelay_DiffGroup ) ;
87- AddSensor ( "tRRD_L (Activate to Activate Delay Time)" , 13 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActivateToActivateDelay_SameGroup ) ;
88- AddSensor ( "tCCD_L (CAS to CAS Delay Time)" , 14 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCASToCASDelay_SameGroup ) ;
89- AddSensor ( "tWR (Write Recovery Time)" , 15 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteRecoveryTime ) ;
90- AddSensor ( "tWTR_S (Write to Read Time)" , 16 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteToReadTime_DiffGroup ) ;
91- AddSensor ( "tWTR_L (Write to Read Time)" , 17 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteToReadTime_SameGroup ) ;
78+ AddSensor ( "tCKAVGmin (Minimum Cycle Time)" , 20 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCycleTime ) ;
79+ AddSensor ( "tCKAVGmax (Maximum Cycle Time)" , 21 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MaximumCycleTime ) ;
80+ AddSensor ( "tAA (CAS Latency Time)" , 22 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCASLatencyTime ) ;
81+ AddSensor ( "tRCD (RAS to CAS Delay Time)" , 23 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRASToCASDelayTime ) ;
82+ AddSensor ( "tRP (Row Precharge Delay Time)" , 24 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRowPrechargeDelayTime ) ;
83+ AddSensor ( "tRAS (Active to Precharge Delay Time)" , 25 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToPrechargeDelayTime ) ;
84+ AddSensor ( "tRC (Active to Active/Refresh Delay Time)" , 26 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToActiveRefreshDelayTime ) ;
85+ AddSensor ( "tRFC1 (Refresh Recovery Delay Time)" , 27 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRefreshRecoveryDelayTime1 ) ;
86+ AddSensor ( "tRFC2 (Refresh Recovery Delay Time)" , 28 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRefreshRecoveryDelayTime2 ) ;
87+ AddSensor ( "tRFC4 (Refresh Recovery Delay Time)" , 29 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRefreshRecoveryDelayTime4 ) ;
88+ AddSensor ( "tFAW (Four Activate Window Time)" , 30 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumFourActivateWindowTime ) ;
89+ AddSensor ( "tRRD_S (Activate to Activate Delay Time)" , 31 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActivateToActivateDelay_DiffGroup ) ;
90+ AddSensor ( "tRRD_L (Activate to Activate Delay Time)" , 32 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActivateToActivateDelay_SameGroup ) ;
91+ AddSensor ( "tCCD_L (CAS to CAS Delay Time)" , 33 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCASToCASDelay_SameGroup ) ;
92+ AddSensor ( "tWR (Write Recovery Time)" , 34 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteRecoveryTime ) ;
93+ AddSensor ( "tWTR_S (Write to Read Time)" , 35 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteToReadTime_DiffGroup ) ;
94+ AddSensor ( "tWTR_L (Write to Read Time)" , 36 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteToReadTime_SameGroup ) ;
9295
9396 //Data
94- AddSensor ( "Capacity" , 18 , false , SensorType . Data , accessor . GetCapacity ( ) ) ;
97+ AddSensor ( "Capacity" , 50 , false , SensorType . Data , accessor . GetCapacity ( ) ) ;
9598 }
9699
97100 private void CreateSensorsDDR5 ( DDR5Accessor accessor , bool hasThermalSensor )
98101 {
99102 if ( hasThermalSensor )
100103 {
101104 //Temperature Resolution (fixed value)
102- AddSensor ( "Temperature Sensor Resolution" , 0 , false , SensorType . Temperature , accessor . TemperatureResolution ) ;
105+ AddSensor ( "Temperature Sensor Resolution" , 1 , false , SensorType . Temperature , accessor . TemperatureResolution ) ;
106+ AddSensor ( "Thermal Sensor Low Limit" , 2 , false , SensorType . Temperature , accessor . ThermalSensorLowLimit ) ;
107+ AddSensor ( "Thermal Sensor High Limit" , 3 , false , SensorType . Temperature , accessor . ThermalSensorHighLimit ) ;
108+ AddSensor ( "Thermal Sensor Critical Low Limit" , 4 , false , SensorType . Temperature , accessor . ThermalSensorCriticalLowLimit ) ;
109+ AddSensor ( "Thermal Sensor Critical High Limit" , 5 , false , SensorType . Temperature , accessor . ThermalSensorCriticalHighLimit ) ;
103110 }
104111
105112 //Timings
106- AddSensor ( "tCKAVGmin (Minimum Cycle Time)" , 1 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCycleTime ) ;
107- AddSensor ( "tCKAVGmax (Maximum Cycle Time)" , 2 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MaximumCycleTime ) ;
108- AddSensor ( "tAA (CAS Latency Time)" , 3 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCASLatencyTime ) ;
109- AddSensor ( "tRCD (RAS to CAS Delay Time)" , 4 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRASToCASDelayTime ) ;
110- AddSensor ( "tRP (Row Precharge Delay Time)" , 5 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRowPrechargeDelayTime ) ;
111- AddSensor ( "tRAS (Active to Precharge Delay Time)" , 6 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToPrechargeDelayTime ) ;
112- AddSensor ( "tRC (Active to Active/Refresh Delay Time)" , 7 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToActiveRefreshDelayTime ) ;
113- AddSensor ( "tWR (Write Recovery Time)" , 8 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteRecoveryTime ) ;
114- AddSensor ( "tRFC1 (Normal Refresh Recovery Time)" , 9 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . NormalRefreshRecoveryTime ) ;
115- AddSensor ( "tRFC2 (Fine Granularity Refresh Recovery Time)" , 10 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . FineGranularityRefreshRecoveryTime ) ;
116- AddSensor ( "tRFCsb (Same Bank Refresh Recovery Time)" , 11 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . SameBankRefreshRecoveryTime ) ;
117- AddSensor ( "tRFC1_dlr (Normal Refresh Recovery Time 3DS)" , 12 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . NormalRefreshRecoveryTime_3DSDifferentLogicalRank ) ;
118- AddSensor ( "tRFC2_dlr (Fine Granularity Refresh Recovery Time 3DS)" , 13 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . FineGranularityRefreshRecoveryTime_3DSDifferentLogicalRank ) ;
119- AddSensor ( "tRFCsb_dlr (Same Bank Refresh Recovery Time 3DS)" , 14 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . SameBankRefreshRecoveryTime_3DSDifferentLogicalRank ) ;
113+ AddSensor ( "tCKAVGmin (Minimum Cycle Time)" , 20 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCycleTime ) ;
114+ AddSensor ( "tCKAVGmax (Maximum Cycle Time)" , 21 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MaximumCycleTime ) ;
115+ AddSensor ( "tAA (CAS Latency Time)" , 22 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumCASLatencyTime ) ;
116+ AddSensor ( "tRCD (RAS to CAS Delay Time)" , 23 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRASToCASDelayTime ) ;
117+ AddSensor ( "tRP (Row Precharge Delay Time)" , 24 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumRowPrechargeDelayTime ) ;
118+ AddSensor ( "tRAS (Active to Precharge Delay Time)" , 25 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToPrechargeDelayTime ) ;
119+ AddSensor ( "tRC (Active to Active/Refresh Delay Time)" , 26 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumActiveToActiveRefreshDelayTime ) ;
120+ AddSensor ( "tWR (Write Recovery Time)" , 27 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . MinimumWriteRecoveryTime ) ;
121+ AddSensor ( "tRFC1 (Normal Refresh Recovery Time)" , 28 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . NormalRefreshRecoveryTime ) ;
122+ AddSensor ( "tRFC2 (Fine Granularity Refresh Recovery Time)" , 29 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . FineGranularityRefreshRecoveryTime ) ;
123+ AddSensor ( "tRFCsb (Same Bank Refresh Recovery Time)" , 30 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . SameBankRefreshRecoveryTime ) ;
124+ AddSensor ( "tRFC1_dlr (Normal Refresh Recovery Time 3DS)" , 31 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . NormalRefreshRecoveryTime_3DSDifferentLogicalRank ) ;
125+ AddSensor ( "tRFC2_dlr (Fine Granularity Refresh Recovery Time 3DS)" , 32 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . FineGranularityRefreshRecoveryTime_3DSDifferentLogicalRank ) ;
126+ AddSensor ( "tRFCsb_dlr (Same Bank Refresh Recovery Time 3DS)" , 33 , false , SensorType . Timing , ( float ) accessor . SDRAMTimings . SameBankRefreshRecoveryTime_3DSDifferentLogicalRank ) ;
120127
121128 //Data
122- AddSensor ( "Capacity" , 15 , false , SensorType . Data , accessor . GetCapacity ( ) ) ;
129+ AddSensor ( "Capacity" , 50 , false , SensorType . Data , accessor . GetCapacity ( ) ) ;
123130 }
124131
125132 private void AddSensor ( string name , int index , bool defaultHidden , SensorType sensorType , float value )
0 commit comments