najaeda 0.1.15__cp39-cp39-macosx_11_0_arm64.whl → 0.1.21__cp39-cp39-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.
- najaeda/.dylibs/libtbb.12.15.dylib +0 -0
- najaeda/.dylibs/libtbbmalloc.2.15.dylib +0 -0
- najaeda/libnaja_bne.dylib +0 -0
- najaeda/libnaja_dnl.dylib +0 -0
- najaeda/libnaja_nl.dylib +0 -0
- najaeda/libnaja_opt.dylib +0 -0
- najaeda/libnaja_python.dylib +0 -0
- najaeda/{snl.so → naja.so} +0 -0
- najaeda/native/stats.py +4 -4
- najaeda/netlist.py +238 -132
- najaeda/primitives/xilinx.py +337 -337
- {najaeda-0.1.15.dist-info → najaeda-0.1.21.dist-info}/METADATA +2 -2
- {najaeda-0.1.15.dist-info → najaeda-0.1.21.dist-info}/RECORD +16 -11
- {najaeda-0.1.15.dist-info → najaeda-0.1.21.dist-info}/WHEEL +1 -1
- najaeda/libnaja_snl.dylib +0 -0
- najaeda/libnaja_snl_python.dylib +0 -0
- {najaeda-0.1.15.dist-info → najaeda-0.1.21.dist-info}/licenses/AUTHORS +0 -0
- {najaeda-0.1.15.dist-info → najaeda-0.1.21.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
najaeda/libnaja_nl.dylib
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
najaeda/{snl.so → naja.so}
RENAMED
|
Binary file
|
najaeda/native/stats.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import logging
|
|
6
6
|
import os
|
|
7
|
-
from
|
|
7
|
+
from najaeda import naja
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class DesignsStats:
|
|
@@ -99,19 +99,19 @@ def compute_design_stats(design, designs_stats):
|
|
|
99
99
|
|
|
100
100
|
def compute_design_terms(design, design_stats):
|
|
101
101
|
for term in design.getTerms():
|
|
102
|
-
if term.getDirection() ==
|
|
102
|
+
if term.getDirection() == naja.SNLTerm.Direction.Input:
|
|
103
103
|
design_stats.terms["inputs"] = design_stats.terms.get("inputs", 0) + 1
|
|
104
104
|
bit_terms = sum(1 for _ in term.getBits())
|
|
105
105
|
design_stats.bit_terms["inputs"] = (
|
|
106
106
|
design_stats.bit_terms.get("inputs", 0) + bit_terms
|
|
107
107
|
)
|
|
108
|
-
elif term.getDirection() ==
|
|
108
|
+
elif term.getDirection() == naja.SNLTerm.Direction.Output:
|
|
109
109
|
design_stats.terms["outputs"] = design_stats.terms.get("outputs", 0) + 1
|
|
110
110
|
bit_terms = sum(1 for _ in term.getBits())
|
|
111
111
|
design_stats.bit_terms["outputs"] = (
|
|
112
112
|
design_stats.bit_terms.get("outputs", 0) + bit_terms
|
|
113
113
|
)
|
|
114
|
-
elif term.getDirection() ==
|
|
114
|
+
elif term.getDirection() == naja.SNLTerm.Direction.InOut:
|
|
115
115
|
design_stats.terms["inouts"] = design_stats.terms.get("inouts", 0) + 1
|
|
116
116
|
bit_terms = sum(1 for _ in term.getBits())
|
|
117
117
|
design_stats.bit_terms["inouts"] = (
|