Skip to content

Commit

Permalink
Deprecate AssertPropertyLike.createIntrinsic (#4059)
Browse files Browse the repository at this point in the history
It should never have been a public API.
  • Loading branch information
jackkoenig authored May 7, 2024
1 parent 7dbf6a9 commit 5bc1beb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/scala/chisel3/ltl/LTL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import chisel3.experimental.hierarchy.{Instance, Instantiate}

import chisel3.util.circt.LTLIntrinsicInstanceMethodsInternalWorkaround._

import scala.annotation.nowarn

/** An opaque sequence returned by an intrinsic.
*
* Due to the lack of opaque user-defined types in FIRRTL, the Linear Temporal
Expand Down Expand Up @@ -336,6 +338,7 @@ object Property {
/** The base class for the `AssertProperty`, `AssumeProperty`, and
* `CoverProperty` verification constructs.
*/
@nowarn("cat=deprecation&msg=method createIntrinsic")
sealed abstract class AssertPropertyLike {

/** Assert, assume, or cover that a property holds.
Expand Down Expand Up @@ -412,6 +415,7 @@ sealed abstract class AssertPropertyLike {
apply(Sequence.BoolSequence(cond), Some(clock), Some(disable), Some(label))
}

@deprecated("This API should never have been public", "Chisel 6.4")
def createIntrinsic(label: Option[String]): Instance[VerifAssertLikeIntrinsic]
}

Expand All @@ -421,6 +425,7 @@ sealed abstract class AssertPropertyLike {
* clock, disable_iff, and label parameters.
*/
object AssertProperty extends AssertPropertyLike {
@deprecated("This API should never have been public", "Chisel 6.4")
def createIntrinsic(label: Option[String]) = Instantiate(new VerifAssertIntrinsic(label))
}

Expand All @@ -430,6 +435,7 @@ object AssertProperty extends AssertPropertyLike {
* clock, disable_iff, and label parameters.
*/
object AssumeProperty extends AssertPropertyLike {
@deprecated("This API should never have been public", "Chisel 6.4")
def createIntrinsic(label: Option[String]) = Instantiate(new VerifAssumeIntrinsic(label))
}

Expand All @@ -439,5 +445,6 @@ object AssumeProperty extends AssertPropertyLike {
* clock, disable_iff, and label parameters.
*/
object CoverProperty extends AssertPropertyLike {
@deprecated("This API should never have been public", "Chisel 6.4")
def createIntrinsic(label: Option[String]) = Instantiate(new VerifCoverIntrinsic(label))
}

0 comments on commit 5bc1beb

Please sign in to comment.