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

Deprecate AssertPropertyLike.createIntrinsic #4059

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))
}
Loading