Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path of FixedIO's io generated invalid target #4714

Open
dtzSiFive opened this issue Feb 20, 2025 · 1 comment
Open

Path of FixedIO's io generated invalid target #4714

dtzSiFive opened this issue Feb 20, 2025 · 1 comment

Comments

@dtzSiFive
Copy link
Member

Type of issue: Bug Report

Please provide the steps to reproduce the problem:

Run this:

//> using repository "sonatype-s01:snapshots"
//> using scala "2.13.14"
//> using dep "org.chipsalliance::chisel:7.0.0-M2+364-7b029eed-SNAPSHOT"
//> using plugin "org.chipsalliance:::chisel-plugin:7.0.0-M2+364-7b029eed-SNAPSHOT"

import chisel3._
import chisel3.properties.{Path, Property}
import circt.stage.ChiselStage

class TargetIO(width: Int) extends Bundle {
  val in = Flipped(UInt(width.W))
  val out = UInt(width.W)
}

class VerifTarget extends FixedIORawModule[TargetIO](new TargetIO(8)) {
  io.out := io.in

  val p = Wire(Output(Property[Path]()))
  p := Property(Path(io))
}

object Main extends App {
  println(ChiselStage.emitCHIRRTL(new VerifTarget))
}

What is the current behavior?

Produces:

FIRRTL version 4.2.0
circuit VerifTarget :
  ; (removed layer decls)
  public module VerifTarget :
    input in : UInt<8>
    output out : UInt<8>

    connect out, in
    wire p : Path
    propassign p, path("OMReferenceTarget:~_$$View$$_|_$$AbsoluteView$$_>view")

The path("OMReferenceTarget:~_$$View$$_|_$$AbsoluteView$$_>view") is the issue.

What is the expected behavior?

Valid path, or error if unsupported/invalid.

Please tell us about your environment:

Other Information

What is the use case for changing the behavior?

@jackkoenig
Copy link
Contributor

Not exactly the same bug as #4713 but related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants