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() }