From 563f348ca3e4a984ad23caba9e980dab8fa808bb Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Thu, 16 Feb 2017 11:02:21 -0800 Subject: Add support for clock and reset scoping (#509) withClockAndReset, withReset, and withClock allow changing the implicit clock and reset. Module.clock and Module.reset provide access to the current implicit clock and reset. --- src/main/scala/chisel3/package.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/scala/chisel3') diff --git a/src/main/scala/chisel3/package.scala b/src/main/scala/chisel3/package.scala index a236d3da..0ccdfc29 100644 --- a/src/main/scala/chisel3/package.scala +++ b/src/main/scala/chisel3/package.scala @@ -268,6 +268,10 @@ package object chisel3 { // scalastyle:ignore package.object.name val Analog = chisel3.core.Analog val attach = chisel3.core.attach + val withClockAndReset = chisel3.core.withClockAndReset + val withClock = chisel3.core.withClock + val withReset = chisel3.core.withReset + // Implicit conversions for BlackBox Parameters implicit def fromIntToIntParam(x: Int): IntParam = IntParam(BigInt(x)) implicit def fromLongToIntParam(x: Long): IntParam = IntParam(BigInt(x)) -- cgit v1.2.3