
PwrGov-X is a telemetry-driven power governor IP designed in Verilog. It monitors system activity and temperature, classifies workload, predicts workload trends, and generates power-management control signals.
The design uses a telemetry monitor, window controller, feature extractor, workload classifier, workload predictor, FSM controller, and control signal generator.
The Tiny Tapeout interface uses:
ui_in[0]: Enable requestui_in[1]: Activity inputui_in[4:2]: Temperature inputuo_out[0]: Performance enableuo_out[1]: Throttle activeuo_out[3:2]: Control leveluo_out[5:4]: Workload classuo_out[7:6]: Operating modeThermal hysteresis helps prevent rapid switching between throttled and normal operation. The unused bidirectional outputs are held at zero.
The project includes a Verilog testbench wrapper in test/tb.v and a Cocotb integration test in test/test.py.
To run the tests locally, install Icarus Verilog and the Python packages listed in test/requirements.txt, then run:
cd test
make clean
make
python -m cocotb_tools.check_results results.xml
The automated test checks reset behavior, output values, thermal throttling and hysteresis, and disabling the enable request. GitHub Actions runs the test automatically when changes are pushed to the repository.
The design targets the Tiny Tapeout SKY130 digital design flow. It is intended to be synthesized and physically implemented using the SkyWater SKY130 process design kit. No external hardware peripheral is required for the RTL simulation.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Enable request | Performance enable | |
| 1 | Activity input | Throttle active | |
| 2 | Temperature bit 0 | Control level bit 0 | |
| 3 | Temperature bit 1 | Control level bit 1 | |
| 4 | Temperature bit 2 | Workload class bit 0 | |
| 5 | Reserved | Workload class bit 1 | |
| 6 | Reserved | Mode bit 0 | |
| 7 | Reserved | Mode bit 1 |