opencos-eda 0.2.39__py3-none-any.whl → 0.2.40__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/eda_base.py +15 -1
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/METADATA +1 -1
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/RECORD +8 -8
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/WHEEL +0 -0
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/entry_points.txt +0 -0
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/licenses/LICENSE +0 -0
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/licenses/LICENSE.spdx +0 -0
- {opencos_eda-0.2.39.dist-info → opencos_eda-0.2.40.dist-info}/top_level.txt +0 -0
opencos/eda_base.py
CHANGED
|
@@ -178,6 +178,7 @@ class Command:
|
|
|
178
178
|
"job-name" : "", # this is used to create a certain dir under "eda_dir"
|
|
179
179
|
"work-dir" : "", # this can be used to run the job in a certain dir, else it will be <eda-dir>/<job-name> else <eda-dir>/<target>_<command>
|
|
180
180
|
"sub-work-dir" : "", # this can be used to name the dir built under <eda-dir>, which seems to be same function as job-name??
|
|
181
|
+
"work-dir-use-target-dir": False,
|
|
181
182
|
"suffix" : "",
|
|
182
183
|
"design" : "", # not sure how this relates to top
|
|
183
184
|
'export': False,
|
|
@@ -196,6 +197,8 @@ class Command:
|
|
|
196
197
|
'export-json': 'export, and save a JSON file per target',
|
|
197
198
|
'work-dir': ('Optional override for working directory, often defaults to'
|
|
198
199
|
' ./eda.work/<top>.<command>'),
|
|
200
|
+
"work-dir-use-target-dir": ('Set the work-dir to be the same as the in-place location'
|
|
201
|
+
' where the target (DEPS) exists'),
|
|
199
202
|
'enable-tags': ('DEPS markup tag names to be force enabled for this'
|
|
200
203
|
' command (mulitple appends to list).'),
|
|
201
204
|
'diable-tags': ('DEPS markup tag names to be disabled (even if they'
|
|
@@ -207,6 +210,7 @@ class Command:
|
|
|
207
210
|
self.modified_args = {}
|
|
208
211
|
self.config = copy.deepcopy(config) # avoid external modifications.
|
|
209
212
|
self.target = ""
|
|
213
|
+
self.target_path = ""
|
|
210
214
|
self.status = 0
|
|
211
215
|
|
|
212
216
|
def error(self, *args, **kwargs):
|
|
@@ -228,6 +232,16 @@ class Command:
|
|
|
228
232
|
|
|
229
233
|
def create_work_dir(self):
|
|
230
234
|
util.debug(f"create_work_dir: {self.args['eda-dir']=} {self.args['work-dir']=}")
|
|
235
|
+
if self.args['work-dir-use-target-dir']:
|
|
236
|
+
if not self.target_path:
|
|
237
|
+
self.target_path = '.'
|
|
238
|
+
util.info(f"create_work_dir: --work-dir-use-target-dir: using:",
|
|
239
|
+
f"{os.path.abspath(self.target_path)}",
|
|
240
|
+
f'target={self.target}')
|
|
241
|
+
self.args['work-dir'] = self.target_path
|
|
242
|
+
self.args['sub-work-dir'] = ''
|
|
243
|
+
return self.args['work-dir']
|
|
244
|
+
|
|
231
245
|
if not os.path.exists(self.args['eda-dir']):
|
|
232
246
|
util.safe_mkdir(self.args['eda-dir'])
|
|
233
247
|
util.info(f"create_work_dir: created {self.args['eda-dir']}")
|
|
@@ -884,7 +898,7 @@ class CommandDesign(Command):
|
|
|
884
898
|
# self.target is a name we grab for the job (i.e. for naming work dir etc). we don't want the path prefix.
|
|
885
899
|
# TODO: too messy -- there's also a self.target, args['job-name'], args['work-dir'], args['design'], args['top'], args['sub-work-dir'] ...
|
|
886
900
|
|
|
887
|
-
self.target = os.path.
|
|
901
|
+
self.target_path, self.target = os.path.split(target)
|
|
888
902
|
|
|
889
903
|
if target in self.targets_dict:
|
|
890
904
|
# If we're encountered this target before, stop. We're not traversing again.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opencos-eda
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.40
|
|
4
4
|
Summary: A simple Python package for wrapping RTL simuliatons and synthesis
|
|
5
5
|
Author-email: Simon Sabato <simon@cognichip.ai>, Drew Ranck <drew@cognichip.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/cognichip/opencos
|
|
@@ -4,7 +4,7 @@ opencos/_waves_pkg.sv,sha256=1lbhQOVGc3t_R8czYjP40hssP0I3FlZOpHTkI7yKFbI,1251
|
|
|
4
4
|
opencos/deps_helpers.py,sha256=Pgo3dO_QBHzGB0lE2B0uf2vWWDy3dSDN0pvW-eA6ocs,56939
|
|
5
5
|
opencos/deps_schema.py,sha256=MhytzXwp071F14RwxqHt78ak8Qruoe4FeK5XSzkO2f0,14658
|
|
6
6
|
opencos/eda.py,sha256=k0_7ppBBPFsQ8Jd0mJGOnc6llUNo2hryHwx8DZ_B_jU,18832
|
|
7
|
-
opencos/eda_base.py,sha256=
|
|
7
|
+
opencos/eda_base.py,sha256=I5BnL50SfJniU-I4_7kKvhBqNpev-MZcX9SMhSsDPrU,82373
|
|
8
8
|
opencos/eda_config.py,sha256=FVp-dg9IVq78LZoh43kFYo9WXKfFxsMQMo6JGulEbEM,8818
|
|
9
9
|
opencos/eda_config_defaults.yml,sha256=0tqs4paxCYZJshb2WW2GfaZyeh_l9ZUKWMh8hh17AWk,10235
|
|
10
10
|
opencos/eda_config_max_verilator_waivers.yml,sha256=lTAU4IOEbUWVlPzuer1YYhIyxpPINeA4EJqcRIT-Ymk,840
|
|
@@ -67,10 +67,10 @@ opencos/tools/tabbycad_yosys.py,sha256=h9kkAi479cZzYfb4R9WBNY_JmR6BgVFj4s3VShnGp
|
|
|
67
67
|
opencos/tools/verilator.py,sha256=lxR7BSmeTc6YcL0UuXzIfJk7umVm8RfbU8rtYtbKUBg,18192
|
|
68
68
|
opencos/tools/vivado.py,sha256=1dbQ-5oUUaUNIeMp07HArWG15spG81OuCwJ88qRNXU0,39102
|
|
69
69
|
opencos/tools/yosys.py,sha256=aZnRFbsODYRe4BHbfxl6vfWeEP7WJYJk50gCZcn8Fu0,8902
|
|
70
|
-
opencos_eda-0.2.
|
|
71
|
-
opencos_eda-0.2.
|
|
72
|
-
opencos_eda-0.2.
|
|
73
|
-
opencos_eda-0.2.
|
|
74
|
-
opencos_eda-0.2.
|
|
75
|
-
opencos_eda-0.2.
|
|
76
|
-
opencos_eda-0.2.
|
|
70
|
+
opencos_eda-0.2.40.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
71
|
+
opencos_eda-0.2.40.dist-info/licenses/LICENSE.spdx,sha256=8gn1610RMP6eFgT3Hm6q9VKXt0RvdTItL_oxMo72jII,189
|
|
72
|
+
opencos_eda-0.2.40.dist-info/METADATA,sha256=A0MWU-i412C_zVRQpgDL34s64OLNavbupGPmlgBowks,604
|
|
73
|
+
opencos_eda-0.2.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
74
|
+
opencos_eda-0.2.40.dist-info/entry_points.txt,sha256=V8OE1lySAFcFQpDNJuVxVZteeSmDH-joLMhGvrxrvmg,164
|
|
75
|
+
opencos_eda-0.2.40.dist-info/top_level.txt,sha256=J4JDP-LpRyJqPNeh9bSjx6yrLz2Mk0h6un6YLmtqql4,8
|
|
76
|
+
opencos_eda-0.2.40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|