The System Monitor (SYSMON) Analog-to-Digital Converter (ADC) measures die temperature and voltage on the hardware device. The SYSMON monitors the physical environment via on-chip temperature and supply sensors. The ADC provides a high-precision analog interface for a range of applications.
The hw_sysmon data is stored in dedicated registers called status registers accessible through the hw_sysmon_reg object. You can get the contents of the System Monitor registers by using the get_hw_sysmon_reg command.
Every device that supports the System Monitor automatically has one or
more hw_sysmon
objects created when refresh_hw_device is called. When the hw_sysmon
object is created, it is assigned a property for
all the and voltage registers, as well as the control registers. On the hw_sysmon
object, the values assigned to the temperature
and voltage registers are already translated to Celsius/Fahrenheit and Volts.
Although you can use the get_hw_sysmon_reg
command to access the hex values stored in registers of
a System Monitor, you can also retrieve values of certain registers as formatted
properties of the hw_sysmon
object. For example, the
following code retrieves the TEMPERATURE property of the specified hw_sysmon
object rather than directly accessing the hex
value of the register:
set opTemp [get_property TEMPERATURE [lindex [get_hw_sysmons] 0]
Complete list of all the System Monitor commands can be found in Description of hw_sysmon Tcl Commands.