RegFilePlugin.x0Init do less assumption on other plugin behaviour
This commit is contained in:
parent
576e21d75d
commit
9abe19317d
|
@ -105,10 +105,6 @@ class RegFilePlugin(regFileReadyKind : RegFileReadKind,
|
||||||
if(x0Init) {
|
if(x0Init) {
|
||||||
val boot = RegNext(False) init (True)
|
val boot = RegNext(False) init (True)
|
||||||
regFileWrite.valid setWhen (boot)
|
regFileWrite.valid setWhen (boot)
|
||||||
if (writeStage != execute) {
|
|
||||||
inputInit[Bits](REGFILE_WRITE_DATA, 0)
|
|
||||||
inputInit[Bits](INSTRUCTION, 0)
|
|
||||||
} else {
|
|
||||||
when(boot) {
|
when(boot) {
|
||||||
regFileWrite.address := 0
|
regFileWrite.address := 0
|
||||||
regFileWrite.data := 0
|
regFileWrite.data := 0
|
||||||
|
@ -116,5 +112,4 @@ class RegFilePlugin(regFileReadyKind : RegFileReadKind,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue