cpu/vexriscv: use 32-bit signal for externalResetVector
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 16 Jan 2020 15:20:25 +0000 (16:20 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 16 Jan 2020 15:20:25 +0000 (16:20 +0100)
litex/soc/cores/cpu/vexriscv/core.py

index 100ce4be79009565339b0b6fdd7f77e0720c7d27..08c2c8a26c4ec37ab5c896d89b883de8ea807b36 100644 (file)
@@ -238,7 +238,7 @@ class VexRiscv(CPU, AutoCSR):
     def set_reset_address(self, reset_address):
         assert not hasattr(self, "reset_address")
         self.reset_address = reset_address
-        self.cpu_params.update(i_externalResetVector=reset_address)
+        self.cpu_params.update(i_externalResetVector=Signal(32, reset=reset_address))
 
     def add_timer(self):
         self.submodules.timer = VexRiscvTimer()