Skip to content

Commit

Permalink
util: refactor flist gen
Browse files Browse the repository at this point in the history
  • Loading branch information
rgantonio committed Aug 28, 2024
1 parent 3fdfaf0 commit 7a90406
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
11 changes: 0 additions & 11 deletions util/occamygen/occamy.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@ def generate_snitch(cluster_cfg_dir, snitch_path):
for cfg in cluster_cfg_dir:
subprocess.call(f"make -C {snitch_path}/target/snitch_cluster CFG_OVERRIDE={cfg} rtl-gen", shell=True)

# For generating cluster synthesis filelists
def generate_cluster_syn_flist(cluster_cfg_dir, snitch_path, outdir):
for cfg in cluster_cfg_dir:
config_name = os.path.splitext(os.path.basename(os.path.normpath(cfg)))[0]
subprocess.call(f"make -C {snitch_path}/target/snitch_cluster \
CFG_OVERRIDE={cfg} \
MEM_TYPE=exclude_tcsram \
SYN_FLIST={config_name}.tcl \
SYN_BUILDDIR={outdir} \
gen-syn", shell=True)

def generate_wrappers(cluster_generators,out_dir):
for cluster_generator in cluster_generators:
cluster_name = cluster_generator.cfg["name"]
Expand Down
10 changes: 1 addition & 9 deletions util/occamygen/occamygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from mako.template import Template

from occamy import check_occamy_cfg, get_cluster_generators, generate_wrappers, generate_memories, get_cluster_cfg_list, generate_snitch, generate_cluster_syn_flist
from occamy import check_occamy_cfg, get_cluster_generators, generate_wrappers, generate_memories, get_cluster_cfg_list, generate_snitch

sys.path.append(str(pathlib.Path(__file__).parent / '../'))
from solder import solder, device_tree, util # noqa: E402
Expand Down Expand Up @@ -552,9 +552,6 @@ def main():
parser.add_argument("--chip",
metavar="CHIP_TOP",
help="(Optional) Chip Top-level")
parser.add_argument("--cluster-only-flist",
metavar="TAEPOUT",
help="Flag for generating for generating cluster specific flists only.")
parser.add_argument("--graph", "-g", metavar="DOT")
parser.add_argument("--memories", "-m", action="store_true")
parser.add_argument("--wrapper", "-w", action="store_true")
Expand Down Expand Up @@ -617,11 +614,6 @@ def main():
print(cluster_cfg_list)
generate_snitch(cluster_cfg_list, args.snitch)

# For generating filelists for each cluster
if args.cluster_only_flist:
print("Generate filelist for each cluster only.")
generate_cluster_syn_flist(cluster_cfg_list, args.cluster_only_flist, outdir)

if args.wrapper:
generate_wrappers(cluster_generators,outdir)

Expand Down

0 comments on commit 7a90406

Please sign in to comment.