Skip to content

Commit

Permalink
ips/soc_peripherals: Workaround FPGA PnR bug with fc_events
Browse files Browse the repository at this point in the history
FPGA implementation fails when fc_events is set to all zeros and irq mask enables all interrupts in the core. This has to be investigated further
alex96295 committed Jul 24, 2021
1 parent d7ce96f commit 324e5ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rtl/pulp_soc/soc_peripherals.sv
Original file line number Diff line number Diff line change
@@ -233,7 +233,12 @@ module soc_peripherals #(

generate
if ( USE_IBEX == 0) begin: FC_EVENTS
// TODO Remove this once the bug is fixed
`ifndef PULP_FPGA_EMUL
assign fc_events_o[7:0] = 8'h0; //RESERVED for sw events
`else
assign fc_events_o[7:0] = 8'h1; //Actually FPGA PnR fails when this is all zeros. Temporary workaround, one bit is set to 1
`endif
assign fc_events_o[8] = dma_pe_evt_i;
assign fc_events_o[9] = dma_pe_irq_i;
assign fc_events_o[10] = s_timer_lo_event;

0 comments on commit 324e5ba

Please sign in to comment.