This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:fpga:docs:axi_fan_control [11 Oct 2021 15:10] – Add footer Iulia Moldovan | resources:fpga:docs:axi_fan_control [12 Oct 2021 16:50] (current) – Edit title & cosmetic changes Iulia Moldovan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | + | ====== | |
- | ====== Fan Control IP Core ====== | + | |
- | The [[https:// | + | The [[https:// |
- | ==== Block Diagram ==== | + | Its purpose is to control the fan used for the cooling of a Xilinx Zynq Ultrascale+ MPSoC without the need of any external temperature sensors. \\ |
+ | To achieve this, the IP core uses the PL SYSMONE4 primitive to obtain the PL temperature via the DRP interface. Based on the temperature readings it then outputs a PWM signal to control the fan rotation accordingly. The tacho signal coming from the fan is also measured and evaluated to ensure that the RPM is correct and the fan is working properly. | ||
+ | |||
+ | |||
+ | ===== Block Diagram ===== | ||
{{: | {{: | ||
- | |||
- | ====== Introduction ====== | ||
- | The purpose of this IP core is to control the fan used for the cooling of a Xilinx Zynq Ultrascale+ MPSoC without the need of any external temperature sensors. To achieve this, the IP core uses the PL SYSMONE4 primitive to obtain the PL temperature via the DRP interface. Based on the temperature readings it then outputs a PWM signal to control the fan rotation accordingly. The tacho signal coming from the fan is also measured and evaluated to ensure that the RPM is correct and the fan is working properly. | ||
+ | ===== Configuration Parameters ===== | ||
- | ==== Configuration Parameter ==== | ||
^ Name ^ Description ^ Default Value^ | ^ Name ^ Description ^ Default Value^ | ||
| '' | | '' | ||
Line 31: | Line 33: | ||
- | ==== Signal and Interface Pins ==== | + | ===== Signal and Interface Pins ===== |
^ Interface ^ Pin ^ Type ^ Description ^ | ^ Interface ^ Pin ^ Type ^ Description ^ | ||
| | '' | | | '' | ||
Line 42: | Line 45: | ||
- | ==== Register Map ==== | + | ===== Clocking ===== |
- | {{page>: | + | |
- | ==== Clocking ==== | ||
The IP core runs on the AXI clock and requires a frequency of 100MHz. | The IP core runs on the AXI clock and requires a frequency of 100MHz. | ||
- | ==== Theory of Operation ==== | + | ===== Theory of Operation ===== |
The main features of this IP core are its independent operation and the fact that it does not require an external temperature sensor. All of the mechanisms contained inside the core are controlled by a state machine, so that they do not depend on the software in case the software fails. The state machine uses the temperature it reads from the SYSMONE4 primitive or via the " | The main features of this IP core are its independent operation and the fact that it does not require an external temperature sensor. All of the mechanisms contained inside the core are controlled by a state machine, so that they do not depend on the software in case the software fails. The state machine uses the temperature it reads from the SYSMONE4 primitive or via the " | ||
- | === Running independently === | + | ==== Running independently |
The hardware can operate with no input from the software; the IP core starts working after the bitstream is loaded, without the need to be brought out of reset. In order to activate the interrupts the software must write to the IRQ_MASK register. At this point the hardware starts operating and a minimal feedback is provided. | The hardware can operate with no input from the software; the IP core starts working after the bitstream is loaded, without the need to be brought out of reset. In order to activate the interrupts the software must write to the IRQ_MASK register. At this point the hardware starts operating and a minimal feedback is provided. | ||
Line 89: | Line 90: | ||
- | === Software control and customization === | + | ==== Software control and customization ==== |
The software can overwrite the temperature thresholds and the tacho values if needed. The TEMP_00_H -> TEMP_100_L registers can redefine the temperature intervals and the TACHO_25 -> TACHO_100 registers can also be used to redefine tacho values if a different fan is installed. In this case the TACHO_*_TOL registers must also be written in orded to provide tolerances. They must be calculated by the software as % of the nominal value //(i.e. 20% of 10000 = 2000)// | The software can overwrite the temperature thresholds and the tacho values if needed. The TEMP_00_H -> TEMP_100_L registers can redefine the temperature intervals and the TACHO_25 -> TACHO_100 registers can also be used to redefine tacho values if a different fan is installed. In this case the TACHO_*_TOL registers must also be written in orded to provide tolerances. They must be calculated by the software as % of the nominal value //(i.e. 20% of 10000 = 2000)// | ||
Line 105: | Line 107: | ||
- | === Interrupts === | + | ==== Interrupts ==== |
The fan controller supports interrupts to both inform the software of any possible errors and also to facilitate the control of the core. There are four interrupt sources: | The fan controller supports interrupts to both inform the software of any possible errors and also to facilitate the control of the core. There are four interrupt sources: | ||
*The '' | *The '' | ||
Line 113: | Line 116: | ||
- | {{navigation #axi_ip|AXI IP#hdl|Main page# | + | ===== Register Map ===== |
+ | |||
+ | {{page>: | ||
+ | |||
+ | {{navigation |