Enable hardware multiplier and divider in PicoRV32
authorSergiusz Bazanski <q3k@q3k.org>
Mon, 22 Jan 2018 18:15:53 +0000 (18:15 +0000)
committerSergiusz Bazanski <q3k@q3k.org>
Mon, 22 Jan 2018 18:50:26 +0000 (18:50 +0000)
This should become tunable later once we can configure whether we link
in the soft mul library or not.

litex/soc/cores/cpu/picorv32/core.py

index 6d20a9d04be6e10db538f4261ca005167767465f..9a0af3a37d87ced02e2c58cefb469b1c12692aff 100644 (file)
@@ -35,9 +35,10 @@ class PicoRV32(Module):
             p_CATCH_MISALIGN=1,
             p_CATCH_ILLINSN=1,
             p_ENABLE_PCPI=0,
-            p_ENABLE_MUL=0,
+            p_ENABLE_MUL=1,
+            p_ENABLE_DIV=1,
             p_ENABLE_FAST_MUL=0,
-            p_ENABLE_IRQ=0,
+            p_ENABLE_IRQ=1,
             p_ENABLE_IRQ_QREGS=1,
             p_ENABLE_IRQ_TIMER=1,
             p_ENABLE_TRACE=0,