Merge pull request #165 from xobs/vexriscv-cpu-reset-address

Vexriscv cpu reset address
This commit is contained in:
enjoy-digital 2019-04-19 19:16:16 +02:00 committed by GitHub
commit 49fd93ae83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ class VexRiscv(Module, AutoCSR):
self.reset = Signal() self.reset = Signal()
self.ibus = ibus = wishbone.Interface() self.ibus = ibus = wishbone.Interface()
self.dbus = dbus = wishbone.Interface() self.dbus = dbus = wishbone.Interface()
self.cpu_reset_address = cpu_reset_address
self.interrupt = Signal(32) self.interrupt = Signal(32)
@ -31,7 +32,7 @@ class VexRiscv(Module, AutoCSR):
i_clk=ClockSignal(), i_clk=ClockSignal(),
i_reset=ResetSignal() | self.reset, i_reset=ResetSignal() | self.reset,
i_externalResetVector=cpu_reset_address, i_externalResetVector=self.cpu_reset_address,
i_externalInterruptArray=self.interrupt, i_externalInterruptArray=self.interrupt,
i_timerInterrupt=0, i_timerInterrupt=0,