Skip to content

Commit

Permalink
Add reg cut before CLIC
Browse files Browse the repository at this point in the history
  • Loading branch information
ezelioli committed Jan 23, 2025
1 parent 3f93163 commit 01e54bb
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions hw/cheshire_soc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,21 @@ module cheshire_soc import cheshire_pkg::*; #(
}
};

reg_req_t clic_reg_req;
reg_rsp_t clic_reg_rsp;

reg_cut #(
.req_t ( reg_req_t ),
.rsp_t ( reg_rsp_t )
) clic_reg_cut_i (
.clk_i,
.rst_ni,
.src_req_i ( reg_out_req[RegOut.clic[i]] ),
.src_rsp_o ( reg_out_rsp[RegOut.clic[i]] ),
.dst_req_o ( clic_reg_req ),
.dst_rsp_i ( clic_reg_rsp )
);

clic #(
.N_SOURCE ( NumClicIntrs ),
.INTCTLBITS ( Cfg.ClicIntCtlBits ),
Expand All @@ -692,8 +707,8 @@ module cheshire_soc import cheshire_pkg::*; #(
) i_clic (
.clk_i,
.rst_ni,
.reg_req_i ( reg_out_req[RegOut.clic[i]] ),
.reg_rsp_o ( reg_out_rsp[RegOut.clic[i]] ),
.reg_req_i ( clic_reg_req ),
.reg_rsp_o ( clic_reg_rsp ),
.intr_src_i ( clic_intr ),
.irq_valid_o ( clic_irq_valid ),
.irq_ready_i ( clic_irq_ready ),
Expand Down

0 comments on commit 01e54bb

Please sign in to comment.