@@ -35,19 +35,19 @@ module redmule_target_decoder
3535 logic job_dep_regs_valid;
3636 redmule_regif__hwpe_ctrl_job_dep__out_t job_dep_regs;
3737
38- // OBI plug target <-> regif
39- logic target_obi_req ;
40- logic target_obi_gnt ;
41- logic [31 : 0 ] target_obi_addr ;
42- logic target_obi_we ;
43- logic [3 : 0 ] target_obi_be ;
44- logic [ 31 : 0 ] target_obi_wdata ;
45- logic [OpIdWidth - 1 : 0 ] target_obi_aid ;
46- logic target_obi_rvalid ;
47- logic target_obi_rready ;
48- logic [31 : 0 ] target_obi_rdata ;
49- logic target_obi_err ;
50- logic [OpIdWidth - 1 : 0 ] target_obi_rid ;
38+ // cpuif plug target <-> regif (PeakRDL "passthrough")
39+ logic target_cpuif_req ;
40+ logic target_cpuif_req_is_wr ;
41+ logic [31 : 0 ] target_cpuif_addr ;
42+ logic [ 31 : 0 ] target_cpuif_wr_data ;
43+ logic [31 : 0 ] target_cpuif_wr_biten ;
44+ logic target_cpuif_req_stall_wr ;
45+ logic target_cpuif_req_stall_rd ;
46+ logic target_cpuif_rd_ack ;
47+ logic target_cpuif_rd_err ;
48+ logic [31 : 0 ] target_cpuif_rd_data ;
49+ logic target_cpuif_wr_ack ;
50+ logic target_cpuif_wr_err ;
5151
5252 redmule_regif__in_t hwif_in;
5353 redmule_regif__in_t hwif_in_target;
@@ -73,42 +73,40 @@ module redmule_target_decoder
7373 .job_indep_regs_o ( job_indep_regs ),
7474 .job_dep_regs_valid_o ( job_dep_regs_valid ),
7575 .job_dep_regs_o ( job_dep_regs ),
76- .target_obi_req_o ( target_obi_req ),
77- .target_obi_gnt_i ( target_obi_gnt ),
78- .target_obi_addr_o ( target_obi_addr ),
79- .target_obi_we_o ( target_obi_we ),
80- .target_obi_be_o ( target_obi_be ),
81- .target_obi_wdata_o ( target_obi_wdata ),
82- .target_obi_aid_o ( target_obi_aid ),
83- .target_obi_rvalid_i ( target_obi_rvalid ),
84- .target_obi_rready_o ( target_obi_rready ),
85- .target_obi_rdata_i ( target_obi_rdata ),
86- .target_obi_err_i ( target_obi_err ),
87- .target_obi_rid_i ( target_obi_rid ),
76+ .target_cpuif_req_o ( target_cpuif_req ),
77+ .target_cpuif_req_is_wr_o ( target_cpuif_req_is_wr ),
78+ .target_cpuif_addr_o ( target_cpuif_addr ),
79+ .target_cpuif_wr_data_o ( target_cpuif_wr_data ),
80+ .target_cpuif_wr_biten_o ( target_cpuif_wr_biten ),
81+ .target_cpuif_req_stall_wr_i ( target_cpuif_req_stall_wr ),
82+ .target_cpuif_req_stall_rd_i ( target_cpuif_req_stall_rd ),
83+ .target_cpuif_rd_ack_i ( target_cpuif_rd_ack ),
84+ .target_cpuif_rd_err_i ( target_cpuif_rd_err ),
85+ .target_cpuif_rd_data_i ( target_cpuif_rd_data ),
86+ .target_cpuif_wr_ack_i ( target_cpuif_wr_ack ),
87+ .target_cpuif_wr_err_i ( target_cpuif_wr_err ),
8888 .hwif_in ( hwif_in_target ),
8989 .hwif_out ( hwif_out )
9090 );
9191
9292 /* RedMulE SystemRDL-generated register interface */
93- redmule_regif # (
94- .ID_WIDTH ( OpIdWidth )
95- ) i_regif (
96- .clk ( clk_i ),
97- .arst_n ( rst_ni ),
98- .s_obi_req ( target_obi_req ),
99- .s_obi_gnt ( target_obi_gnt ),
100- .s_obi_addr ( target_obi_addr ),
101- .s_obi_we ( target_obi_we ),
102- .s_obi_be ( target_obi_be ),
103- .s_obi_wdata ( target_obi_wdata ),
104- .s_obi_aid ( target_obi_aid ),
105- .s_obi_rvalid ( target_obi_rvalid ),
106- .s_obi_rready ( target_obi_rready ),
107- .s_obi_rdata ( target_obi_rdata ),
108- .s_obi_err ( target_obi_err ),
109- .s_obi_rid ( target_obi_rid ),
110- .hwif_in ( hwif_in ),
111- .hwif_out ( hwif_out )
93+ redmule_regif i_regif (
94+ .clk ( clk_i ),
95+ .arst_n ( rst_ni ),
96+ .s_cpuif_req ( target_cpuif_req ),
97+ .s_cpuif_req_is_wr ( target_cpuif_req_is_wr ),
98+ .s_cpuif_addr ( target_cpuif_addr ),
99+ .s_cpuif_wr_data ( target_cpuif_wr_data ),
100+ .s_cpuif_wr_biten ( target_cpuif_wr_biten ),
101+ .s_cpuif_req_stall_wr ( target_cpuif_req_stall_wr ),
102+ .s_cpuif_req_stall_rd ( target_cpuif_req_stall_rd ),
103+ .s_cpuif_rd_ack ( target_cpuif_rd_ack ),
104+ .s_cpuif_rd_err ( target_cpuif_rd_err ),
105+ .s_cpuif_rd_data ( target_cpuif_rd_data ),
106+ .s_cpuif_wr_ack ( target_cpuif_wr_ack ),
107+ .s_cpuif_wr_err ( target_cpuif_wr_err ),
108+ .hwif_in ( hwif_in ),
109+ .hwif_out ( hwif_out )
112110 );
113111
114112 assign job_done = op_done_i;
0 commit comments