aboutsummaryrefslogtreecommitdiffstats
path: root/picosoc/picosoc.v
diff options
context:
space:
mode:
authorTrammell Hudson <hudson@trmm.net>2021-09-02 16:35:38 +0000
committerTrammell Hudson <hudson@trmm.net>2021-09-02 16:35:38 +0000
commiteeca10190b6934889cf068b49478388703afbf70 (patch)
treec73f331f268deccb8d2404bb1038bf1d1d6ef19a /picosoc/picosoc.v
parentf9b1beb4cfd6b382157b54bc8f38c61d5ae7d785 (diff)
downloadpicorv32-eeca10190b6934889cf068b49478388703afbf70.tar.gz
picorv32-eeca10190b6934889cf068b49478388703afbf70.zip
picosoc: enable fast multiply option for icebreaker
This patch splits the picosoc's `ENABLE_MULDIV` paramter into `ENABLE_MUL`, `ENABLE_DIV` and `ENABLE_FAST_MUL`, and also enables the DSP-based fast multiplier for the iCE40up5k icebreaker board. Signed-off-by: Trammell Hudson <hudson@trmm.net>
Diffstat (limited to 'picosoc/picosoc.v')
-rw-r--r--picosoc/picosoc.v9
1 files changed, 6 insertions, 3 deletions
diff --git a/picosoc/picosoc.v b/picosoc/picosoc.v
index 9c5981e..55e447e 100644
--- a/picosoc/picosoc.v
+++ b/picosoc/picosoc.v
@@ -70,7 +70,9 @@ module picosoc (
input flash_io3_di
);
parameter [0:0] BARREL_SHIFTER = 1;
- parameter [0:0] ENABLE_MULDIV = 1;
+ parameter [0:0] ENABLE_MUL = 1;
+ parameter [0:0] ENABLE_DIV = 1;
+ parameter [0:0] ENABLE_FAST_MUL = 0;
parameter [0:0] ENABLE_COMPRESSED = 1;
parameter [0:0] ENABLE_COUNTERS = 1;
parameter [0:0] ENABLE_IRQ_QREGS = 0;
@@ -136,8 +138,9 @@ module picosoc (
.BARREL_SHIFTER(BARREL_SHIFTER),
.COMPRESSED_ISA(ENABLE_COMPRESSED),
.ENABLE_COUNTERS(ENABLE_COUNTERS),
- .ENABLE_MUL(ENABLE_MULDIV),
- .ENABLE_DIV(ENABLE_MULDIV),
+ .ENABLE_MUL(ENABLE_MUL),
+ .ENABLE_DIV(ENABLE_DIV),
+ .ENABLE_FAST_MUL(ENABLE_FAST_MUL),
.ENABLE_IRQ(1),
.ENABLE_IRQ_QREGS(ENABLE_IRQ_QREGS)
) cpu (