Skip to content

Commit 805d5ab

Browse files
committed
Updated output name
1 parent 17f6dcf commit 805d5ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chipflow_lib/platforms/silicon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: BSD-2-Clause
44
import logging
55
import os
6+
import re
67
import subprocess
78

89
from dataclasses import dataclass
@@ -378,6 +379,7 @@ def build(self, elaboratable, name="top"):
378379
build_dir = os.path.join(os.environ["CHIPFLOW_ROOT"], "build")
379380
os.makedirs(build_dir, exist_ok=True)
380381

382+
name = re.sub(r"[-_.]+", "_", name).lower()
381383
link_script = os.path.join(build_dir, name + "_link.ys")
382384
with open(link_script, "wb") as script_fp:
383385
script_fp.write(b"\n".join(yosys_script))

0 commit comments

Comments
 (0)