cpu: vexriscv: allow cpu_reset_address to be overridden
Allow the cpu_reset_address value to be overridden, for example allowing it to be a signal. That way the reset address can be modified after synthesis, in dual-core or debug situations. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
2ebfab5e1f
commit
e2cf45b8a9
|
@ -21,6 +21,7 @@ class VexRiscv(Module, AutoCSR):
|
|||
self.reset = Signal()
|
||||
self.ibus = ibus = wishbone.Interface()
|
||||
self.dbus = dbus = wishbone.Interface()
|
||||
self.cpu_reset_address = cpu_reset_address
|
||||
|
||||
self.interrupt = Signal(32)
|
||||
|
||||
|
@ -28,7 +29,7 @@ class VexRiscv(Module, AutoCSR):
|
|||
i_clk=ClockSignal(),
|
||||
i_reset=ResetSignal() | self.reset,
|
||||
|
||||
i_externalResetVector=cpu_reset_address,
|
||||
i_externalResetVector=self.cpu_reset_address,
|
||||
i_externalInterruptArray=self.interrupt,
|
||||
i_timerInterrupt=0,
|
||||
|
||||
|
|
Loading…
Reference in New Issue