Skip to content

Commit

Permalink
ADD: merge #2173 to #2172, bump decoder commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iansseijelly committed Feb 7, 2025
1 parent 3986f42 commit 7c9242f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions generators/chipyard/src/main/scala/config/RocketConfigs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,10 @@ class SV48RocketConfig extends Config(
new freechips.rocketchip.rocket.WithSV48 ++
new freechips.rocketchip.rocket.WithNHugeCores(1) ++
new chipyard.config.AbstractConfig)

class LTraceEncoderRocketConfig extends Config(
new chipyard.config.WithLTraceEncoder ++
new chipyard.config.WithNPerfCounters(29) ++
new freechips.rocketchip.subsystem.WithoutTLMonitors ++
new freechips.rocketchip.rocket.WithNHugeCores(1) ++
new chipyard.config.AbstractConfig)
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ibex.{IbexTileAttachParams}
import vexiiriscv.{VexiiRiscvTileAttachParams}
import testchipip.cosim.{TracePortKey, TracePortParams}
import barf.{TilePrefetchingMasterPortParams}
import freechips.rocketchip.util.{TraceEncoderParams, TraceCoreParams}

class WithL2TLBs(entries: Int) extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
Expand Down Expand Up @@ -64,6 +65,25 @@ class WithNPerfCounters(n: Int = 29) extends Config((site, here, up) => {
}
})

class WithLTraceEncoder extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: RocketTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
ltrace = Some(new TraceEncoderParams(
coreParams = new TraceCoreParams(
nGroups = 1,
iretireWidth = 1,
xlen = tp.tileParams.core.xLen,
iaddrWidth = tp.tileParams.core.xLen
),
bufferDepth = 16,
encoderBaseAddr = 0x3000000 + tp.tileParams.tileId * 0x1000,
sinkDMABaseAddr = 0x3010000 + tp.tileParams.tileId * 0x1000,
useSinkPrint = true,
useSinkDMA = true
))))
}
})

class WithNPMPs(n: Int = 8) extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: RocketTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
Expand Down
2 changes: 1 addition & 1 deletion software/tacit_decoder
Submodule tacit_decoder updated 1 files
+27 −6 README.md

0 comments on commit 7c9242f

Please sign in to comment.