bunch of stuff dont remember
This commit is contained in:
@@ -40,35 +40,32 @@ class RadianceBaseConfig(argsBinFilename: String = "args.bin") extends Config(
|
|||||||
new WithExtMemSize(BigInt("80000000", 16)) ++
|
new WithExtMemSize(BigInt("80000000", 16)) ++
|
||||||
new WithRadBootROM() ++
|
new WithRadBootROM() ++
|
||||||
new WithRadROMs(0x7FFF0000L, 0x10000, s"sims/${argsBinFilename}") ++
|
new WithRadROMs(0x7FFF0000L, 0x10000, s"sims/${argsBinFilename}") ++
|
||||||
new WithRadianceSharedMem(address = x"ff000000", size = 64 << 10, numBanks = 4, numWords = 8) ++
|
|
||||||
// new chipyard.harness.WithCeaseSuccess ++
|
// new chipyard.harness.WithCeaseSuccess ++
|
||||||
new chipyard.iobinders.WithCeasePunchThrough ++
|
new chipyard.iobinders.WithCeasePunchThrough ++
|
||||||
new radiance.subsystem.WithRadianceSimParams(true) ++
|
new radiance.subsystem.WithRadianceSimParams(true) ++
|
||||||
new WithCacheBlockBytes(64) ++
|
new WithCacheBlockBytes(64) ++
|
||||||
|
new freechips.rocketchip.subsystem.WithNMemoryChannels(2) ++
|
||||||
|
new freechips.rocketchip.subsystem.WithEdgeDataBits(256) ++
|
||||||
new AbstractConfig)
|
new AbstractConfig)
|
||||||
|
|
||||||
class RadianceConfig 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) ++
|
|
||||||
new radiance.subsystem.WithRadianceCores(1, location = InCluster(0), useVxCache = false) ++
|
|
||||||
new radiance.subsystem.WithCoalescer(nNewSrcIds = 16) ++
|
|
||||||
new radiance.subsystem.WithVortexL1Banks(nBanks = 4)++
|
|
||||||
new radiance.subsystem.WithRadianceCluster(0) ++
|
|
||||||
new RadianceBaseConfig)
|
|
||||||
|
|
||||||
class RadianceClusterConfig extends Config(
|
class RadianceClusterConfig extends Config(
|
||||||
// important to keep gemmini tile before RadianceCores to ensure radiance tile id is 0-indexed
|
// 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) ++
|
new radiance.subsystem.WithRadianceGemmini(location = InCluster(0), dim = 8, accSizeInKB = 16, tileSize = 8) ++
|
||||||
new radiance.subsystem.WithRadianceCores(2, location = InCluster(0),
|
new radiance.subsystem.WithRadianceCores(2, location = InCluster(0), useVxCache = false) ++
|
||||||
// crossing = RocketCrossingParams(master = HierarchicalElementMasterPortParams(where = CMBUS(0))),
|
new radiance.subsystem.WithRadianceFrameBuffer(x"ff018000", 16, 0x8000, x"ff011000", "fb0") ++
|
||||||
useVxCache = false) ++
|
new radiance.subsystem.WithRadianceSharedMem(address = x"ff000000", size = 64 << 10, numBanks = 4, numWords = 8) ++
|
||||||
new radiance.subsystem.WithCoalescer(nNewSrcIds = 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 radiance.subsystem.WithRadianceCluster(0) ++
|
||||||
// crossing = RocketCrossingParams(master = HierarchicalElementMasterPortParams(where = MBUS))
|
new RadianceBaseConfig)
|
||||||
) ++
|
|
||||||
new freechips.rocketchip.subsystem.WithNMemoryChannels(2) ++
|
class Radiance16KClusterConfig extends Config(
|
||||||
new freechips.rocketchip.subsystem.WithEdgeDataBits(256) ++
|
new radiance.subsystem.WithRadianceGemmini(location = InCluster(0), dim = 8, accSizeInKB = 4, tileSize = 4) ++
|
||||||
|
new radiance.subsystem.WithRadianceCores(2, location = InCluster(0), useVxCache = false) ++
|
||||||
|
new radiance.subsystem.WithRadianceSharedMem(address = x"ff000000", size = 16 << 10, numBanks = 4, numWords = 8) ++
|
||||||
|
new radiance.subsystem.WithCoalescer(nNewSrcIds = 16) ++
|
||||||
|
new radiance.subsystem.WithVortexL1Banks(nBanks = 8)++
|
||||||
|
new radiance.subsystem.WithRadianceCluster(0) ++
|
||||||
new RadianceBaseConfig)
|
new RadianceBaseConfig)
|
||||||
|
|
||||||
class RadianceClusterConfig0 extends Config(
|
class RadianceClusterConfig0 extends Config(
|
||||||
|
|||||||
Submodule generators/gemmini updated: 8a9c423900...38d10203c1
Submodule generators/radiance updated: 697c37b980...17756d5f53
@@ -1,6 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
PRINT_BUF = 0x4000 / 4
|
# PRINT_BUF = 0x4000 / 4
|
||||||
|
PRINT_BUF = 0x10000 / 4
|
||||||
|
|
||||||
def parse_log_file(log_file_path):
|
def parse_log_file(log_file_path):
|
||||||
target_string = '' # Initialize the string we'll build from hex values
|
target_string = '' # Initialize the string we'll build from hex values
|
||||||
@@ -24,7 +25,7 @@ def parse_log_file(log_file_path):
|
|||||||
|
|
||||||
# print(rs1_data_last_element)
|
# print(rs1_data_last_element)
|
||||||
for rs1, rs2, byteen in zip(rs1_data_elts, rs2_data_elts, byteen_elts):
|
for rs1, rs2, byteen in zip(rs1_data_elts, rs2_data_elts, byteen_elts):
|
||||||
if '0x3fc0' in rs1:
|
if int(rs1, 16) >> 18 == 0xff0:
|
||||||
offset = (int(rs1, 16) - PRINT_BUF) % 65536
|
offset = (int(rs1, 16) - PRINT_BUF) % 65536
|
||||||
if offset < 0 or offset >= 1024:
|
if offset < 0 or offset >= 1024:
|
||||||
continue
|
continue
|
||||||
@@ -89,7 +90,7 @@ def main():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
log_file_path = sys.argv[1]
|
log_file_path = sys.argv[1]
|
||||||
if log_file_path[-4:] == "log":
|
if log_file_path[-4:] == ".log":
|
||||||
print(parse_log_file(log_file_path))
|
print(parse_log_file(log_file_path))
|
||||||
else:
|
else:
|
||||||
print(parse_out_file(log_file_path))
|
print(parse_out_file(log_file_path))
|
||||||
|
|||||||
Reference in New Issue
Block a user