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 6, 2024
1 parent 83cef80 commit 92f249f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fusesoc/filters/splitlib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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(":", "_")
return edam

0 comments on commit 92f249f

Please sign in to comment.