Skip to content

Commit

Permalink
Small fix for pss simulation
Browse files Browse the repository at this point in the history
Spacewire testbench has been has been temporarily disabled due to a problem in the proper inclusion of its source files (to be fixed soon)
  • Loading branch information
LuigiGhionda committed Sep 4, 2024
1 parent ea020c3 commit 5429912
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion carfield.mk
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ car-check-litmus-tests: $(LITMUS_WORK_DIR)/litmus.log
##############
tech-repo := [email protected]:Astral/gf12.git
# no commit by default, change during development
tech-commit := 9fe2a2bcb7a636c93bceada37e23bfc08902b6b3 # branch: yt/thales
tech-commit := 85ef88fcf3709571850ed9abcafc854e3df861bd # branch: lg/pss_sim

tech-clone:
git clone $(tech-repo) tech
Expand Down
2 changes: 1 addition & 1 deletion hw/carfield.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ localparam pulp_cluster_package::pulp_cluster_cfg_t PulpClusterCfg = '{
.Cfg( PulpClusterCfg )
) i_integer_cluster (
`else
int_cluster i_integer_cluster (
pulp_cluster i_integer_cluster (
`endif
.clk_i ( pulp_clk ),
.rst_ni ( pulp_rst_n ),
Expand Down
17 changes: 9 additions & 8 deletions target/sim/src/vip_carfield_soc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ module vip_carfield_soc
// Hyperbus //
//////////////

localparam string HypUserPreloadMemFiles [HypNumPhys] = '{Hyp0UserPreloadMemFile, Hyp1UserPreloadMemFile};
localparam string HypUserPreloadMemFiles[HypNumPhys] = (HypNumPhys==2) ? '{Hyp0UserPreloadMemFile, Hyp1UserPreloadMemFile}
: '{Hyp0UserPreloadMemFile};

for (genvar i=0; i<HypNumPhys; i++) begin : hyperrams
for (genvar j=0; j<HypNumChips; j++) begin : chips
Expand Down Expand Up @@ -404,18 +405,18 @@ module vip_carfield_soc
.TCS ( tc_data)
);

spw_codec_tb i_spw_codec_tb (
.DATA_IN (spw_din),
.STROBE_IN (spw_sin),
.DATA_OUT (spw_dout),
.STROBE_OUT(spw_sout)
);
// spw_codec_tb i_spw_codec_tb (
// .DATA_IN (spw_din),
// .STROBE_IN (spw_sin),
// .DATA_OUT (spw_dout),
// .STROBE_OUT(spw_sout)
// );


endmodule

module vip_carfield_soc_tristate import carfield_pkg::*; # (
parameter int unsigned HypNumPhys = 2,
parameter int unsigned HypNumPhys = 1,
parameter int unsigned HypNumChips = 2
) (
// Hyperbus pad IO
Expand Down

0 comments on commit 5429912

Please sign in to comment.