Skip to content

Commit

Permalink
fixup! Faster spike packing
Browse files Browse the repository at this point in the history
  • Loading branch information
tbekolay committed Jan 14, 2020
1 parent 876c1a8 commit f79b2cf
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions nengo_loihi/hardware/nxsdk_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,27 @@ class LoihiSpikeInput:
axon_map : {int: ndarray(dtype=spike_dtype)}
Map from axon indices in the SpikeInput to LoihiAxons targeting
particular locations on the chip.
Notes
-----
spike_dtype is a numpy datatype to represent a Loihi axon or spike.
It represents the following information.
t : np.int32
The timestep at which to send the spike to the chip (unused for axons)
axon_type : np.int32
The population type of axon. discrete = 0, pop16 = 16, pop32 = 32.
chip_id : np.int32
The actual ID of the target chip on the board.
core_id : np.int32
The actual ID of the target core on the board.
axon_id : np.int32
The actual ID of the target axon on the board.
atom : np.int32
The population index (atom), used if this axon sends population spikes
(i.e. axon_type != 0).
"""

# spike_dtype is a numpy datatype to represent a Loihi axon or spike.
# t : The timestep at which to send the spike to the chip (unused for axons)
# axon_type : The population type of axon. discrete = 0, pop16 = 16, pop32 = 32.
# chip_id : The actual ID of the target chip on the board.
# core_id : The actual ID of the target core on the board.
# axon_id : The actual ID of the target axon on the board.
# atom : The population index (atom), used if this axon sends population
# spikes (i.e. axon_type != 0).
spike_dtype = np.dtype(
[
("t", np.int32),
Expand Down

0 comments on commit f79b2cf

Please sign in to comment.