4.2. Reading the Intel® Stratix® 10 Internal Temperature Sensing Diodes
- During device initialization, before the device enters user mode:
- Assert the reset port of the Temperature Sensor IP core to keep it in reset mode.
- Keep the cmd_valid and cmd_data signal at "0".
- After the device enters user mode, simultaneously assert a logic high to the cmd_valid signal and send the cmd_data value. For each sampling, assert cmd_valid for a period of only one to three clock cycles. When you are not acquiring the temperature sensor readout, deassert cmd_valid.
The cmd_data signal is a 9-bit bitmask that specifies from which channel to sample the temperature.When you assert cmd_valid while cmd_ready is high, the IP core requests from the SDM the most recent temperature values of the channels you specify in cmd_data. After sending the request, the IP core drives cmd_ready low and waits for response from the SDM.
- Each time the rsp_valid signal goes high, indicating that the temperature value is ready, read the rsp_data and rsp_channel response signals.
The rsp_valid signal goes high once for each bit in the cmd_data word. The first valid data in the cycle is available when rsp_valid asserts while the rsp_startofpacket signal is high. The last valid data in the cycle is available when rsp_valid asserts while the rsp_endofpacket signal is high. For each valid response, the rsp_data signal provides the temperature value while the rsp_channel signal indicates from which channel the temperature was sampled.
Did you find the information on this page useful?