withClock

chisel3.withClock
object withClock

Attributes

Source
MultiClock.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
withClock.type

Members list

Value members

Concrete methods

def apply[T](clock: Clock)(block: => T): T

Creates a new Clock scope

Creates a new Clock scope

Value parameters

block

the block of code to run with new implicit Clock

clock

the new implicit Clock

Attributes

Returns

the result of the block

Source
MultiClock.scala
def apply[T](clock: Option[Clock])(block: => T): T

Creates a new Clock scope

Creates a new Clock scope

Value parameters

block

the block of code to run with new implicit Clock

clock

the new implicit Clock, None will set no implicit clock

Attributes

Returns

the result of the block

Source
MultiClock.scala