Skip to content

Commit

Permalink
Add splitlib filter
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Dec 12, 2024
1 parent 83cef80 commit adb3b19
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fusesoc/filters/splitlib.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit adb3b19

Please sign in to comment.