[FireChip] Fix BootROM path handling

This commit is contained in:
David Biancolin
2019-06-28 17:57:12 +00:00
parent 8700ff05e5
commit bc6686a063

View File

@@ -16,11 +16,11 @@ import icenet._
class WithBootROM extends Config((site, here, up) => { class WithBootROM extends Config((site, here, up) => {
case BootROMParams => { case BootROMParams => {
val rebarBootROM = new File(s"./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/firechip/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()) { val bootROMPath = if (chipyardBootROM.exists()) {
rebarBootROM.getAbsolutePath() chipyardBootROM.getAbsolutePath()
} else { } else {
firesimBootROM.getAbsolutePath() firesimBootROM.getAbsolutePath()
} }