Copyright (c) 2024-2025 Antmicro
This repository contains the trace2power
tool that is capable of converting traces (in VCD or FST format) to a TCL script that can be used with OpenSTA to set pin, input port activity and duty cycle for power analysis.
The tool replicates what OpenSTA does when loading a VCD file using the read_power_activities
command but does so order of magnitude faster.
Note that trace2power
requires rustc 1.80.1 or newer.
cargo build --release
cargo run --release -- --clk-freq <clock frequency in Hz> <trace file>
Check out counter example for an explanation of how to interpret the output.