prga.algorithm.interconnect module¶
Algorithms for building interconnects.
-
class
prga.algorithm.interconnect.
InterconnectAlgorithms
¶ Bases:
object
Wrapper class for all interconnect-related algorithms.
-
classmethod
crossbar
(N, M, connectivity, *, n_util=None)¶ Generate
(n, m)
pairs so that eachm
is paired withconnectivity
n
s. The goal is that eachn
is paired with about the same number ofm
s (fairness), while eachm
is paired with a different composition ofn
s (diversity).Parameters: - N (
int
) – - M (
int
) – - connectivity (
int
) –
Keyword Arguments: n_util (
Sequence
[int
]) – carry-over stateYields: tuple
[int
,int
]- N (
-
classmethod