Path of FixedIO's io generated invalid target

Aperta
#4,714 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
scala
Ambito
compilers

Direzione di ricerca

Eseguire la riproduzione Scala fornita usando FixedIORawModule, Property(Path(io)) e ChiselStage.emitCHIRRTL, quindi ispezionare il percorso generato nel FIRRTL emesso. Tracciare come il target FixedIO diventa OMReferenceTarget e determinare se il risultato debba essere reso valido o rifiutato esplicitamente; il lavoro è completato quando non viene emesso alcun percorso non valido.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Scala
Stelle
4.8k
Fork
669
Merge medio
1g 12h
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chipsalliance/chisel

Tutte le issue di chipsalliance/chisel

Issue simili

Altre issue su Scala

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.