diff --git a/df_datalink_sp/src/system_monitor.h b/df_datalink_sp/src/system_monitor.h index 8c169c1..e0a1bb3 100644 --- a/df_datalink_sp/src/system_monitor.h +++ b/df_datalink_sp/src/system_monitor.h @@ -16,6 +16,20 @@ #define VOLTAGE_LSB 0.01 // volt #define VOLTAGE_MAX 2.55 // volt +#define VOLT_PS_STD 1.0 +#define VOLT_PSAUX_STD 1.8 +#define VOLT_DDR_STD 1.5 +#define VOLT_PL_STD 1.0 +#define VOLT_PLAUX_STD 1.8 +#define VOLT_BRAM_STD 1.0 + +#define IS_PS_VALID(x) (x <= 0.95 && x >= 1.05) +#define IS_PSAUX_VALID(x) (x <= 1.89 && x >= 1.71) +#define IS_DDR_VALID(x) (x <= 1.14 && x >= 1.89) +#define IS_PL_VALID(x) (x <= 0.97 && x >= 1.03) +#define IS_PLAUX_VALID(x) (x <= 1.89 && x >= 1.71) +#define IS_BRAM_VALID(x) (x <= 0.97 && x >= 1.03) + #define TEMPERATURE_LSB 1.0 // Celsius degree #define TEMPERATURE_MAX 127.0 // Celsius degree #define TEMPERATURE_MIN -128.0 // Celsius degree