peripherals: Assign default to unused interrupts (#618)

Otherwise, the PLIC registers will be poisoned.

Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
This commit is contained in:
Nils Wistoff 2021-02-19 14:59:28 +01:00 committed by GitHub
parent cffd9debc3
commit 327d17f8c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -63,6 +63,9 @@ module ariane_peripherals #(
// ---------------
logic [ariane_soc::NumSources-1:0] irq_sources;
// Unused interrupt sources
assign irq_sources[ariane_soc::NumSources-1:7] = '0;
REG_BUS #(
.ADDR_WIDTH ( 32 ),
.DATA_WIDTH ( 32 )

View file

@ -56,6 +56,9 @@ module ariane_peripherals #(
// ---------------
logic [ariane_soc::NumSources-1:0] irq_sources;
// Unused interrupt sources
assign irq_sources[ariane_soc::NumSources-1:7] = '0;
REG_BUS #(
.ADDR_WIDTH ( 32 ),
.DATA_WIDTH ( 32 )