Skip to content

Commit

Permalink
ViaConnection can create unreferenced anonymous members
Browse files Browse the repository at this point in the history
  • Loading branch information
Oron Port committed Feb 4, 2025
1 parent 553070a commit d2931b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import dfhdl.internals.*

case object ViaConnection extends Stage:
def dependencies: List[Stage] = List(DropDesignDefs, ExplicitNamedVars)
def nullifies: Set[Stage] = Set()
def nullifies: Set[Stage] = Set(DropUnreferencedAnons)
def transform(designDB: DB)(using MemberGetSet, CompilerOptions): DB =
val patchList: List[(DFMember, Patch)] = designDB.designMemberList.flatMap {
case (ib, members) if !ib.isTop =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import dfhdl.*
import dfhdl.compiler.stages.viaConnection
// scalafmt: { align.tokens = [{code = "<>"}, {code = "="}, {code = "=>"}, {code = ":="}]}

class ViaConnectionSpec extends StageSpec:
class ViaConnectionSpec extends StageSpec(stageCreatesUnrefAnons = true):
class ID extends DFDesign:
val x = SInt(16) <> IN
val y = SInt(16) <> OUT
Expand Down

0 comments on commit d2931b5

Please sign in to comment.