We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f581981 commit fbd58c6Copy full SHA for fbd58c6
magma/placer.py
@@ -3,9 +3,13 @@
3
from collections import Counter
4
import inspect
5
import textwrap
6
-from .config import get_debug_mode
7
-from .ref import LazyCircuit
8
-from .view import InstView
+
+from magma.config import get_debug_mode, config, RuntimeConfig
+from magma.ref import LazyCircuit
9
+from magma.view import InstView
10
11
12
+config._register(disable_smart_naming=RuntimeConfig(False))
13
14
15
def _parse_name(inst):
@@ -83,7 +87,7 @@ def _debug_name(self, inst) -> bool:
83
87
name of @inst and returns True if available. Otherwise (or if debug mode
84
88
is disabled), returns False.
85
89
"""
86
- if not get_debug_mode():
90
+ if not get_debug_mode() or config.disable_smart_naming:
91
return False
92
basename = _parse_name(inst)
93
if not basename:
0 commit comments