Proposal: Standardized Property Metadata API for Chisel Based on IP-XACT

オープン
#4,932 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
scala
領域
compilers

調査の方向性

まず、提案で参照されている既存の Property API、Object Model、RocketChip OM/OM2、Trace API、および Property & Class API を確認します。次に、IP-XACT に準拠した ABI と、明示的な Chisel properties と CIRCT から暗黙的に導出されるメタデータとの境界を明確にします。ABI、Chisel API、CIRCT transforms、および supporting inspection library に関する checklist 項目を解決すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Motivation

Chisel has long lacked a unified and robust approach for exposing metadata. Several prior attempts—such as RocketChip OM/OM2, the Trace API, and the current Property & Class API—have fallen short of broad adoption.

At present, the only recommended approach is the Property API integrated with OM (Object Model), but this solution is still underutilized by the majority of end users, the only known users might be only SiFive and the T1 project.

As we evaluate integration with various IP tools and respond to feedback from customers, it's clear that a more generic and structured Property API is needed. This API should accommodate diverse use cases while offering compatibility with standard tooling expectations such as IP-XACT.

Solution

We propose to define a standard metadata OM model based on the IP-XACT schema, split into two categories:

  • Explicit Properties: These include bus interfaces, address maps, generator parameters, and other user-defined metadata. These should be captured in Chisel using a well-defined API. These properties should then be emitted through MLIR in a standardized ABI format.

  • Implicit Properties: These include instance hierarchies, ports, and other circuit-derived metadata. These will be extracted via CIRCT transforms and automatically exposed through the OM layer.

By clearly separating what can be annotated manually from what must be analyzed, we can create a clean metadata architecture that supports introspection and IP integration at scale.

Approach

[ ] Define a standardized and IP-XACT-aligned ABI for OM metadata

[ ] Enumerate and formalize the explicit properties and expose them via a Chisel API

[ ] Extend CIRCT to analyze and emit implicit metadata via transforms

[ ] Provide a supporting library (e.g., OM Python API or zaozi-om in Scala 3) to inspect OM metadata from MLIR for downstream tooling

主要言語
Scala
スター
4.8k
フォーク
669
平均マージ
1日 12時間
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

chipsalliance/chisel のほかの issue

chipsalliance/chisel の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。