Previous topic

spinnman.model.chip_info module

Next topic

spinnman.model.core_subsets module

This Page

spinnman.model.core_subset module

class spinnman.model.core_subset.CoreSubset(x, y, processor_ids)[source]

Bases: object

Represents a subset of the cores on a chip

Parameters:
  • x (int) – The x-coordinate of the chip
  • y (int) – The y-coordinate of the chip
  • processor_ids (iterable of int) – An iterable of processor ids on the chip
Raises spinnman.exceptions.SpinnmanInvalidParameterException:
 

If there is more than one core listed with the same id

Attributes

processor_ids The subset of processor ids on the chip
x The x-coordinate of the chip
y The y-coordinate of the chip

Methods

add_processor(processor_id) Adds a processor id to this subset

Detailed Methods

add_processor(processor_id)[source]

Adds a processor id to this subset

Parameters:processor_ids (int) – A processor id
Returns:Nothing is returned
Return type:None
Raises spinnman.exceptions.SpinnmanInvalidParameterException:
 If there is already a processor in the subset with the same id