aboutsummaryrefslogtreecommitdiffstats
path: root/picosoc
diff options
context:
space:
mode:
authorOlof Kindgren <olof.kindgren@gmail.com>2018-08-16 22:06:26 +0200
committerOlof Kindgren <olof.kindgren@gmail.com>2018-08-16 22:06:26 +0200
commit75aa1055f8ba443ff3172f9984e2c26b1459bb07 (patch)
tree82849b0ebc4e2b1e89425cd4e5e304a245e01e47 /picosoc
parent7c256656c206bbe0cd49a0302d291d0064b9fc24 (diff)
downloadpicorv32-75aa1055f8ba443ff3172f9984e2c26b1459bb07.tar.gz
picorv32-75aa1055f8ba443ff3172f9984e2c26b1459bb07.zip
Expose ENABLE_IRQ_QREGS and PROGADDR_IRQ from picosoc.v
Diffstat (limited to 'picosoc')
-rw-r--r--picosoc/picosoc.v6
1 files changed, 4 insertions, 2 deletions
diff --git a/picosoc/picosoc.v b/picosoc/picosoc.v
index 6298a8e..b38d6f2 100644
--- a/picosoc/picosoc.v
+++ b/picosoc/picosoc.v
@@ -61,9 +61,11 @@ module picosoc (
input flash_io2_di,
input flash_io3_di
);
+ 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
+ parameter [31:0] PROGADDR_IRQ = 32'h 0000_0000;
reg [31:0] irq;
wire irq_stall = 0;
@@ -117,13 +119,13 @@ module picosoc (
picorv32 #(
.STACKADDR(STACKADDR),
.PROGADDR_RESET(PROGADDR_RESET),
- .PROGADDR_IRQ(32'h 0000_0000),
+ .PROGADDR_IRQ(PROGADDR_IRQ),
.BARREL_SHIFTER(1),
.COMPRESSED_ISA(1),
.ENABLE_MUL(1),
.ENABLE_DIV(1),
.ENABLE_IRQ(1),
- .ENABLE_IRQ_QREGS(0)
+ .ENABLE_IRQ_QREGS(ENABLE_IRQ_QREGS)
) cpu (
.clk (clk ),
.resetn (resetn ),