Merge pull request #79 from olofk/irqconfig

Expose ENABLE_IRQ_QREGS and PROGADDR_IRQ from picosoc.v
This commit is contained in:
Clifford Wolf 2018-08-18 19:32:35 +02:00 committed by GitHub
commit b634224ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -61,9 +61,11 @@ module picosoc (
input flash_io2_di, input flash_io2_di,
input flash_io3_di input flash_io3_di
); );
parameter [0:0] ENABLE_IRQ_QREGS = 0;
parameter integer MEM_WORDS = 256; parameter integer MEM_WORDS = 256;
parameter [31:0] STACKADDR = (4*MEM_WORDS); // end of memory 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_RESET = 32'h 0010_0000; // 1 MB into flash
parameter [31:0] PROGADDR_IRQ = 32'h 0000_0000;
reg [31:0] irq; reg [31:0] irq;
wire irq_stall = 0; wire irq_stall = 0;
@ -117,13 +119,13 @@ module picosoc (
picorv32 #( picorv32 #(
.STACKADDR(STACKADDR), .STACKADDR(STACKADDR),
.PROGADDR_RESET(PROGADDR_RESET), .PROGADDR_RESET(PROGADDR_RESET),
.PROGADDR_IRQ(32'h 0000_0000), .PROGADDR_IRQ(PROGADDR_IRQ),
.BARREL_SHIFTER(1), .BARREL_SHIFTER(1),
.COMPRESSED_ISA(1), .COMPRESSED_ISA(1),
.ENABLE_MUL(1), .ENABLE_MUL(1),
.ENABLE_DIV(1), .ENABLE_DIV(1),
.ENABLE_IRQ(1), .ENABLE_IRQ(1),
.ENABLE_IRQ_QREGS(0) .ENABLE_IRQ_QREGS(ENABLE_IRQ_QREGS)
) cpu ( ) cpu (
.clk (clk ), .clk (clk ),
.resetn (resetn ), .resetn (resetn ),