opencos-eda 0.2.48__py3-none-any.whl → 0.2.49__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opencos/__init__.py +4 -2
- opencos/_version.py +10 -7
- opencos/commands/flist.py +8 -7
- opencos/commands/multi.py +13 -14
- opencos/commands/sweep.py +3 -2
- opencos/deps/__init__.py +0 -0
- opencos/deps/defaults.py +69 -0
- opencos/deps/deps_commands.py +419 -0
- opencos/deps/deps_file.py +326 -0
- opencos/deps/deps_processor.py +670 -0
- opencos/deps_schema.py +7 -8
- opencos/eda.py +84 -64
- opencos/eda_base.py +572 -316
- opencos/eda_config.py +80 -14
- opencos/eda_extract_targets.py +22 -14
- opencos/eda_tool_helper.py +33 -7
- opencos/export_helper.py +166 -86
- opencos/export_json_convert.py +31 -23
- opencos/files.py +2 -1
- opencos/hw/__init__.py +0 -0
- opencos/{oc_cli.py → hw/oc_cli.py} +9 -4
- opencos/names.py +0 -4
- opencos/peakrdl_cleanup.py +13 -7
- opencos/seed.py +19 -11
- opencos/tests/helpers.py +3 -2
- opencos/tests/test_deps_helpers.py +35 -32
- opencos/tests/test_eda.py +36 -29
- opencos/tests/test_eda_elab.py +5 -3
- opencos/tests/test_eda_synth.py +1 -1
- opencos/tests/test_oc_cli.py +1 -1
- opencos/tests/test_tools.py +3 -2
- opencos/tools/iverilog.py +2 -2
- opencos/tools/modelsim_ase.py +2 -2
- opencos/tools/riviera.py +1 -1
- opencos/tools/slang.py +1 -1
- opencos/tools/surelog.py +1 -1
- opencos/tools/verilator.py +1 -1
- opencos/tools/vivado.py +1 -1
- opencos/tools/yosys.py +4 -3
- opencos/util.py +374 -468
- opencos/utils/__init__.py +0 -0
- opencos/utils/markup_helpers.py +98 -0
- opencos/utils/str_helpers.py +111 -0
- opencos/utils/subprocess_helpers.py +108 -0
- {opencos_eda-0.2.48.dist-info → opencos_eda-0.2.49.dist-info}/METADATA +1 -1
- opencos_eda-0.2.49.dist-info/RECORD +88 -0
- {opencos_eda-0.2.48.dist-info → opencos_eda-0.2.49.dist-info}/entry_points.txt +1 -1
- opencos/deps_helpers.py +0 -1346
- opencos_eda-0.2.48.dist-info/RECORD +0 -79
- /opencos/{pcie.py → hw/pcie.py} +0 -0
- {opencos_eda-0.2.48.dist-info → opencos_eda-0.2.49.dist-info}/WHEEL +0 -0
- {opencos_eda-0.2.48.dist-info → opencos_eda-0.2.49.dist-info}/licenses/LICENSE +0 -0
- {opencos_eda-0.2.48.dist-info → opencos_eda-0.2.49.dist-info}/licenses/LICENSE.spdx +0 -0
- {opencos_eda-0.2.48.dist-info → opencos_eda-0.2.49.dist-info}/top_level.txt +0 -0
opencos/tools/riviera.py
CHANGED
|
@@ -11,8 +11,8 @@ import shutil
|
|
|
11
11
|
import subprocess
|
|
12
12
|
|
|
13
13
|
from opencos import util
|
|
14
|
-
from opencos.util import sanitize_defines_for_sh
|
|
15
14
|
from opencos.tools.modelsim_ase import ToolModelsimAse, CommandSimModelsimAse
|
|
15
|
+
from opencos.utils.str_helpers import sanitize_defines_for_sh
|
|
16
16
|
|
|
17
17
|
class ToolRiviera(ToolModelsimAse):
|
|
18
18
|
'''ToolRiviera used by opencos.eda for --tool=riviera'''
|
opencos/tools/slang.py
CHANGED
|
@@ -10,9 +10,9 @@ import shutil
|
|
|
10
10
|
import subprocess
|
|
11
11
|
|
|
12
12
|
from opencos import util
|
|
13
|
-
from opencos.util import sanitize_defines_for_sh
|
|
14
13
|
from opencos.eda_base import Tool
|
|
15
14
|
from opencos.commands import CommandElab
|
|
15
|
+
from opencos.utils.str_helpers import sanitize_defines_for_sh
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class ToolSlang(Tool):
|
opencos/tools/surelog.py
CHANGED
|
@@ -7,9 +7,9 @@ import shutil
|
|
|
7
7
|
import subprocess
|
|
8
8
|
|
|
9
9
|
from opencos import util
|
|
10
|
-
from opencos.util import sanitize_defines_for_sh
|
|
11
10
|
from opencos.eda_base import Tool
|
|
12
11
|
from opencos.commands import CommandElab
|
|
12
|
+
from opencos.utils.str_helpers import sanitize_defines_for_sh
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class ToolSurelog(Tool):
|
opencos/tools/verilator.py
CHANGED
|
@@ -10,9 +10,9 @@ import shutil
|
|
|
10
10
|
import subprocess
|
|
11
11
|
|
|
12
12
|
from opencos import util
|
|
13
|
-
from opencos.util import sanitize_defines_for_sh
|
|
14
13
|
from opencos.eda_base import Tool
|
|
15
14
|
from opencos.commands import CommandSim
|
|
15
|
+
from opencos.utils.str_helpers import sanitize_defines_for_sh
|
|
16
16
|
|
|
17
17
|
class ToolVerilator(Tool):
|
|
18
18
|
'''ToolVerilator used by opencos.eda for --tool=verilator'''
|
opencos/tools/vivado.py
CHANGED
|
@@ -182,7 +182,7 @@ class CommandSimVivado(CommandSim, ToolVivado):
|
|
|
182
182
|
['./simulate.sh'],
|
|
183
183
|
])
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
self.write_eda_config_and_args()
|
|
186
186
|
|
|
187
187
|
def compile(self):
|
|
188
188
|
if self.args['stop-before-compile']:
|
opencos/tools/yosys.py
CHANGED
|
@@ -9,9 +9,10 @@ import os
|
|
|
9
9
|
import shutil
|
|
10
10
|
import subprocess
|
|
11
11
|
|
|
12
|
-
from opencos import util
|
|
12
|
+
from opencos import util, eda_config
|
|
13
13
|
from opencos.eda_base import Tool, get_eda_exec
|
|
14
14
|
from opencos.commands import CommandSynth, CommandLec
|
|
15
|
+
from opencos.utils.markup_helpers import yaml_safe_load
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
def get_commands_to_run_scriptfiles(
|
|
@@ -543,8 +544,8 @@ class CommandLecYosys(CommandLec, ToolYosys):
|
|
|
543
544
|
'''Returns the top name given the design number that we synthesized'''
|
|
544
545
|
|
|
545
546
|
work_dir = self.synth_work_dirs[design_num]
|
|
546
|
-
output_cfg_fpath = os.path.join(work_dir,
|
|
547
|
-
data =
|
|
547
|
+
output_cfg_fpath = os.path.join(work_dir, eda_config.EDA_OUTPUT_CONFIG_FNAME)
|
|
548
|
+
data = yaml_safe_load(output_cfg_fpath)
|
|
548
549
|
top = data.get('args', {}).get('top', '')
|
|
549
550
|
if not top:
|
|
550
551
|
self.error(f'"top" not found in synth run from {work_dir=} in',
|