pacman.utilities.utility_objs package

Module contents

class pacman.utilities.utility_objs.Field(lo, hi, value, tag=<SUPPORTED_TAGS.ROUTING: 1>, name=None)

Bases: object

Field object used in a field constraint for key allocation

Parameters:
  • lo (int) – the low bit in the routing table entry for this field
  • hi (int) – the high bit in the routing table entry for this field
  • value (int) – the value to store in this field
  • tag (SUPPORTED_TAGS) – field tag
  • name (str or None) – field name
hi

the high bit in the routing table entry for this field

Return type:int
lo

the low bit in the routing table entry for this field

Return type:int
name

field name

Return type:str or UUID
tag

field tag

Return type:SUPPORTED_TAGS
value

the value to store in this field

Return type:int
class pacman.utilities.utility_objs.SUPPORTED_TAGS

Bases: enum.Enum

An enumeration.

APPLICATION = 0
ROUTING = 1
class pacman.utilities.utility_objs.ChipCounter(n_cores_per_chip=15, sdram_per_chip=104857600)

Bases: object

A counter of how many chips are needed to hold machine vertices. This does not look at the constraints of the vertices at all. The value produced will be a (hopefully) worst-case estimate and should not be used to decide failure in terms of space!

add_core(resources)[source]
n_chips