@@ -335,14 +335,16 @@ module croc_domain import croc_pkg::*; #(
335335 .rst_ni,
336336 .testmode_i,
337337
338- .sbr_ports_req_i ( { core_instr_obi_req, core_data_obi_req, dbg_req_obi_req, user_mgr_obi_req_i } ), // from managers towards subordinates
338+ // connections between managers and crossbar
339+ .sbr_ports_req_i ( { core_instr_obi_req, core_data_obi_req, dbg_req_obi_req, user_mgr_obi_req_i } ),
339340 .sbr_ports_rsp_o ( { core_instr_obi_rsp, core_data_obi_rsp, dbg_req_obi_rsp, user_mgr_obi_rsp_o } ),
340- .mgr_ports_req_o ( all_sbr_obi_req ), // connections to subordinates
341+ // connections between crossbar and subordinates
342+ .mgr_ports_req_o ( all_sbr_obi_req ),
341343 .mgr_ports_rsp_i ( all_sbr_obi_rsp ),
342344
343- .addr_map_i ( croc_addr_map ),
344- .en_default_idx_i ( 4'b1111 ),
345- .default_idx_i ( '0 )
345+ .addr_map_i ( croc_addr_map ),
346+ .en_default_idx_i ( '1 ),
347+ .default_idx_i ( XbarError )
346348 );
347349
348350 // -----------------
@@ -435,13 +437,13 @@ module croc_domain import croc_pkg::*; #(
435437 .rule_t ( addr_map_rule_t ),
436438 .Napot ( 1'b0 )
437439 ) i_addr_decode_periphs (
438- .addr_i ( xbar_periph_obi_req.a.addr ),
439- .addr_map_i ( periph_addr_map ),
440- .idx_o ( periph_idx ),
441- .dec_valid_o (),
442- .dec_error_o (),
443- .en_default_idx_i ( 1'b1 ),
444- .default_idx_i ( '0 )
440+ .addr_i ( xbar_periph_obi_req.a.addr ),
441+ .addr_map_i ( periph_addr_map ),
442+ .idx_o ( periph_idx ),
443+ .dec_valid_o ( ),
444+ .dec_error_o ( ),
445+ .en_default_idx_i ( 1'b1 ),
446+ .default_idx_i ( PeriphError )
445447 );
446448
447449 obi_demux # (
@@ -462,21 +464,6 @@ module croc_domain import croc_pkg::*; #(
462464 .mgr_ports_rsp_i ( all_periph_obi_rsp )
463465 );
464466
465- // Peripheral space error subordinate
466- obi_err_sbr # (
467- .ObiCfg ( SbrObiCfg ),
468- .obi_req_t ( sbr_obi_req_t ),
469- .obi_rsp_t ( sbr_obi_rsp_t ),
470- .NumMaxTrans ( 1 ),
471- .RspData ( 32'hBADCAB1E )
472- ) i_periph_err (
473- .clk_i,
474- .rst_ni,
475- .testmode_i,
476- .obi_req_i ( error_obi_req ),
477- .obi_rsp_o ( error_obi_rsp )
478- );
479-
480467 // SoC Control
481468 logic fetch_en_reg;
482469 assign fetch_enable = fetch_en_i | fetch_en_reg;
@@ -568,4 +555,19 @@ module croc_domain import croc_pkg::*; #(
568555 .overflow_o ( ) // Not connected
569556 );
570557
558+ // Peripheral space error subordinate
559+ obi_err_sbr # (
560+ .ObiCfg ( SbrObiCfg ),
561+ .obi_req_t ( sbr_obi_req_t ),
562+ .obi_rsp_t ( sbr_obi_rsp_t ),
563+ .NumMaxTrans ( 1 ),
564+ .RspData ( 32'hBADCAB1E )
565+ ) i_periph_err (
566+ .clk_i,
567+ .rst_ni,
568+ .testmode_i,
569+ .obi_req_i ( error_obi_req ),
570+ .obi_rsp_o ( error_obi_rsp )
571+ );
572+
571573endmodule
0 commit comments