cpu/vexriscv/core: Rename timer_enabled parameter to with_timer (for consistency with codebase) and disable timer by default (since increasing resources and causing issue on some iCE40 designs).

This commit is contained in:
Florent Kermarrec 2021-03-09 09:07:32 +01:00
parent 834c90b71f
commit ece9005949
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class VexRiscv(CPU, AutoCSR):
flags += " -D__vexriscv__" flags += " -D__vexriscv__"
return flags return flags
def __init__(self, platform, variant="standard", timer_enabled=True): def __init__(self, platform, variant="standard", with_timer=False):
self.platform = platform self.platform = platform
self.variant = variant self.variant = variant
self.human_name = CPU_VARIANTS.get(variant, "VexRiscv") self.human_name = CPU_VARIANTS.get(variant, "VexRiscv")
@ -158,7 +158,7 @@ class VexRiscv(CPU, AutoCSR):
i_dBusWishbone_ERR = dbus.err i_dBusWishbone_ERR = dbus.err
) )
if timer_enabled: if with_timer:
self.add_timer() self.add_timer()
if "debug" in variant: if "debug" in variant: