diff --git a/fusesoc/filters/splitlib.py b/fusesoc/filters/splitlib.py new file mode 100644 index 00000000..eca344d3 --- /dev/null +++ b/fusesoc/filters/splitlib.py @@ -0,0 +1,14 @@ +import logging +import os + +logger = logging.getLogger(__name__) + + +class Splitlib: + def run(self, edam, work_root): + for f in edam["files"]: + if not "logical_name" in f: + f["logical_name"] = ( + str(f["core"]).lstrip(":").replace(":", "_").replace(".", "_") + ) + return edam