Skip to content

Commit

Permalink
remove deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Jan 26, 2021
1 parent 2a96767 commit 8391247
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 725 deletions.
26 changes: 0 additions & 26 deletions core/src/main/scala/chisel3/Bits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ private[chisel3] sealed trait ToBoolable extends Element {

/** @group SourceInfoTransformMacro */
def do_asBool(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool

/** Casts this $coll to a [[Bool]]
*
* @note The width must be known and equal to 1
*/
final def toBool(): Bool = macro SourceInfoWhiteboxTransform.noArg

/** @group SourceInfoTransformMacro */
def do_toBool(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool
}

/** A data type for values represented by a single bitvector. This provides basic bitwise operations.
Expand Down Expand Up @@ -315,11 +306,6 @@ sealed abstract class Bits(private[chisel3] val width: Width) extends Element wi
/** Returns the contents of this wire as a [[scala.collection.Seq]] of [[Bool]]. */
final def toBools(): Seq[Bool] = macro SourceInfoTransform.noArg

/** @group SourceInfoTransformMacro */
@chiselRuntimeDeprecated
@deprecated("Use asBools instead", "3.2")
def do_toBools(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Seq[Bool] = do_asBools

/** Returns the contents of this wire as a [[scala.collection.Seq]] of [[Bool]]. */
final def asBools(): Seq[Bool] = macro SourceInfoTransform.noArg

Expand Down Expand Up @@ -369,10 +355,6 @@ sealed abstract class Bits(private[chisel3] val width: Width) extends Element wi
}
}

@chiselRuntimeDeprecated
@deprecated("Use asBool instead", "3.2")
final def do_toBool(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = do_asBool

/** Concatenation operator
*
* @param that a hardware component
Expand Down Expand Up @@ -591,10 +573,6 @@ sealed class UInt private[chisel3] (width: Width) extends Bits(width) with Num[U
override def do_<= (that: UInt)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = compop(sourceInfo, LessEqOp, that)
override def do_>= (that: UInt)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = compop(sourceInfo, GreaterEqOp, that)

@chiselRuntimeDeprecated
@deprecated("Use '=/=', which avoids potential precedence problems", "3.0")
final def != (that: UInt)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = this =/= that

/** Dynamic not equals operator
*
* @param that a hardware $coll
Expand Down Expand Up @@ -877,10 +855,6 @@ sealed class SInt private[chisel3] (width: Width) extends Bits(width) with Num[S
override def do_<= (that: SInt)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = compop(sourceInfo, LessEqOp, that)
override def do_>= (that: SInt)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = compop(sourceInfo, GreaterEqOp, that)

@chiselRuntimeDeprecated
@deprecated("Use '=/=', which avoids potential precedence problems", "3.0")
final def != (that: SInt)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = this =/= that

/** Dynamic not equals operator
*
* @param that a hardware $coll
Expand Down
8 changes: 0 additions & 8 deletions core/src/main/scala/chisel3/Data.scala
Original file line number Diff line number Diff line change
Expand Up @@ -554,14 +554,6 @@ abstract class Data extends HasId with NamedComponent with SourceInfoDoc {
}
}

@chiselRuntimeDeprecated
@deprecated("litArg is deprecated, use litOption or litTo*Option", "3.2")
def litArg(): Option[LitArg] = topBindingOpt match {
case Some(ElementLitBinding(litArg)) => Some(litArg)
case Some(BundleLitBinding(litMap)) => None // this API does not support Bundle literals
case _ => None
}

def isLit(): Boolean = litOption.isDefined

/**
Expand Down
288 changes: 0 additions & 288 deletions core/src/main/scala/chisel3/core/package.scala

This file was deleted.

7 changes: 0 additions & 7 deletions core/src/main/scala/chisel3/experimental/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ package object experimental {

type ChiselEnum = EnumFactory

@deprecated("Use the version in chisel3._", "3.2")
val withClockAndReset = chisel3.withClockAndReset
@deprecated("Use the version in chisel3._", "3.2")
val withClock = chisel3.withClock
@deprecated("Use the version in chisel3._", "3.2")
val withReset = chisel3.withReset

// Rocket Chip-style clonemodule

/** A record containing the results of CloneModuleAsRecord
Expand Down
7 changes: 0 additions & 7 deletions core/src/main/scala/chisel3/internal/Error.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ class ChiselException(message: String, cause: Throwable = null) extends Exceptio
trimmedReverse.reverse.toArray
}

/** trims the top of the stack of elements belonging to [[blacklistPackages]]
* then trims the bottom elements until it reaches [[builderName]]
* then continues trimming elements belonging to [[blacklistPackages]]
*/
@deprecated("This method will be removed in 3.4", "3.3")
def trimmedStackTrace: Array[StackTraceElement] = trimmedStackTrace(this)

def chiselStackTrace: String = {
val trimmed = trimmedStackTrace(likelyCause)

Expand Down
Loading

0 comments on commit 8391247

Please sign in to comment.