
There will be a better explanation in the future. In short, it measures the on-chip temperature, and puts out the result.
Simply turn it on, and see the result. IO usage documented in the info.yml.
For direct outside control (bypassing the internal measurement state machine), use the following settings:
uio_in[3:0] = 0b1111 (enable debug mode 15).ui_in[5:0] (6b direct control of tempsens_dat[5:0]).ui_in[6] is connected to tempsens_enable.ui_in[7] is connected to tempsens_prechrgn.tempsens_tempdelay is connected to uio_out[4].clk input to synchronize the temperature output of falling edge.Requires a logic analyzer or similar to inspect the digital outputs.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | DAC code [0] | out[0] or out[8] or out[16] | debug sel [0] |
| 1 | DAC code [1] | out[1] or out[9] or out[17] | debug sel [1] |
| 2 | DAC code [2] | out[2] or out[10] or out[18] | debug sel [2] |
| 3 | DAC code [3] | out[3] or out[11] or out[19] | debug sel [3] |
| 4 | DAC code [4] | out[4] or out[12] | debug out [0] |
| 5 | DAC code [5] | out[5] or out[13] | debug out [1] |
| 6 | output selection [0] | out[6] or out[14] | debug out [2] |
| 7 | output selection [1] | out[7] or out[15] | debug out [3] |