Added config for GPU mem tracer

This commit is contained in:
Vamber Yang
2023-04-05 23:54:03 -07:00
parent f7dd5bef63
commit a9f632575e
6 changed files with 35 additions and 2 deletions

View File

@@ -25,6 +25,11 @@ class DigitalTop(implicit p: Parameters) extends ChipyardSystem
with sifive.blocks.devices.gpio.HasPeripheryGPIO // Enables optionally adding the sifive GPIOs
with sifive.blocks.devices.spi.HasPeripherySPIFlash // Enables optionally adding the sifive SPI flash controller
with sifive.blocks.devices.spi.HasPeripherySPI // Enables optionally adding the sifive SPI port
with freechips.rocketchip.tilelink.CanHaveGPUTracer // Enable GPU Tracer
with icenet.CanHavePeripheryIceNIC // Enables optionally adding the IceNIC for FireSim
with chipyard.example.CanHavePeripheryInitZero // Enables optionally adding the initzero example widget
with chipyard.example.CanHavePeripheryGCD // Enables optionally adding the GCD example widget

View File

@@ -0,0 +1,24 @@
package chipyard
import freechips.rocketchip.config.{Config}
import freechips.rocketchip.diplomacy.{AsynchronousCrossing}
class GPUTracerConfig extends Config(
// Attaching GPU Tracer to SBus
new freechips.rocketchip.tilelink.WithGPUTracer(4, "vecadd.core1.thread4.trace")++
// Creating L2
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
new freechips.rocketchip.subsystem.WithNBanks(4) ++
new chipyard.config.WithSystemBusWidth(64) ++
new freechips.rocketchip.subsystem.WithNCustomSmallCores(1) ++
new chipyard.config.AbstractConfig
)

View File

@@ -7,6 +7,9 @@ import freechips.rocketchip.diplomacy.{AsynchronousCrossing}
// Rocket Configs
// --------------
class RocketConfig extends Config(
new freechips.rocketchip.subsystem.WithNBigCores(1) ++ // single rocket-core
new chipyard.config.AbstractConfig)

1
tools/chisel-testers Submodule

Submodule tools/chisel-testers added at ce4e027e5f