Rename implicit clock/reset to referenceclock/reset

This commit is contained in:
Jerry Zhao
2023-05-12 15:11:44 -07:00
parent 94d471bd9a
commit b8e95e0305
7 changed files with 20 additions and 20 deletions

View File

@@ -21,8 +21,8 @@ class ArtyFPGATestHarness(override implicit val p: Parameters) extends ArtyShell
def success = {require(false, "Success not supported"); false.B } def success = {require(false, "Success not supported"); false.B }
def implicitClock = clock_32MHz def referenceClock = clock_32MHz
def implicitReset = hReset def referenceReset = hReset
instantiateChipTops() instantiateChipTops()
} }

View File

@@ -76,8 +76,8 @@ class Arty100THarness(override implicit val p: Parameters) extends Arty100TShell
harnessSysPLL.plls.foreach(_._1.getReset.get := pllReset) harnessSysPLL.plls.foreach(_._1.getReset.get := pllReset)
def implicitClock = dutClock.in.head._1.clock def referenceClock = dutClock.in.head._1.clock
def implicitReset = dutClock.in.head._1.reset def referenceReset = dutClock.in.head._1.reset
def success = { require(false, "Unused"); false.B } def success = { require(false, "Unused"); false.B }
ddrOverlay.mig.module.clock := harnessBinderClock ddrOverlay.mig.module.clock := harnessBinderClock

View File

@@ -114,12 +114,12 @@ class VC707FPGATestHarnessImp(_outer: VC707FPGATestHarness) extends LazyRawModul
val hReset = Wire(Reset()) val hReset = Wire(Reset())
hReset := _outer.dutClock.in.head._1.reset hReset := _outer.dutClock.in.head._1.reset
def implicitClock = _outer.dutClock.in.head._1.clock def referenceClock = _outer.dutClock.in.head._1.clock
def implicitReset = hReset def referenceReset = hReset
def success = { require(false, "Unused"); false.B } def success = { require(false, "Unused"); false.B }
childClock := implicitClock childClock := referenceClock
childReset := implicitReset childReset := referenceReset
instantiateChipTops() instantiateChipTops()
} }

View File

@@ -118,12 +118,12 @@ class VCU118FPGATestHarnessImp(_outer: VCU118FPGATestHarness) extends LazyRawMod
val hReset = Wire(Reset()) val hReset = Wire(Reset())
hReset := _outer.dutClock.in.head._1.reset hReset := _outer.dutClock.in.head._1.reset
def implicitClock = _outer.dutClock.in.head._1.clock def referenceClock = _outer.dutClock.in.head._1.clock
def implicitReset = hReset def referenceReset = hReset
def success = { require(false, "Unused"); false.B } def success = { require(false, "Unused"); false.B }
childClock := implicitClock childClock := referenceClock
childReset := implicitReset childReset := referenceReset
instantiateChipTops() instantiateChipTops()
} }

View File

@@ -53,8 +53,8 @@ trait HasHarnessInstantiators {
val harnessBinderReset = Wire(Reset()) val harnessBinderReset = Wire(Reset())
// classes which inherit this trait should provide the below definitions // classes which inherit this trait should provide the below definitions
def implicitClock: Clock def referenceClock: Clock
def implicitReset: Reset def referenceReset: Reset
def success: Bool def success: Bool
// This can be accessed to get new clocks from the harness // This can be accessed to get new clocks from the harness
@@ -86,9 +86,9 @@ trait HasHarnessInstantiators {
val harnessBinderClk = harnessClockInstantiator.requestClockMHz("harnessbinder_clock", getHarnessBinderClockFreqMHz) val harnessBinderClk = harnessClockInstantiator.requestClockMHz("harnessbinder_clock", getHarnessBinderClockFreqMHz)
println(s"Harness binder clock is $harnessBinderClockFreq") println(s"Harness binder clock is $harnessBinderClockFreq")
harnessBinderClock := harnessBinderClk harnessBinderClock := harnessBinderClk
harnessBinderReset := implicitReset harnessBinderReset := ResetCatchAndSync(harnessBinderClk, referenceReset.asBool)
harnessClockInstantiator.instantiateHarnessClocks(implicitClock) harnessClockInstantiator.instantiateHarnessClocks(referenceClock)
lazyDuts lazyDuts
} }

View File

@@ -24,8 +24,8 @@ class TestHarness(implicit val p: Parameters) extends Module with HasHarnessInst
val success = WireInit(false.B) val success = WireInit(false.B)
io.success := success io.success := success
def implicitClock = clock def referenceClock = clock
def implicitReset = reset def referenceReset = reset
instantiateChipTops() instantiateChipTops()
} }

View File

@@ -72,8 +72,8 @@ class FireSim(implicit val p: Parameters) extends RawModule with HasHarnessInsta
// In effect, the bridge counts the length of the reset in terms of this clock. // In effect, the bridge counts the length of the reset in terms of this clock.
resetBridge.io.clock := harnessBinderClock resetBridge.io.clock := harnessBinderClock
def implicitClock = false.B.asClock // unused def referenceClock = false.B.asClock // unused
def implicitReset = resetBridge.io.reset def referenceReset = resetBridge.io.reset
def success = { require(false, "success should not be used in Firesim"); false.B } def success = { require(false, "success should not be used in Firesim"); false.B }
instantiateChipTops() instantiateChipTops()