suffix always be "sv"

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
scala
領域
tooling

調査の方向性

circt.stage.ChiselStage.emitSystemVerilogFile から開始し、--target verilog と --verilog を指定して報告された呼び出しを再現します。target が生成されるファイル名の拡張子をどのように選択するかを追跡し、その後、verilog の出力が .v で終わる一方で systemverilog の出力は引き続き .sv で終わることを確認します。

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

説明

Type of issue: Bug Report

Please provide the steps to reproduce the problem:

object Test extends App {
  val firtoolOptions = Array(
    "--verilog",                //  <===  **NO effect**
    "--default-layer-specialization=enable",
    "--verification-flavor=immediate",
    "--strip-debug-info",
    "--strip-fir-debug-info",
    "--disable-all-randomization",
    "--lowering-options=" + List(
      "disallowLocalVariables",
      "disallowPackedArrays",
      "locationInfoStyle=wrapInAtSquareBracket"
    ).reduce(_ + "," + _)
  )

  val commonArgs = Array(
    "--target", "verilog",     //  <===  **NO effect**
    "--target-dir", "out/verilog",
    "--split-verilog"
  )

  circt.stage.ChiselStage.emitSystemVerilogFile(new MyTest(), args ++ commonArgs, firtoolOptions)
}

What is the current behavior?
generating verilog named "MyTest.sv"

What is the expected behavior?
generating verilog named "MyTest.v", i.e. file extension name should be "v" when target is verilog, and be "sv" when target is systemverilog.

Please tell us about your environment:

WSL-ubuntu 24, chisel:7.7.0 , mill-0.12.11

Other Information

What is the use case for changing the behavior?

主要言語
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 を短くまとめたダイジェスト。