diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-18 20:17:21 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-18 20:17:21 +0200 |
commit | 1afe3af452212b424a96d2e0d1b89aab0259e50e (patch) | |
tree | f559ab70953809400e1bf90c2dc382d19926c25e /picosoc/picosoc.v | |
parent | b634224ccb9581ffde6f7ecde4553f743c03588c (diff) | |
download | picorv32-1afe3af452212b424a96d2e0d1b89aab0259e50e.tar.gz picorv32-1afe3af452212b424a96d2e0d1b89aab0259e50e.zip |
Add PicoSoC IceBreaker demo
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'picosoc/picosoc.v')
-rw-r--r-- | picosoc/picosoc.v | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/picosoc/picosoc.v b/picosoc/picosoc.v index b38d6f2..353f2ef 100644 --- a/picosoc/picosoc.v +++ b/picosoc/picosoc.v @@ -61,7 +61,12 @@ module picosoc ( input flash_io2_di, input flash_io3_di ); + parameter [0:0] BARREL_SHIFTER = 1; + parameter [0:0] ENABLE_MULDIV = 1; + parameter [0:0] ENABLE_COMPRESSED = 1; + parameter [0:0] ENABLE_COUNTERS = 1; parameter [0:0] ENABLE_IRQ_QREGS = 0; + parameter integer MEM_WORDS = 256; parameter [31:0] STACKADDR = (4*MEM_WORDS); // end of memory parameter [31:0] PROGADDR_RESET = 32'h 0010_0000; // 1 MB into flash @@ -120,10 +125,11 @@ module picosoc ( .STACKADDR(STACKADDR), .PROGADDR_RESET(PROGADDR_RESET), .PROGADDR_IRQ(PROGADDR_IRQ), - .BARREL_SHIFTER(1), - .COMPRESSED_ISA(1), - .ENABLE_MUL(1), - .ENABLE_DIV(1), + .BARREL_SHIFTER(BARREL_SHIFTER), + .COMPRESSED_ISA(ENABLE_COMPRESSED), + .ENABLE_COUNTERS(ENABLE_COUNTERS), + .ENABLE_MUL(ENABLE_MULDIV), + .ENABLE_DIV(ENABLE_MULDIV), .ENABLE_IRQ(1), .ENABLE_IRQ_QREGS(ENABLE_IRQ_QREGS) ) cpu ( |