najaeda 0.2.11__cp313-cp313-macosx_11_0_arm64.whl → 0.2.12__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.

Binary file
najaeda/naja.so CHANGED
Binary file
najaeda/netlist.py CHANGED
@@ -1878,7 +1878,35 @@ def get_max_fanout() -> list:
1878
1878
  if u is not None:
1879
1879
  top = naja.NLUniverse.get().getTopDesign()
1880
1880
  if top is not None:
1881
- return naja.NLUniverse.get().getMaxFanout()
1881
+ max_fanout = naja.NLUniverse.get().getMaxFanout()
1882
+ result = []
1883
+ index = 0
1884
+ result.append(max_fanout[0])
1885
+ fanouts = []
1886
+ for entry in max_fanout[1]:
1887
+ fanout = []
1888
+ driver = entry[0]
1889
+ component = driver.getComponent()
1890
+ path = driver.getPath().getPathIDs()
1891
+ if isinstance(component, naja.SNLInstTerm):
1892
+ path.append(component.getInstance().getID())
1893
+ component = component.getBitTerm()
1894
+ print(component)
1895
+ print(path)
1896
+ fanout.append(Term(path, component))
1897
+ readers = []
1898
+ for item in entry[1]:
1899
+ component = item.getComponent()
1900
+ path = item.getPath().getPathIDs()
1901
+ if isinstance(component, naja.SNLInstTerm):
1902
+ path.append(component.getInstance().getID())
1903
+ component = component.getBitTerm()
1904
+ readers.append(Term(path, component))
1905
+ fanout.append(readers)
1906
+ fanouts.append(fanout)
1907
+ index += 1
1908
+ result.append(fanouts)
1909
+ return result
1882
1910
  return [0]
1883
1911
 
1884
1912
 
@@ -1892,5 +1920,25 @@ def get_max_logic_level() -> list:
1892
1920
  if u is not None:
1893
1921
  top = naja.NLUniverse.get().getTopDesign()
1894
1922
  if top is not None:
1895
- return naja.NLUniverse.get().getMaxLogicLevel()
1923
+ max_logic_level = naja.NLUniverse.get().getMaxLogicLevel()
1924
+ result = []
1925
+ index = 0
1926
+ for entry in max_logic_level:
1927
+ if index == 0:
1928
+ result.append(max_logic_level[0])
1929
+ else:
1930
+ paths = []
1931
+ for path in entry:
1932
+ llpath = []
1933
+ for item in path:
1934
+ component = item.getComponent()
1935
+ pathIDs = item.getPath().getPathIDs()
1936
+ if isinstance(component, naja.SNLInstTerm):
1937
+ pathIDs.append(component.getInstance().getID())
1938
+ component = component.getBitTerm()
1939
+ llpath.append(Term(pathIDs, component))
1940
+ paths.append(llpath)
1941
+ result.append(paths)
1942
+ index += 1
1943
+ return result
1896
1944
  return [0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: najaeda
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: Naja EDA Python package
5
5
  Author-Email: Naja Authors <contact@keplertech.io>
6
6
  License: Apache License 2.0
@@ -1,12 +1,17 @@
1
- najaeda/netlist.py,sha256=ul6AMYWKDuAOmo_1P0z8KBiClfcQdhff_XBlYeTnmGk,64921
1
+ najaeda-0.2.12.dist-info/RECORD,,
2
+ najaeda-0.2.12.dist-info/WHEEL,sha256=xL_I_TleH-YV9h3oMcQi1F0DSqA1tyOenDLO1uzk5E8,114
3
+ najaeda-0.2.12.dist-info/METADATA,sha256=hSlx5YMwg6ZliqOfS5k6qHjF9kx0i_m6g6z-ulC5TAc,3656
4
+ najaeda-0.2.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
+ najaeda-0.2.12.dist-info/licenses/AUTHORS,sha256=7NYEGDAX_1QZvCCHfq8YVXC5ZbwH_pbNI8DcSmm70GU,377
6
+ najaeda/netlist.py,sha256=f36j5CT2pEV9qqQwJmkAe-1vU8n8Smied4XTuEFkcok,67034
2
7
  najaeda/libnaja_nl.dylib,sha256=wW6MuM89Q6WIK-GqDuFJrbHvb06IY8fX9LE1ijytHEo,774480
3
8
  najaeda/pandas_stats.py,sha256=yOb4ka965U7rN4D6AwvSGmRyeT_O7Ed-5cmT8BFbfeo,1070
4
9
  najaeda/_version.py,sha256=c-4hT20dyE-3BcdzOqR0vd92E7ydR5u2c-VmCc6oU8A,332
5
10
  najaeda/__init__.py,sha256=6QrOzlqTfd558FH9Zm6ve54IzkHaDJ8ZO8hTCaEwsL8,218
6
- najaeda/naja.so,sha256=oWAZ0K3KGTIumc1wL2eSZWCc3FIH5VPsDE65BYUm_08,99440
11
+ najaeda/naja.so,sha256=AizcbEDJT0C7NgZmiGGFsJzoc5azlIqyoiNCiWgqQug,99440
7
12
  najaeda/net_visitor.py,sha256=P_esjibYb-wBDuF-AyF7es9sJYw1Ha8RhTPu-qKe7G4,1940
8
13
  najaeda/libnaja_opt.dylib,sha256=vW8P49UplpYdjSxqU3TeaV2s9ck75Spq5ZcrN3ET0f4,212720
9
- najaeda/libnaja_python.dylib,sha256=1i6bENegfxsZNhSqnh9n7EsUp5onsUpSnfZT4bwUaWE,962528
14
+ najaeda/libnaja_python.dylib,sha256=BlfThr0mJ-UGl43J60DfX1ST6-dayRxWKVX2s1cYpaw,962688
10
15
  najaeda/stats.py,sha256=g1F1CEBNVvGgzINOI7sK83123cCbclLDmyUjuep3-EU,16107
11
16
  najaeda/instance_visitor.py,sha256=JMsPSQaWNiDjxS05rxg83a0PIsrOIuTi9G35hkwdibs,1530
12
17
  najaeda/libnaja_bne.dylib,sha256=pLbGUnDr5PSGXbA8wKD-pqEyQIWHbiCb1icPpxRYrWE,136416
@@ -36,8 +41,3 @@ najaeda/.dylibs/libkj-1.1.0.dylib,sha256=pB7dMks8b8ybJ6xKWqFR_hHjKsmpf7wzbcunZaS
36
41
  najaeda/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
42
  najaeda/primitives/yosys.py,sha256=g1L70AUJoPCkd9B-b9aW4Pzc1AeR9KyIHoXvneW_UEU,8584
38
43
  najaeda/primitives/xilinx.py,sha256=dBzS0bDF9e3kGqadwJDW2H3LmvNfh-AZCU7Hup9ScQQ,31401
39
- najaeda-0.2.11.dist-info/RECORD,,
40
- najaeda-0.2.11.dist-info/WHEEL,sha256=xL_I_TleH-YV9h3oMcQi1F0DSqA1tyOenDLO1uzk5E8,114
41
- najaeda-0.2.11.dist-info/METADATA,sha256=ZsUuSVVSJ8dJzc6WxNuIn-tdwcrH9C3uIFC0ZkMOpQQ,3656
42
- najaeda-0.2.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
43
- najaeda-0.2.11.dist-info/licenses/AUTHORS,sha256=7NYEGDAX_1QZvCCHfq8YVXC5ZbwH_pbNI8DcSmm70GU,377