From e74a231239652e87fc11e1e41c894de3d67d9925 Mon Sep 17 00:00:00 2001 From: Richard Yan Date: Mon, 28 Oct 2024 17:57:39 -0700 Subject: [PATCH] 400mhz, hopper config --- .../main/scala/config/RadianceConfigs.scala | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/generators/chipyard/src/main/scala/config/RadianceConfigs.scala b/generators/chipyard/src/main/scala/config/RadianceConfigs.scala index fea8133d..2fe22774 100644 --- a/generators/chipyard/src/main/scala/config/RadianceConfigs.scala +++ b/generators/chipyard/src/main/scala/config/RadianceConfigs.scala @@ -42,6 +42,13 @@ class RadianceBaseConfig extends Config( new WithCacheBlockBytes(64) ++ new freechips.rocketchip.subsystem.WithNMemoryChannels(2) ++ new freechips.rocketchip.subsystem.WithEdgeDataBits(256) ++ + + new chipyard.config.WithPeripheryBusFrequency(400.0) ++ + new chipyard.config.WithMemoryBusFrequency(400.0) ++ + new chipyard.config.WithControlBusFrequency(400.0) ++ + new chipyard.config.WithSystemBusFrequency(400.0) ++ + new chipyard.config.WithFrontBusFrequency(400.0) ++ + new chipyard.config.WithOffchipBusFrequency(400.0) ++ new AbstractConfig) class RadianceFP16ClusterConfig extends Config( @@ -49,18 +56,18 @@ class RadianceFP16ClusterConfig extends Config( new radiance.subsystem.WithRadianceCores(8, location = InCluster(0), tensorCoreFP16 = true, useVxCache = false) ++ new radiance.subsystem.WithRadianceSharedMem(address = x"ff000000", size = 128 << 10, numBanks = 4, numWords = 16) ++ new radiance.subsystem.WithCoalescer(nNewSrcIds = 16) ++ - new radiance.subsystem.WithVortexL1Banks(nBanks = 8)++ + new radiance.subsystem.WithVortexL1Banks(nBanks = 8) ++ new radiance.subsystem.WithRadianceCluster(0) ++ new RadianceBaseConfig) class Radiance4CFP16ClusterConfig extends Config( new radiance.subsystem.WithRadianceGemmini(location = InCluster(0), dim = 16, accSizeInKB = 64, tileSize = (8, 4, 8), dataType = RadianceGemminiDataType.FP16) ++ - new radiance.subsystem.WithRadianceCores(4, location = InCluster(0), tensorCoreFP16 = true, useVxCache = false) ++ + new radiance.subsystem.WithRadianceCores(4, location = InCluster(0), tensorCoreFP16 = true, tensorCoreDecoupled = true, useVxCache = false) ++ new radiance.subsystem.WithRadianceSharedMem(address = x"ff000000", size = 128 << 10, numBanks = 4, numWords = 16, memType = radiance.subsystem.TwoReadOneWrite, serializeUnaligned = radiance.subsystem.CoreSerialized) ++ new radiance.subsystem.WithCoalescer(nNewSrcIds = 16) ++ - new radiance.subsystem.WithVortexL1Banks(nBanks = 8)++ + new radiance.subsystem.WithVortexL1Banks(nBanks = 8) ++ new radiance.subsystem.WithRadianceCluster(0) ++ new RadianceBaseConfig) @@ -68,11 +75,13 @@ class RadianceClusterConfig extends Config( // important to keep gemmini tile before RadianceCores to ensure radiance tile id is 0-indexed new radiance.subsystem.WithRadianceGemmini(location = InCluster(0), dim = 8, accSizeInKB = 16, tileSize = 8) ++ // new radiance.subsystem.WithRadianceGemmini(location = InCluster(0), dim = 8, accSizeInKB = 16, tileSize = 8) ++ - new radiance.subsystem.WithRadianceCores(4, location = InCluster(0), tensorCoreFP16 = false, useVxCache = false) ++ + new radiance.subsystem.WithRadianceCores(4, location = InCluster(0), tensorCoreFP16 = false, tensorCoreDecoupled = true, useVxCache = false) ++ // new radiance.subsystem.WithRadianceFrameBuffer(x"ff018000", 16, 0x8000, x"ff011000", "fb0") ++ - new radiance.subsystem.WithRadianceSharedMem(address = x"ff000000", size = 256 << 10/*KBytes*/, numBanks = 8, numWords = 8) ++ + new radiance.subsystem.WithRadianceSharedMem(address = x"ff000000", size = 256 << 10/*KBytes*/, numBanks = 4, numWords = 16, + memType = radiance.subsystem.TwoReadOneWrite, + serializeUnaligned = radiance.subsystem.CoreSerialized) ++ new radiance.subsystem.WithCoalescer(nNewSrcIds = 16) ++ - new radiance.subsystem.WithVortexL1Banks(nBanks = 8)++ + new radiance.subsystem.WithVortexL1Banks(nBanks = 8) ++ new radiance.subsystem.WithRadianceCluster(0) ++ new RadianceBaseConfig)