Skip to content

Commit

Permalink
Merge the modifications from PR88
Browse files Browse the repository at this point in the history
  • Loading branch information
IveanEx committed Dec 2, 2024
1 parent 4d6042a commit 0f279b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
3 changes: 2 additions & 1 deletion hw/occamy/occamy_xilinx.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ import ${name}_pkg::*;
.bootrom_rsp_i (bootrom_axi_lite_rsp),
.ext_irq_i(ext_irq_i),
// Tie-off unused ports
.chip_ctrl_req_o(),
.obs_o(),
.chip_ctrl_req_o(),
.chip_ctrl_rsp_i ('0),
.sram_cfgs_i ('0),
.*
Expand Down
33 changes: 0 additions & 33 deletions util/occamygen/occamy.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,39 +569,6 @@ def get_cheader_kwargs(occamy_cfg, cluster_generators, name):
"Not all cluster base offset in the cluster cfg are equal.")
cluster_offset = cluster_offset_list[0]
cluster_addr_width = int(math.log2(cluster_offset))
# # The lut here is to provide an easy way to determine the cluster idx based on core idx
# # e.g core_per_cluster_list = [2,3]
# # core_idx lut cluster_idx
# # 0 lut[0] 0
# # 1 lut[1] 0
# # 2 lut[2] 1
# # 3 lut[3] 1
# # 4 lut[4] 1
# lut = []
# for cluster_num, num_cores in enumerate(core_per_cluster_list):
# lut.extend([cluster_num] * num_cores)
# running_sum = []
# current_sum = 0
# for core in core_per_cluster_list:
# current_sum += core
# running_sum.append(current_sum)
# cluster_baseidx = [0] + running_sum[:-1]
# # we need to define an array in c header file for each cluster like
# # #define N_CORES_PER_CLUSTER {2,3}
# # so here we need to take out the value of the core_per_cluster_list
# # and join them with commas and then finally concat with {}
# nr_cores_per_cluster = "{" + ",".join(map(str, core_per_cluster_list)) + "}"
# lut_coreidx_clusteridx = "{" + ",".join(map(str, lut)) + "}"
# cluster_baseidx = "{" + ",".join(map(str, cluster_baseidx)) + "}"
# cheader_kwargs={
# "name": name,
# "nr_quads": nr_quads,
# "nr_clusters": nr_clusters,
# "nr_cores_per_cluster": nr_cores_per_cluster,
# "lut_coreidx_clusteridx": lut_coreidx_clusteridx,
# "cluster_baseidx": cluster_baseidx,
# "nr_cores": nr_cores
# }
cheader_kwargs = {
"name": name,
"nr_quads": nr_quads,
Expand Down

0 comments on commit 0f279b9

Please sign in to comment.