Skip to content

Commit

Permalink
[LTL] Deprecate disable intrinsic (backport #4237) (#4239)
Browse files Browse the repository at this point in the history
* [LTL] Deprecate disable intrinsic (#4237)

(cherry picked from commit 9c61fdc)

# Conflicts:
#	build.sbt
#	src/main/scala/chisel3/ltl/LTL.scala

* Resolve backport conflicts

---------

Co-authored-by: Amelia Dobis <amelia.dobis@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent 202b81b commit d4c0050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ lazy val warningSuppression = Seq(
"msg=undefined in comment for method cf in class PrintableHelper:s",
// This is deprecated for external users but not internal use
"cat=deprecation&origin=firrtl\\.options\\.internal\\.WriteableCircuitAnnotation:s",
"cat=deprecation&origin=chisel3\\.util\\.experimental\\.BoringUtils.*:s"
"cat=deprecation&origin=chisel3\\.util\\.experimental\\.BoringUtils.*:s",
"cat=deprecation&origin=chisel3\\.ltl.*:s"
).mkString(",")
)

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/chisel3/ltl/LTL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ sealed trait Property {
def clock(clock: Clock): Property = Property.clock(this, clock)

/** See `Property.disable`. */
@deprecated("Use withDisable", "Chisel 6.5")
def disable(cond: Disable): Property = Property.disable(this, cond)
}

Expand Down Expand Up @@ -327,6 +328,7 @@ object Property {
* condition is true at any time during the evaluation of the property, the
* evaluation is aborted. Equivalent to `disable iff (cond) prop` in SVA.
*/
@deprecated("Use withDisable", "Chisel 6.5")
def disable(prop: Property, cond: Disable): Property = {
val ltl_disable = Instantiate(new LTLDisableIntrinsic)
ltl_disable.in := prop.inner
Expand Down

0 comments on commit d4c0050

Please sign in to comment.