def-graph

Create PyTorch-Geometric graph datasets from GDSII files for ML training.

41|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/ShenShan123/agent-r2g --skill def-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: def-graph
Source: https://github.com/ShenShan123/agent-r2g/tree/main/r2g-skills/def-graph
Command: npx skills add https://github.com/ShenShan123/agent-r2g --skill def-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, torch_geometric, pandas, openroad, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of training-ready PyTorch-Geometric graph datasets from GDSII files generated during RTL-to-GDS design signoff, saving time and reducing errors in the data preparation process.

Core Features & Use Cases

  • Automated Dataset Creation: Converts physical design files (DEF/LEF/liberty/SPEF) into training-ready PyTorch-Geometric graph datasets.
  • Graph Topologies: Generates five different graph topologies for diverse training scenarios.
  • Use Case: Imagine you have a GDSII file from a signoff flow. Use this Skill to create a graph dataset with features and labels that can be used to train a machine learning model for design verification.

Quick Start

Use the def-graph skill to create a graph dataset from the 'final.gds' file and the 'sky130.lib' liberty file in the 'design_cases/your_design' directory.

Frequently Asked Questions about def-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert GDSII files to PyTorch-Geometric datasets for machine learning?

To convert GDSII files to PyTorch-Geometric datasets, you can automate the parsing of physical design files like DEF, LEF, and liberty to generate training-ready graph data. This process directly creates graph datasets with features and labels for machine learning models.

What graph topologies can I generate from physical design files for ML training?

You can generate five different graph topologies from physical design files to support diverse machine learning training scenarios. These topologies are extracted from RTL-to-GDS design signoff outputs like GDSII and SPEF files.

Do I need OpenROAD and torch_geometric to create graph datasets from GDSII files?

Yes, creating graph datasets from GDSII files requires PyTorch, torch_geometric, pandas, and OpenROAD tools. These dependencies are necessary to parse the physical design inputs and structure them into training-ready graph data.

Can I use DEF and LEF files to train ML models for IC design verification?

Yes, you can use DEF, LEF, liberty, and SPEF files to train ML models for IC design verification. The dataset creation process transforms these physical design files into PyTorch-Geometric graphs with associated features and labels.

What is the best way to automate data preparation for machine learning in RTL-to-GDS flows?

The best way to automate data preparation in RTL-to-GDS flows is by converting signoff GDSII files directly into PyTorch-Geometric graph datasets. This reduces manual errors and saves time by structuring physical design data for immediate model training.

When do I need to create graph datasets from GDSII files?

You need to create graph datasets from GDSII files when preparing data for machine learning models applied to IC design verification workflows. This is particularly useful during physical design and signoff processes to structure complex layout data for training.