najaeda 0.2.1__cp313-cp313-macosx_11_0_arm64.whl → 0.2.2__cp313-cp313-macosx_11_0_arm64.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.
Potentially problematic release.
This version of najaeda might be problematic. Click here for more details.
- najaeda/libnaja_python.dylib +0 -0
- najaeda/naja.so +0 -0
- najaeda/netlist.py +20 -2
- {najaeda-0.2.1.dist-info → najaeda-0.2.2.dist-info}/METADATA +2 -2
- {najaeda-0.2.1.dist-info → najaeda-0.2.2.dist-info}/RECORD +8 -8
- {najaeda-0.2.1.dist-info → najaeda-0.2.2.dist-info}/WHEEL +0 -0
- {najaeda-0.2.1.dist-info → najaeda-0.2.2.dist-info}/licenses/AUTHORS +0 -0
- {najaeda-0.2.1.dist-info → najaeda-0.2.2.dist-info}/licenses/LICENSE +0 -0
najaeda/libnaja_python.dylib
CHANGED
|
Binary file
|
najaeda/naja.so
CHANGED
|
Binary file
|
najaeda/netlist.py
CHANGED
|
@@ -485,8 +485,9 @@ class Term:
|
|
|
485
485
|
term_str = f"{path}/{snl_term_str}"
|
|
486
486
|
if self.is_bus():
|
|
487
487
|
term_str += f"[{self.get_msb()}:{self.get_lsb()}]"
|
|
488
|
-
|
|
489
|
-
|
|
488
|
+
bit = self.get_bit_number()
|
|
489
|
+
if bit is not None:
|
|
490
|
+
term_str += f"[{bit}]"
|
|
490
491
|
return term_str
|
|
491
492
|
|
|
492
493
|
def __repr__(self) -> str:
|
|
@@ -671,6 +672,10 @@ class Term:
|
|
|
671
672
|
return self.get_equipotential().get_leaf_readers()
|
|
672
673
|
|
|
673
674
|
def get_equipotential(self) -> Equipotential:
|
|
675
|
+
"""
|
|
676
|
+
:return: the Equipotential of this Term.
|
|
677
|
+
:rtype: Equipotential
|
|
678
|
+
"""
|
|
674
679
|
return Equipotential(self)
|
|
675
680
|
|
|
676
681
|
def is_input(self) -> bool:
|
|
@@ -1607,6 +1612,19 @@ def load_primitives_from_file(file: str):
|
|
|
1607
1612
|
module.load(db)
|
|
1608
1613
|
|
|
1609
1614
|
|
|
1615
|
+
def load_naja_if(path: str):
|
|
1616
|
+
"""Load the Naja IF from the given path."""
|
|
1617
|
+
if not os.path.isdir(path):
|
|
1618
|
+
raise FileNotFoundError(f"Cannot load Naja IF from non existing directory: {path}")
|
|
1619
|
+
logging.info(f"Loading Naja IF from {path}")
|
|
1620
|
+
naja.NLDB.loadNajaIF(path)
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
def dump_naja_if(path: str):
|
|
1624
|
+
"""Dump the Naja IF to the given path."""
|
|
1625
|
+
__get_top_db().dumpNajaIF(path)
|
|
1626
|
+
|
|
1627
|
+
|
|
1610
1628
|
def get_primitives_library() -> naja.NLLibrary:
|
|
1611
1629
|
lib = __get_top_db().getLibrary("PRIMS")
|
|
1612
1630
|
if lib is None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: najaeda
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Naja EDA Python package
|
|
5
5
|
Author-Email: Naja Authors <contact@keplertech.io>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -56,7 +56,7 @@ processes with minimal overhead.
|
|
|
56
56
|
|
|
57
57
|
najaeda is the Python counterpart of the `Naja C++ project <https://github.com/najaeda/naja>`_.
|
|
58
58
|
|
|
59
|
-
If you find this project useful, please consider
|
|
59
|
+
If you find this project useful, please consider `starring it on GitHub <https://github.com/najaeda/naja>`_ to show your support.
|
|
60
60
|
|
|
61
61
|
Feel free to reach out to us anytime at `contact@keplertech.io <mailto:contact@keplertech.io>`_.
|
|
62
62
|
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
najaeda
|
|
1
|
+
najaeda-0.2.2.dist-info/RECORD,,
|
|
2
|
+
najaeda-0.2.2.dist-info/WHEEL,sha256=sdwQg6rrnDLRqxihk859xR2X7r9Nv232JOiCZxJUBz4,114
|
|
3
|
+
najaeda-0.2.2.dist-info/METADATA,sha256=sDeDlCC-dBef_IHUdq2tfSqbCwhYqwdLu97HLgozptY,3435
|
|
4
|
+
najaeda-0.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
5
|
+
najaeda-0.2.2.dist-info/licenses/AUTHORS,sha256=7NYEGDAX_1QZvCCHfq8YVXC5ZbwH_pbNI8DcSmm70GU,377
|
|
6
|
+
najaeda/netlist.py,sha256=hU9g4tO40GGhS5b9uEfAqn7m6dXgcl9-yEBIKT1dmuU,56385
|
|
2
7
|
najaeda/libnaja_nl.dylib,sha256=idyGQyIWdlumfe4onWoTpNYGekRsyxZOHOr44TmzgLA,755312
|
|
3
8
|
najaeda/pandas_stats.py,sha256=yOb4ka965U7rN4D6AwvSGmRyeT_O7Ed-5cmT8BFbfeo,1070
|
|
4
9
|
najaeda/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
najaeda/naja.so,sha256=
|
|
10
|
+
najaeda/naja.so,sha256=DlAB3oAeo8sDA785wlcX4X3E8fyF3L-l6z-QwGD4Z8I,99440
|
|
6
11
|
najaeda/net_visitor.py,sha256=P_esjibYb-wBDuF-AyF7es9sJYw1Ha8RhTPu-qKe7G4,1940
|
|
7
12
|
najaeda/libnaja_opt.dylib,sha256=wIG2H5rnxbqGrwLSgklJjZ5wjOkx2Shhu2RsnYQwmuE,212720
|
|
8
|
-
najaeda/libnaja_python.dylib,sha256=
|
|
13
|
+
najaeda/libnaja_python.dylib,sha256=WFohaFNuhXFPExqqTs6deoyVJRMChb7-4fvQ9f-0BOM,942416
|
|
9
14
|
najaeda/stats.py,sha256=SJ9rca0Z6ldNAFOjU7DPO2hfx1zq-9Bec0Rx_oLasJo,16217
|
|
10
15
|
najaeda/instance_visitor.py,sha256=JMsPSQaWNiDjxS05rxg83a0PIsrOIuTi9G35hkwdibs,1530
|
|
11
16
|
najaeda/libnaja_bne.dylib,sha256=pLbGUnDr5PSGXbA8wKD-pqEyQIWHbiCb1icPpxRYrWE,136416
|
|
@@ -34,8 +39,3 @@ najaeda/.dylibs/libkj-1.1.0.dylib,sha256=pB7dMks8b8ybJ6xKWqFR_hHjKsmpf7wzbcunZaS
|
|
|
34
39
|
najaeda/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
40
|
najaeda/primitives/yosys.py,sha256=g1L70AUJoPCkd9B-b9aW4Pzc1AeR9KyIHoXvneW_UEU,8584
|
|
36
41
|
najaeda/primitives/xilinx.py,sha256=Ka-jlu-OxixEZ_yR_niXLHtaUL8HxT1Bg9H9Kpnr4ns,26551
|
|
37
|
-
najaeda-0.2.1.dist-info/RECORD,,
|
|
38
|
-
najaeda-0.2.1.dist-info/WHEEL,sha256=sdwQg6rrnDLRqxihk859xR2X7r9Nv232JOiCZxJUBz4,114
|
|
39
|
-
najaeda-0.2.1.dist-info/METADATA,sha256=-B4Xx2ur4gYMP8u14YKgiloVBdLr-9362F6wiYNFW0g,3433
|
|
40
|
-
najaeda-0.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
41
|
-
najaeda-0.2.1.dist-info/licenses/AUTHORS,sha256=7NYEGDAX_1QZvCCHfq8YVXC5ZbwH_pbNI8DcSmm70GU,377
|
|
File without changes
|
|
File without changes
|
|
File without changes
|