[FireChip] Fix BootROM path handling
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user