From bc6686a063ce3162e3c076bf1dd9660b783bfea7 Mon Sep 17 00:00:00 2001 From: David Biancolin Date: Fri, 28 Jun 2019 17:57:12 +0000 Subject: [PATCH] [FireChip] Fix BootROM path handling --- generators/firechip/src/main/scala/TargetConfigs.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/generators/firechip/src/main/scala/TargetConfigs.scala b/generators/firechip/src/main/scala/TargetConfigs.scala index 6e20364d..9be95d89 100644 --- a/generators/firechip/src/main/scala/TargetConfigs.scala +++ b/generators/firechip/src/main/scala/TargetConfigs.scala @@ -16,11 +16,11 @@ import icenet._ class WithBootROM extends Config((site, here, up) => { case BootROMParams => { - val rebarBootROM = new File(s"./generators/testchipip/bootrom/bootrom.rv${site(XLen)}.img") - val firesimBootROM = new File(s"./target-rtl/firechip/generators/testchipip/bootrom/bootrom.rv${site(XLen)}.img") + val chipyardBootROM = new File(s"./generators/testchipip/bootrom/bootrom.rv${site(XLen)}.img") + val firesimBootROM = new File(s"./target-rtl/chipyard/generators/testchipip/bootrom/bootrom.rv${site(XLen)}.img") - val bootROMPath = if (rebarBootROM.exists()) { - rebarBootROM.getAbsolutePath() + val bootROMPath = if (chipyardBootROM.exists()) { + chipyardBootROM.getAbsolutePath() } else { firesimBootROM.getAbsolutePath() }