[xbar/dv] Update chip-level xbar to drive from each IP ports
1. detail discussion at #2464
2. re-enable chip xbar tests (tmp disabled at #3040)
3. exceptionis (non-comportable instance/port name) are handled in
termodule.py:find_otherside_module
1. all mem IPs (rom, ram_main, eflash, ram_ret), which can be removed
when we make memory as comportable IP
2. corei, cored, debug_mem, dm_sba: need more discussion
Signed-off-by: Weicai Yang <weicai@google.com>
diff --git a/util/topgen/lib.py b/util/topgen/lib.py
index ea3fdf5..c887595 100644
--- a/util/topgen/lib.py
+++ b/util/topgen/lib.py
@@ -3,16 +3,18 @@
# SPDX-License-Identifier: Apache-2.0
import logging as log
+import re
+import sys
+from collections import OrderedDict
from copy import deepcopy
from pathlib import Path
-from collections import OrderedDict
-import hjson
-import sys
-import re
+import hjson
# Ignore flake8 warning as the function is used in the template
-from .intermodule import im_defname, im_netname, im_portname # noqa : F401
+# disable isort formating, as conflicting with flake8
+from .intermodule import find_otherside_modules # noqa : F401 # isort:skip
+from .intermodule import im_portname, im_defname, im_netname # noqa : F401 # isort:skip
def is_ipcfg(ip: Path) -> bool: # return bool