Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
occamy+cluster: Further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Oct 22, 2021
1 parent ba78ff7 commit 6d0fb5c
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion hw/ip/snitch_cluster/src/snitch_cluster.sv
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ module snitch_cluster
.ByteWidth (8),
.NumPorts (1),
.Latency (1),
.impl_in_t (sram_cfg_t),
.impl_in_t (sram_cfg_t)
) i_data_mem (
.clk_i,
.rst_ni,
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/snitch_cluster/src/snitch_cluster_wrapper.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ module ${cfg['name']}_wrapper (
input logic clk_d2_bypass_i,
% endif
% if cfg['sram_cfg_expose']:
input sram_cfgs_t sram_cfgs_i,
input ${cfg['pkg_name']}::sram_cfgs_t sram_cfgs_i,
%endif
input ${cfg['pkg_name']}::narrow_in_req_t narrow_in_req_i,
output ${cfg['pkg_name']}::narrow_in_resp_t narrow_in_resp_o,
Expand Down
2 changes: 1 addition & 1 deletion hw/system/occamy/src/occamy_cluster_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ module occamy_cluster_wrapper (
input logic [9:0] hart_base_id_i,
input logic [47:0] cluster_base_addr_i,
input logic clk_d2_bypass_i,
input sram_cfgs_t sram_cfgs_i,
input occamy_cluster_pkg::sram_cfgs_t sram_cfgs_i,
input occamy_cluster_pkg::narrow_in_req_t narrow_in_req_i,
output occamy_cluster_pkg::narrow_in_resp_t narrow_in_resp_o,
output occamy_cluster_pkg::narrow_out_req_t narrow_out_req_o,
Expand Down
2 changes: 1 addition & 1 deletion hw/system/occamy/src/occamy_cva6.sv
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module occamy_cva6
.axi_w_chan_t(axi_a48_d64_i4_u0_w_chan_t),
.axi_req_t(axi_a48_d64_i4_u0_req_t),
.axi_rsp_t(axi_a48_d64_i4_u0_resp_t),
.sram_cfg_t(sram_cfg_cva6_t)
.sram_cfg_t(sram_cfg_t)
) i_cva6 (
.clk_i,
.rst_ni,
Expand Down
2 changes: 1 addition & 1 deletion hw/system/occamy/src/occamy_cva6.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module occamy_cva6 import occamy_pkg::*; (
.axi_w_chan_t(${soc_narrow_xbar.in_cva6.w_chan_type()}),
.axi_req_t (${soc_narrow_xbar.in_cva6.req_type()}),
.axi_rsp_t (${soc_narrow_xbar.in_cva6.rsp_type()}),
.sram_cfg_t (sram_cfg_cva6_t)
.sram_cfg_t (sram_cfg_t)
) i_cva6 (
.clk_i,
.rst_ni,
Expand Down
4 changes: 2 additions & 2 deletions hw/system/occamy/src/occamy_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ package occamy_pkg;

typedef struct packed {
sram_cfg_t spm;
sram_cfg_cva6 cva6;
sram_cfg_quadrant quadrant;
sram_cfg_cva6_t cva6;
sram_cfg_quadrant_t quadrant;
} sram_cfgs_t;

localparam int unsigned SramCfgWidth = $bits(sram_cfg_t);
Expand Down
4 changes: 2 additions & 2 deletions hw/system/occamy/src/occamy_pkg.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ package occamy_pkg;

typedef struct packed {
sram_cfg_t spm;
sram_cfg_cva6 cva6;
sram_cfg_quadrant quadrant;
sram_cfg_cva6_t cva6;
sram_cfg_quadrant_t quadrant;
} sram_cfgs_t;

localparam int unsigned SramCfgWidth = $bits(sram_cfg_t);
Expand Down
8 changes: 4 additions & 4 deletions hw/system/occamy/src/occamy_quadrant_s1.sv
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ module occamy_quadrant_s1
.wide_out_resp_i(wide_out_0_rsp),
.wide_in_req_i(wide_in_iwc_0_cut_req),
.wide_in_resp_o(wide_in_iwc_0_cut_rsp),
.sram_cfg_i(sram_cfg_i.cluster)
.sram_cfgs_i(sram_cfg_i.cluster)
);

///////////////
Expand Down Expand Up @@ -710,7 +710,7 @@ module occamy_quadrant_s1
.wide_out_resp_i(wide_out_1_rsp),
.wide_in_req_i(wide_in_iwc_1_cut_req),
.wide_in_resp_o(wide_in_iwc_1_cut_rsp),
.sram_cfg_i(sram_cfg_i.cluster)
.sram_cfgs_i(sram_cfg_i.cluster)
);

///////////////
Expand Down Expand Up @@ -859,7 +859,7 @@ module occamy_quadrant_s1
.wide_out_resp_i(wide_out_2_rsp),
.wide_in_req_i(wide_in_iwc_2_cut_req),
.wide_in_resp_o(wide_in_iwc_2_cut_rsp),
.sram_cfg_i(sram_cfg_i.cluster)
.sram_cfgs_i(sram_cfg_i.cluster)
);

///////////////
Expand Down Expand Up @@ -1008,7 +1008,7 @@ module occamy_quadrant_s1
.wide_out_resp_i(wide_out_3_rsp),
.wide_in_req_i(wide_in_iwc_3_cut_req),
.wide_in_resp_o(wide_in_iwc_3_cut_rsp),
.sram_cfg_i(sram_cfg_i.cluster)
.sram_cfgs_i(sram_cfg_i.cluster)
);

endmodule
2 changes: 1 addition & 1 deletion hw/system/occamy/src/occamy_quadrant_s1.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ module occamy_quadrant_s1
.wide_out_resp_i (${wide_cluster_out.rsp_name()}),
.wide_in_req_i (${wide_cluster_in.req_name()}),
.wide_in_resp_o (${wide_cluster_in.rsp_name()}),
.sram_cfg_i (sram_cfg_i.cluster)
.sram_cfgs_i (sram_cfg_i.cluster)
);

% endfor
Expand Down

0 comments on commit 6d0fb5c

Please sign in to comment.