Utils

firrtl.Utils
object Utils extends LazyLogging

Attributes

Deprecated
[Since version Chisel 7.0.0] All APIs in package firrtl are deprecated.
Source
Utils.scala
Graph
Supertypes
trait LazyLogging
class Object
trait Matchable
class Any
Self type
Utils.type

Members list

Value members

Concrete methods

def error(str: String, cause: Throwable = ...): Nothing

Attributes

Source
Utils.scala
def field_type(v: Type, s: String): Type

Attributes

Source
Utils.scala
def getThrowable(maybeException: Option[Throwable], first: Boolean): Throwable

Unwind the causal chain until we hit the initial exception (which may be the first).

Unwind the causal chain until we hit the initial exception (which may be the first).

Value parameters

first
  • true if we want the first (eldest) exception in the chain,
maybeException
  • possible exception triggering the error,

Attributes

Returns

first or last Throwable in the chain.

Source
Utils.scala
def getUIntWidth(u: BigInt): Int

Attributes

Source
Utils.scala
def sub_type(v: Type): Type

Attributes

Source
Utils.scala
def throwInternalError(message: String = ..., exception: Option[Throwable] = ...): Nothing

Throw an internal error, possibly due to an exception.

Throw an internal error, possibly due to an exception.

Value parameters

exception
  • possible exception triggering the error.
message
  • possible string to emit,

Attributes

Source
Utils.scala
def time[R](block: => R): (Double, R)

Attributes

Source
Utils.scala

Inherited methods

Attributes

Inherited from:
LazyLogging
Source
Logger.scala

Concrete fields

Attributes

Source
Utils.scala

Attributes

Source
Utils.scala

Attributes

Source
Utils.scala

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
LazyLogging
Source
Logger.scala