From 95f30d0411645b12dfc5c0b14f9af0a5a678a991 Mon Sep 17 00:00:00 2001 From: Tushar Sondhi Date: Thu, 19 Jan 2023 14:02:47 -0800 Subject: [PATCH] add more minimal firesim configs for testing (#1313) --- .../src/main/scala/TargetConfigs.scala | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/generators/firechip/src/main/scala/TargetConfigs.scala b/generators/firechip/src/main/scala/TargetConfigs.scala index c6402a71..c74803c4 100644 --- a/generators/firechip/src/main/scala/TargetConfigs.scala +++ b/generators/firechip/src/main/scala/TargetConfigs.scala @@ -139,6 +139,26 @@ class WithMinimalFireSimHighPerfConfigTweaks extends Config( new WithMinimalFireSimDesignTweaks ) +/** + * Adds BlockDevice to WithMinimalFireSimHighPerfConfigTweaks + */ +class WithMinimalAndBlockDeviceFireSimHighPerfConfigTweaks extends Config( + new WithFireSimHighPerfClocking ++ + new freechips.rocketchip.subsystem.WithNoMemPort ++ // removes mem port for FASEDBridge to match against + new testchipip.WithBackingScratchpad ++ // adds backing scratchpad for memory to replace FASED model + new testchipip.WithBlockDevice(true) ++ // add in block device + new WithMinimalFireSimDesignTweaks +) + +/** + * Adds Block device to WithMinimalFireSimHighPerfConfigTweaks + */ +class WithMinimalAndFASEDFireSimHighPerfConfigTweaks extends Config( + new WithFireSimHighPerfClocking ++ + new WithDefaultMemModel ++ // add default FASED memory model + new WithMinimalFireSimDesignTweaks +) + // Tweaks for legacy FireSim configs. class WithFireSimHighPerfConfigTweaks extends Config( new WithFireSimHighPerfClocking ++