File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed
core/src/main/scala/chisel3
firrtl/src/main/scala/firrtl/ir Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ abstract class BlackBox(
5656 override protected final val requirements : Seq [String ] = Seq .empty[String ]
5757) extends BaseBlackBox {
5858
59+ def this (params : Map [String , Param ]) =
60+ this (params, Seq .empty[Layer ], Seq .empty[String ])
61+
62+ def this (params : Map [String , Param ], knownLayers : Seq [Layer ]) =
63+ this (params, knownLayers, Seq .empty[String ])
64+
5965 // Find a Record port named "io" for purposes of stripping the prefix
6066 private [chisel3] lazy val _io : Option [Record ] =
6167 this
Original file line number Diff line number Diff line change @@ -100,6 +100,15 @@ abstract class ExtModule(
100100 override protected final val knownLayers : Seq [Layer ] = Seq .empty[Layer ],
101101 override protected final val requirements : Seq [String ] = Seq .empty[String ]
102102) extends BaseBlackBox {
103+ def this (
104+ params : Map [String , Param ]
105+ ) = this (params, knownLayers = Seq .empty[Layer ], requirements = Seq .empty[String ])
106+
107+ def this (
108+ params : Map [String , Param ],
109+ knownLayers : Seq [Layer ]
110+ ) = this (params, knownLayers, requirements = Seq .empty[String ])
111+
103112 private [chisel3] override def generateComponent (): Option [Component ] = {
104113 require(! _closed, " Can't generate module more than once" )
105114
Original file line number Diff line number Diff line change @@ -797,6 +797,26 @@ case class ExtModule(
797797) extends DefModule
798798 with UseSerializer
799799
800+ @ deprecated(" All APIs in package firrtl are deprecated." , " Chisel 7.0.0" )
801+ object ExtModule {
802+ def apply (
803+ info : Info ,
804+ name : String ,
805+ ports : Seq [Port ],
806+ defname : String ,
807+ params : Seq [Param ],
808+ layers : Seq [String ]
809+ ): ExtModule = ExtModule (
810+ info,
811+ name,
812+ ports,
813+ defname,
814+ params,
815+ layers,
816+ requirements = Seq .empty[String ]
817+ )
818+ }
819+
800820/** Intrinsic Module
801821 *
802822 * Used for compiler intrinsics.
You can’t perform that action at this time.
0 commit comments