aboutsummaryrefslogtreecommitdiffstats
path: root/picosoc/icebreaker.v
diff options
context:
space:
mode:
authorSteffen Vogel <post@steffenvogel.de>2019-02-11 23:13:05 +0100
committerSteffen Vogel <post@steffenvogel.de>2019-02-11 23:13:05 +0100
commitd21937bafc77e9f7d81c2f50d2ad825a39fb644c (patch)
tree3345973f0ab2b397655e9b2010fb037e1dd32f01 /picosoc/icebreaker.v
parent9b7092110373932e9c40b8628820ebfe44da8668 (diff)
downloadpicorv32-d21937bafc77e9f7d81c2f50d2ad825a39fb644c.tar.gz
picorv32-d21937bafc77e9f7d81c2f50d2ad825a39fb644c.zip
picosoc: increase available memory by using SPRAM instead of BRAM for the Icebreaker example
Diffstat (limited to 'picosoc/icebreaker.v')
-rw-r--r--picosoc/icebreaker.v9
1 files changed, 8 insertions, 1 deletions
diff --git a/picosoc/icebreaker.v b/picosoc/icebreaker.v
index ef9b9ac..00da2d7 100644
--- a/picosoc/icebreaker.v
+++ b/picosoc/icebreaker.v
@@ -17,6 +17,12 @@
*
*/
+`ifdef PICOSOC_V
+`error "icebreaker.v must be read before icebreaker.v!"
+`endif
+
+`define PICOSOC_MEM ice40up5k_spram
+
module icebreaker (
input clk,
@@ -100,7 +106,8 @@ module icebreaker (
picosoc #(
.BARREL_SHIFTER(0),
- .ENABLE_MULDIV(0)
+ .ENABLE_MULDIV(0),
+ .MEM_WORDS(32768)
) soc (
.clk (clk ),
.resetn (resetn ),