-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One major change is to move the host-to-chip and chip-to-host logic to CxSimulator and LoihiSimulator. This keeps all of the manipulation of CxSimulator- and LoihiSimulator-internal values internal to those classes. The other major change is to handle each possible permutation of `run_steps` logic independently and cache the resulting sequence of step functions. Part of this is for readability (it is now more clear what happens in what cases, and is split up such that we no longer get the cyclomatic complexity warning), but also for speed as in some cases `run_steps` could be called within a loop. In order to handle cyclic dependencies, send/receive nodes/targets were moved to `loihi_cx.py`. This is a temporary location where they (and specifically `PESModulatoryTarget`) are accessible in all locations where they are required. The plan is that they will be relocated in an upcoming refactoring.
- Loading branch information
Showing
7 changed files
with
595 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.