fesens/opentpu/get-macro-current-location

Claude Code and agent skill by fesens/opentpu

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install fesens/opentpu/get-macro-current-location

SKILL.md

Get the macros with their current location

Emits one line per macro, prefixed with an index #N. That `#N` matches the numbered label drawn on `<design>_pin_side.png` by the macro_pin_side skill: both iterate [$block getInsts] and count only block (macro) instances, starting at 1, so on the same ODB the Nth macro here is the Nth label in the image. This lets the Planner read a number off the pin-side image and look up that macro's name + current location to refine.

Alignment holds only when the image and this list come from the SAME ODB /
DB state. If macros are re-placed and a new ODB is written, regenerate the
pin-side image and this list together.
tcl
set block [ord::get_db_block]
set dbu [[ord::get_db_tech] getDbUnitsPerMicron]
set idx 0
foreach inst [$block getInsts] {
set master [$inst getMaster]
if {[$master isBlock]} {
incr idx
set w [expr [$master getWidth] / double($dbu)]
set h [expr [$master getHeight] / double($dbu)]
# getBBox is orientation-correct (origin alone is the R0 lower-left only)
set bb [$inst getBBox]
set x [expr [$bb xMin] / double($dbu)]
set y [expr [$bb yMin] / double($dbu)]
puts [format "#%-3d %-40s master=%-20s size=%.3f x %.3f um origin=(%.3f, %.3f) orient=%s" \
$idx [$inst getName] [$master getName] $w $h $x $y [$inst getOrient]]
}
}

Output (the #N matches pin_side.png numbering):

#1 inst_58676 master=small_mem size=75.560 x 149.125 um origin=(20.160, 21.000) orient=R0
#2 inst_58677 master=small_mem size=75.560 x 149.125 um origin=(113.960, 21.000) orient=R0
...

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fesens/opentpu/get-macro-current-location/badge)](https://verified-skill.com/skills/fesens/opentpu/get-macro-current-location)

Something wrong with this skill or its page? Tell us.