The-OpenROAD-Project / The-OpenROAD-Project/OpenSTA

Clarify Unit API power units and add derived units

Open
#284 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Verilog
Stars
619
Forks
270
Avg merge
5d 15h
Merged PRs (30d)
4

Description

Currently the OpenSTA API supports querying a certain set of units including time, cap, voltage, power, etc...

https://github.com/The-OpenROAD-Project/OpenSTA/blob/9c9b5659d6a7ecbe02ea1204aa89079a77db1d3e/include/sta/Units.hh#L68-L102

This issue is a API enhancement request to

  1. Rename the existing powerUnit() to leakagePowerUnit() for clarity
  2. Add additional Units for derived values such as dynamicPowerUnit() and energyUnit().

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with include/sta/Units.hh at the linked lines and inspect the existing powerUnit() declaration and neighboring unit APIs. Confirm the public naming and derived-unit requirements, then update the API so leakagePowerUnit(), dynamicPowerUnit(), and energyUnit() are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.