From 4e7e6cbbbc6ed96d27dbaeb2413764cd446c50b3 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Wed, 18 Oct 2023 18:56:28 -0700 Subject: [PATCH] Place FFT in its ownclockdomain --- src/main/scala/Tail.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/scala/Tail.scala b/src/main/scala/Tail.scala index 2fa78c7..1472856 100644 --- a/src/main/scala/Tail.scala +++ b/src/main/scala/Tail.scala @@ -144,8 +144,9 @@ class LazyTail(val config: FixedTailParams)(implicit p: Parameters) extends Lazy trait CanHavePeripheryFFT extends BaseSubsystem { if (!p(FFTEnableKey).isEmpty) { // instantiate tail chain - val tailChain = LazyModule(new LazyTail(p(FFTEnableKey).get)) + val domain = pbus.generateSynchronousDomain.suggestName("fft_domain") + val tailChain = domain { LazyModule(new LazyTail(p(FFTEnableKey).get)) } // connect memory interfaces to pbus - pbus.coupleTo("tailWrite") { tailChain.node := TLFragmenter(pbus.beatBytes, pbus.blockBytes) := _ } + pbus.coupleTo("tailWrite") { domain { tailChain.node := TLFragmenter(pbus.beatBytes, pbus.blockBytes) } := _ } } }