diff --git a/.gitignore b/.gitignore
index 3465603..577b955 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,6 +39,7 @@ compile_commands.json
.idea/NeMo.iml
+
\.idea/
__pycache__/
diff --git a/.gitmodules b/.gitmodules
index 8475ca7..ec4d9af 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,9 @@
[submodule "ROSS"]
path = ROSS
+
url = https://github.com/carothersc/ROSS.git
+
+[submodule "src/lib/c11t"]
+ path = src/lib/c11t
+ url = https://github.com/jtsiomb/c11threads.git
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8b7774..ddc7cfa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
+cmake_minimum_required(VERSION 2.6)
project(SuperNeMo)
enable_testing()
@@ -7,12 +7,16 @@ set (ND "${CMAKE_CURRENT_SOURCE_DIR}/src/")
ADD_SUBDIRECTORY(${RD})
ADD_SUBDIRECTORY(${ND})
+find_package(MPI REQUIRED)
+include_directories(${MPI_INCLUDE_PATH})
+SET(CMAKE_C_COMPILER mpicc)
+SET(CMAKE_CXX_COMPILER mpicxx)
set_target_properties( NeMo
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
-
+configure_file("demo.csv" "${CMAKE_BINARY_DIR}/bin/demo.csv" COPYONLY)
#TODO: Add targets to the build-tree export set
diff --git a/README.md b/README.md
index 4f87053..6ae09c7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-[![Stories in Ready](https://badge.waffle.io/markplagge/NeMo.png?label=ready&title=Ready)](https://waffle.io/markplagge/NeMo)
# *NeMo*: A Generic Neuromorphic Hardware Simulation Model built on top of ROSS
*NeMo* is a simulation model designed to allow experimentation with different neuromorphic hardware. Built on top of ROSS, *NeMo* features excellent scalability across HPC clusters. *NeMo* is targeted at current neuromorphic hardware designs, and as such currently simulates spiking neural networks in a grid layout, similar to the [IBM TrueNorth Processor](http://science.sciencemag.org/content/345/6197/668.short).
diff --git a/api.md b/api.md
new file mode 100644
index 0000000..01a06bc
--- /dev/null
+++ b/api.md
@@ -0,0 +1,75 @@
+#NeMo Data File Schema
+
+**Network Design**
+
+Network layout & design files allow the user to design a custom neuromorphic hardware
+network. These files are plaintext files.
+
+A file must have the following parameters:
+
+
+* ns_cores: The total number of neurosynaptic cores contained within the simulation. *NeMo* simulates a
+neuromorphic hardware processor, so this setting changes the number of cores contained within a single processor.
+* neurons\_per\_core: The total number of neurons per neurosynaptic core.
+The IBM TrueNorth processor, for example, contains 256 neurons per core.
+If this value is set to 1, then NeMo will simulate a chip without a neurosynaptic core, though with some caveats.
+**The number of neurons in the simulation is equal to neurons\_per\_core \* ns_cores.**
+* neuron_weight_count: The number of weights each neuron can have. This value,
+while able to be set to an arbitrary value, should generally be <= neurons\_per\_core,
+unless the neurons per core value is 1.
+
+After setting these values, the neuron layout can be defined. This layout consists of multiple lines of text, one per
+ user-defined neuron. Any neurons that exist in the simulation that do not have an explicitly configured line in this
+ file are set to a neuron with 0 weights - a disconnected neuron.
+
+Any lines that begin with / are ignored.
+
+The variables for this file are:
+
+* neuron_type: the named type of the neuron. Currently supported are:
+
+ * "tn": the TrueNorth neuron
+ * "LIF": Standard leaky integrate and fire neuron
+
+* neuron parameters: this is a comma separated list of the parameters needed to configure the specified neuron.
+All parameters specified are required. For values specified here in the form of XjGi
+must contain *neuron_weight_count* number of values. For example, if neuron_weight_count is 4, then
+sjGi must have 4 parameters specified.
+* As a note, all sign bits should be set to either -1 or 1. Zero will result in undefiend behavior.
+
+| Parameter | Description |
+|:-----------------: |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
+| coreID | The Neurosynaptic core the neuron is located in |
+| neuronID | The local (core-wise) ID of the neuron. |
+| [wi,j] | synapticConnectivity - A comma seperated list of Neuron _j_'s connectivity to synapse _i_. For example, a fully connected neuron would be: [1,1,1,1,1,1,1,1,1 ... 1,1]. |
+| [Gi] | A comma seperated list - the type of the _i_ _th_ axon. |
+| [σ] | The sign modifier for the list of weights. Wi = σj * Sj |
+| [S] | The list of weights (default is four) |
+| [b] | The weight mode selection parameters (default is four values). Selects stochastic weight mode. Binary value |
+| ε | Monotonic / divergent / normal leak selection value |
+| σl | Sign modifier of the leak. Single value. |
+| λ | Leak value. Must be positive if following TrueNorth specs. Leak = λ * σl |
+| c | |
+| αj | The neuron's positive threshold |
+| βjM | The neuron's negative threshold |
+| TM | The threshold mask for stochastic modes |
+| VR | The reset potential (encoded). Expands to σVR(2VR -1) |
+| σ VR | Reset potential sign bit |
+| ɣ | Gamma value for neuron |
+| ϰ | Kappa value for neuron |
+| signal Delay | The TN signal delay. This is the number of TrueNorth ticks taken for this neuron's spike to be received |
+| destCore | The neuron's destination neurosynaptic core. |
+| destAxon | The neuron's destination axon. |
+
+For the True North neuron, an example configuration line would be:
+(given 256 neurons per core):
+The file must start with the initial simulation parameters first, so first the simulation parameters are given, then a single TrueNorth neuron parameter is shown.
+
+```
+/Simulation parameter example;
+1024
+256
+4
+"tn",1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,4,4,2,3,1,4,0,4,3,3,0,4,1,1,0,3,0,4,3,0,4,4,1,4,3,4,0,3,4,3,1,4,2,2,2,3,3,2,3,4,4,2,1,0,4,4,2,3,3,2,4,4,4,2,0,0,4,1,1,1,3,0,3,3,3,3,4,0,4,0,0,3,3,2,1,1,2,3,0,0,2,2,2,3,0,0,1,0,0,1,0,4,0,2,4,1,2,2,2,3,0,0,3,0,2,2,4,1,4,1,4,1,2,2,4,4,0,2,4,3,3,1,4,4,3,0,3,4,0,4,1,1,4,3,1,1,2,3,3,1,1,2,3,0,0,1,3,4,0,3,4,3,0,1,1,3,3,3,0,2,4,0,0,0,1,3,1,2,0,4,1,1,1,2,4,0,2,1,4,1,4,1,2,0,4,1,2,3,1,3,2,4,4,1,3,1,0,0,3,2,3,0,2,3,2,0,1,4,0,0,4,2,3,4,4,4,2,1,3,1,4,3,0,1,0,2,1,1,3,4,3,1,3,0,0,4,4,2,0,2,3,2,2,0,0,3,1,4,4,1,1,0,0,4,4,1,-1,1,1,2,3,4,1,0,0,-10,10001,10001,0,0
+```
+
diff --git a/api_ref.xlsx b/api_ref.xlsx
new file mode 100644
index 0000000..72a1401
Binary files /dev/null and b/api_ref.xlsx differ
diff --git a/csv_test.csv b/csv_test.csv
new file mode 100644
index 0000000..382e8c6
--- /dev/null
+++ b/csv_test.csv
@@ -0,0 +1,4 @@
+"TN",0,0,1,2,4,5,1,-3
+"TN",0,1,9,8,2,3,1,-1
+"TN",1,0,1,2,3,4,5,60
+"TN",1,5,0,0,0,0,0,99
\ No newline at end of file
diff --git a/demo.csv b/demo.csv
new file mode 100644
index 0000000..325b794
--- /dev/null
+++ b/demo.csv
@@ -0,0 +1,4096 @@
+TN,0,0,1,1,1,1,1,1,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,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,1,1,1,1,1,1,1,1,0,0,0,0,0,-1,0,0,1,0,0,0,0,0,0,0,1,0,0,0
diff --git a/docs/Doxyfile b/docs/Doxyfile
index 01c4117..80661dd 100644
--- a/docs/Doxyfile
+++ b/docs/Doxyfile
@@ -32,19 +32,19 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.
-PROJECT_NAME = NeMo
+PROJECT_NAME = SuperNeMo
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER =
+PROJECT_NUMBER = 0.1.2_d
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.
-PROJECT_BRIEF =
+PROJECT_BRIEF = "A parallel discrete event simulation of neuromorphic hardware"
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
@@ -58,7 +58,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.
-OUTPUT_DIRECTORY = /Users/mplagge/development/NeMo/docs
+OUTPUT_DIRECTORY = .
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
# directories (in 2 levels) under the output directory of each output format and
@@ -781,7 +781,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
-INPUT = /Users/mplagge/development/NeMo
+INPUT = ../src
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
diff --git a/qt.sh b/qt.sh
new file mode 100755
index 0000000..42ecf78
--- /dev/null
+++ b/qt.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+while read line; do
+ ((histogram[${#line}]++))
+done < demo.csv
+
+echo "Length Occurrence"
+for length in "${!histogram[@]}"; do
+ printf "%-6s %s\n" "${length}" "${histogram[$length]}"
+done
diff --git a/scripts/api_bio_gen.c.py b/scripts/api_bio_gen.c.py
new file mode 100644
index 0000000..e69de29
diff --git a/scripts/api_def.py b/scripts/api_def.py
new file mode 100644
index 0000000..34049e4
--- /dev/null
+++ b/scripts/api_def.py
@@ -0,0 +1,153 @@
+from functools import reduce
+
+
+def subCSV(xx, yy):
+ return str(xx) + "," + str(yy)
+
+
+class TN:
+ type = "TN"
+ coreID = 0
+ localID = 0
+ synapticConnectivity = []
+ g_i = [] # type of ith neuron
+ sigmaG = [] # sign of ith neuron
+ S = [] # synaptic weight table
+ b = [] # deterministic / stochastic mode select (integration, per weight)
+ epsilon = 0 # monotonic/divergent leak selection
+ sigma_lmbda = -1 # leak sign bit
+ lmbda = 0 # Leak value
+ c = 0 # selects between stochastic leak and det. leak mode.
+ alpha = 0 # positive threshold
+ beta = 0 # negative threshold
+ TM = 0 # encoded pseudo-random number mask: (2^TM - 1)
+ VR = 0 # encoded reset potential: sigma^VR (2^VR -1)
+ sigmaVR = 0 # reset voltage sign bit
+ gamma = 0 # Vj(t) reset mode
+ kappa = 0 # negative reset mode, sets negative threshold mode to reset or saturate
+ signalDelay = 0 # TN Signal Delay option.
+ destCore = 0 # dest simulation core
+ destLocal = 0 # dest simulation neuron
+ outputNeuron = 0 # is this a neuron that belongs to an output layer?
+ selfFiring = 0 # is this neuron capable of spontaneous firing?
+
+ def __init__(self, numSynapsesPerCore, weightsPerNeuron):
+ """Creates a connected neuron with random weights, no leak, and a threshold of 10."""
+ self.synapticConnectivity = [0] * numSynapsesPerCore
+ self.g_i = [0] * numSynapsesPerCore # [random.randint(0,4)],size=256)
+ self.sigmaG = [1] * weightsPerNeuron
+ self.S = [1] * weightsPerNeuron
+ self.synaptic_weights = [0] * weightsPerNeuron # random.randint(0,5,size=4)
+ self.b = [0] * 4
+ self._numSyns = numSynapsesPerCore
+
+ def sanity_check(self):
+ assert (len(self.g_i) == len(self.synapticConnectivity))
+ assert (len(self.g_i) == self._numSyns)
+
+ def to_csv(self):
+ self.sanity_check()
+ os = lambda xx, yy: str(xx) + "," + str(yy)
+
+ ocsv = "{},{},{},".format(self.type, self.coreID, self.localID)
+ for elms in [self.synapticConnectivity, self.g_i, self.sigmaG, self.S, self.b]:
+ ocsv += reduce(os, elms) + ","
+ for var in [self.epsilon,
+ self.sigma_lmbda,
+ self.lmbda,
+ self.c,
+ self.alpha,
+ self.beta,
+ self.TM,
+ self.VR,
+ self.sigmaVR,
+ self.gamma,
+ self.kappa,
+ self.signalDelay,
+ self.destCore,
+ self.destLocal,
+ self.outputNeuron]:
+ ocsv += "{},".format(var)
+
+ ocsv += str(self.selfFiring) + "\n" # final
+
+ return ocsv
+
+ return out
+
+
+class ConfigFile:
+ neuron_list = []
+
+ ns_cores = 1024
+ neurons_per_core = 256
+ neuron_weight_count = 4
+
+ def add_neuron(self, neuron):
+ self.neuron_list.append(neuron)
+
+ def to_csv(self):
+ out = ""
+ out += str(self.ns_cores) + "\n"
+ out += str(self.neurons_per_core) + "\n"
+ out += str(self.neuron_weight_count) + "\n"
+ for n in self.neuron_list:
+ out += n.to_csv()
+ return out
+
+ def save_csv(self, filename):
+ with open(filename, 'w') as f:
+ f.write(self.to_csv())
+
+
+if __name__ == '__main__':
+ print("Generate a tonic spiking neuron demo file (demo.csv) from the API.")
+ n0 = TN(256, 4)
+ n0.synapticConnectivity = [1] + ([0] * 255)
+ print("SC Size is: " + str(len(n0.synapticConnectivity)))
+ n0.S = [3, 0, 0, 0]
+ n0.epsilon = 0
+ n0.lmbda = 0
+ n0.c = 0
+ n0.alpha = 32
+ n0.beta = 0
+ n0.TM = 0
+ n0.sigmaVR = 1
+ n0.VR = 0
+ n0.kappa = 1
+ n0.gamma = 0
+ n0.outputNeuron = 1
+ n0.selfFiring = 1
+ n0.destCore = 0
+ n0.destLocal = 0
+ n0.sigmaG = [1, 1, 1, 1]
+ n0.g_i = [1] * 256
+ n0.g_i[0] = 0
+
+ # loopback neurons - one fires when msg got in core 1 to core 1, other fires to core 0
+ n1 = TN(256, 4)
+ n1.synapticConnectivity = [1] * 256
+ n1.S = [1, 1, 1, 1]
+ n1.alpha = 1
+ n1.destCore = 0
+ n1.destLocal = 0
+ n1.coreID = 1
+ n1.localID = 0
+ n1.g_i = [1] * 256
+
+ n2 = TN(256, 4)
+ n2.synapticConnectivity = [1] * 256
+ n2.S = [1, 1, 1, 1]
+ n2.alpha = 1
+ n2.destCore = 1
+ n2.destLocal = 0
+ n2.coreID = 1
+ n2.localID = 1
+ n2.g_i = [0, 1, 2, 3] * 64
+
+ n0CSV = n0.to_csv()
+
+ with open("demo_ts.csv", 'w') as f:
+ f.write(n0CSV)
+ f.write(n1.to_csv())
+ f.write(n2.to_csv())
diff --git a/scripts/api_gen.py b/scripts/api_gen.py
new file mode 100644
index 0000000..54823b9
--- /dev/null
+++ b/scripts/api_gen.py
@@ -0,0 +1,101 @@
+"""A quick and dirty script that creates configuration 'files' for NeMo. """
+import itertools
+from functools import reduce
+import random
+def rl(n,x=4):
+ return random.sample(list(range(x)) * (2*n), n)
+ return [random.randint(0,4) for i in range(0,10000)]
+class TN:
+ type = "TN"
+ core_id = 0
+ local_id = 0
+ connectivity = []
+ synapse_type = []
+ sign_g = [1,1,-1,-1]
+ sign_l = -1
+ sign_vr = 1
+ alpha = 1
+ beta = 2
+ synaptic_weights = []
+
+ leak = 0
+ deterministic = 1
+ monotonic = 1
+ TM = 1001
+ VR = 0
+
+ def __init__(self):
+ """Creates a connected neuron with random weights, no leak, and a threshold of 10."""
+ self.connectivity = [1] * 256
+ self.synapse_type = rl(256) #[random.randint(0,4)],size=256)
+ self.sign_bits = 1,1,-1,-1
+ self.synaptic_weights = rl(256,5) #random.randint(0,5,size=4)
+
+
+ def to_csv(self):
+ os = lambda xx,yy: str(xx) + "," + str(yy)
+ out = ""
+ out += self.type + ","
+ out += "{},{},".format(self.core_id,self.local_id)
+ out += reduce(os,self.connectivity) + ","
+ out += reduce(os,self.synapse_type) + ","
+ out += reduce(os,self.sign_bits) + ","
+ out += reduce(os,self.synaptic_weights) + ","
+ out += str(self.leak) + ","
+ out += str(self.deterministic) + ","
+ out += str(self.monotonic) + ","
+ out += str(self.alpha) + ","
+ out += str(self.beta) + ','
+# out += str(self.M) + ','
+ out += str(self.TM) + '\n'
+# out += str(self.Vrst) + ','
+# out += str(self.VRJ) + '\n'
+# out += "\n"
+
+ return out
+
+
+
+class ConfigFile:
+ neuron_list = []
+
+ ns_cores = 1024
+ neurons_per_core = 256
+ neuron_weight_count = 4
+
+
+
+
+ def add_neuron(self, neuron):
+ self.neuron_list.append(neuron )
+
+ def to_csv(self):
+ out = ""
+ out += str(self.ns_cores) + "\n"
+ out += str(self.neurons_per_core) + "\n"
+ out += str(self.neuron_weight_count) + "\n"
+ for n in self.neuron_list:
+ out += n.to_csv()
+ return out
+
+ def save_csv(self, filename):
+ with open(filename,'w') as f:
+ f.write(self.to_csv())
+
+if __name__ == '__main__':
+ #create a file with one neuron for testing.
+ cfg = ConfigFile()
+
+# for i in range(0, 4096)
+ for core in range(0,4096):
+ for neuron in range(0,256):
+ n1 = TN()
+ n1.core_id = core
+ n1.local_id = neuron
+ cfg.add_neuron(n1)
+# print(cfg.to_csv())
+ print("Created neurons. Saving....")
+ cfg.save_csv("demo.csv")
+
+
+
diff --git a/scripts/api_gen2.py b/scripts/api_gen2.py
new file mode 100644
index 0000000..1d92949
--- /dev/null
+++ b/scripts/api_gen2.py
@@ -0,0 +1,65 @@
+import itertools
+from functools import reduce
+import random
+import numpy as np
+from joblib import Parallel, delayed
+
+def rl(n,x=4):
+ return np.random.randint(x, size=n)
+ return random.sample(list(range(x)) * (2*n), n)
+ return [random.randint(0,4) for i in range(0,10000)]
+
+def newTN(cd):
+ coret = cd[0]
+ idt = cd[1]
+ ttp = "TN"
+ core_id = coret
+ local_id = idt
+ connectivity = []
+ synapse_type = []
+ sign_g = [1,1,-1,-1]
+ sign_l = -1
+ sign_vr = 1
+ alpha = 1
+ beta = 2
+ synaptic_weights = []
+ leak = 0
+ deterministic = 1
+ monotonic = 1
+ TM = 1010010
+ VR = 0
+ connectivity = [1] * 256
+ synapse_type = rl(256) #[random.randint(0,4)],size=256)
+ sign_bits = 1,1,-1,-1
+ synaptic_weights = rl(256,5) #random.randint(0,5,size=4)
+ os = lambda xx,yy: str(xx) + "," + str(yy)
+
+ out = ""
+ out += ttp + ","
+ out += "{},{},".format(core_id,local_id)
+ out += reduce(os,connectivity) + ","
+ out += reduce(os,synapse_type) + ","
+ out += reduce(os,sign_bits) + ","
+ out += reduce(os,synaptic_weights) + ","
+ out += str(leak) + ","
+ out += str(deterministic) + ","
+ out += str(monotonic) + ","
+ out += str(alpha) + ","
+ out += str(beta) + ','
+ out += str(TM) + '\n'
+
+ return np.array(out)
+
+cores = [x for x in range(0,2048)]
+neurons = [x for x in range(0,256)]
+
+def fun1(c,n):
+ return "ASDF"
+
+
+ns = Parallel(n_jobs=8)(delayed (newTN)(c) for c in itertools.product(cores,neurons))
+print("Neuron Defs Created (demo). creating CSV file.")
+with open('demo.csv', 'w') as f:
+ for i in ns:
+ f.write(i.tolist())
+
diff --git a/scripts/bistable_spike.json b/scripts/bistable_spike.json
new file mode 100644
index 0000000..3a99650
--- /dev/null
+++ b/scripts/bistable_spike.json
@@ -0,0 +1,309 @@
+{
+ /* General model parameters */
+ "model":{
+ "coreCount":1,
+ "neuronclass":"NeuronGeneral",
+ "crossbarSize":256,
+ "crossbarclass":"CrossbarBinary",
+ "buildKey64":"20170327T143805_CPEmakeModel_213A10AB336C38041986EBF259C130B0B4E",
+ "networking":"INTRA",
+ "useCrossbarPrototypes":true
+ },
+ /* Crossbar type library */
+ "crossbarTypes":[
+ {
+ "name":"coreProt0000001",
+ "crossbar":{
+ /* Row parameters */
+ "rows":[
+ /* Parameters */
+ {"type":"S0","synapses":"80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"}
+ ]
+ }
+ }
+ ],
+ /* Neuron type library */
+ "neuronTypes":[
+ {"name":"N00000001","class":"NeuronGeneral","sigma0":1,"sigma1":-1,"sigma2":1,"sigma3":1,"s0":1,"s1":200,"s2":0,"s3":0,"b0":false,"b1":false,"b2":false,"b3":false,"sigma_lambda":1,"lambda":15,"c_lambda":false,"epsilon":true ,"alpha":100,"beta":0,"TM":0,"gamma":0,"kappa":true ,"sigma_VR":1,"VR":1,"V":0}
+ ],
+ /* Core parameters */
+ "core":{
+ "metadata":{
+ "coreletClass":"bistable_spike",
+ "coreletId":0,
+ "coreNumber":0,
+ "parentCoreletId":[-1]
+ },
+ "id":0,
+ "timeScaleExponent":0,
+ "rngSeed":4294967295,
+ /* Core neuron connectivity parameters */
+ "neurons":{
+ /* Parameters */
+ "dendrites":[0,"1:255"],
+ "types":[1,"0x255"],
+ "destCores":[-32,"-1x255"],
+ "destAxons":[0,"0x255"],
+ "destDelays":[1,"1x255"]
+ },
+ /* Core crossbar parameters */
+ "crossbar":{
+ "name":"coreProt0000001"
+ }
+ }
+}
diff --git a/scripts/checkModel.py b/scripts/checkModel.py
new file mode 100644
index 0000000..e69de29
diff --git a/scripts/read_TN_json.py b/scripts/read_TN_json.py
new file mode 100644
index 0000000..206aff4
--- /dev/null
+++ b/scripts/read_TN_json.py
@@ -0,0 +1,457 @@
+
+import copy
+import typing
+from typing import List
+import re
+import jsoncomment.package.comments as comments
+from collections import OrderedDict
+import numpy as np
+import json
+from jsoncomment import JsonComment
+from api_def import TN
+
+""" JSON REMOVE COMMMENTS"""
+import re
+
+""" MAIN APPLICATION """
+
+vnames = ["name", "cls" "sigmas", "s", "b", "sigma_lambda", "lambd", "c_lambda",
+ "epsilon", "alpha", "beta", "TM", "gamma", "kappa", "sigmaVR", "VR", "V"]
+
+
+class Model():
+ neuronClass = "NeuronGeneral"
+
+
+class NeuronType():
+ def __init__(self, model, name, sigmas, s, b, sigma_lambda, lambd, c_lambda, epsilon, alpha,
+ beta, TM, gamma, kappa, sigmaVR, VR, V, cls=""):
+ vvals = [name, sigmas, s, b, sigma_lambda, lambd, c_lambda, epsilon, alpha,
+ beta, TM, gamma, kappa, sigmaVR, VR, V, cls]
+
+ self.model = model
+ if cls == "":
+ cls = model.neuronClass
+ self.params = dict((vname, vval) for vname, vval in zip(vnames, vvals))
+
+
+class Core():
+ def __init__(self, id, rngSeed, neurons, crossbar):
+ params = {}
+ self.id = id
+ self.rngSeed = rngSeed
+ self.neurons = neurons
+ self.crossbar = crossbar
+
+
+def NeuronGeneral():
+ sigmas = [1, 1, 1, 1]
+ s = [0, 0, 0, 0]
+ b = False
+ sigma_lambda = -1
+ lambd = 0
+ c_lambda = False
+ epsilon = False
+ alpha = 256
+ beta = 0
+ TM = 0
+ gamma = 0
+ kappa = False
+ sigmaVR = 1
+ VR = 1
+ vvals = [sigmas, s, b, sigma_lambda, lambd, c_lambda, epsilon, alpha,
+ beta, TM, gamma, kappa, sigmaVR, VR]
+
+ return vvals
+
+
+def DefaultNeuronClasses(className="NeuronGeneral"):
+ sigmas, s, b, sigma_lambda, lambd, c_lambda, epsilon, \
+ alpha, beta, TM, gamma, kappa, sigmaVR, VR = eval(className + "()")
+
+ vvals = [sigmas, s, b, sigma_lambda, lambd, c_lambda, epsilon, alpha,
+ beta, TM, gamma, kappa, sigmaVR, VR]
+
+ mnames = ["sigmas", "s", "b", "sigma_lambda", "lambd", "c_lambda", "epsilon", "alpha",
+ "beta", "TM", "gamma", "kappa", "sigmaVR", "VR"]
+ return dict((vname, vval) for vname, vval in zip(mnames, vvals))
+
+
+def hex_byte_to_bits(hex_byte):
+ binary_byte = bin(int(hex_byte, base=16))
+ # Use zfill to pad the string with zeroes as we want all 8 digits of the byte.
+ bits_string = binary_byte[2:].zfill(8)
+ return [int(bit) for bit in bits_string]
+
+
+def parseCrossbar(crossbarDef, n=256):
+
+ getType = lambda typeStr: int(typeStr[1])
+ crossbars = {}
+ for c in crossbarDef:
+ name = c['name']
+ cb = c['crossbar']
+ rowID = 0
+ synapseTypes = [0] * n
+ connectivityGrid = [[]] * n
+
+ for row in cb['rows']:
+ synapseTypes[rowID] = getType(row['type'])
+ superNintendoChalmers = row['synapses'].split(' ')
+ superNintendoChalmers = [val for sl in [hex_byte_to_bits(byte) for byte in superNintendoChalmers]
+ for val in sl]
+ connectivityGrid[rowID] = superNintendoChalmers # [bool(bit) for bit in superNintendoChalmers]
+ rowID += 1
+ crossbars[name] = [synapseTypes, connectivityGrid]
+
+ return crossbars
+
+
+def getConnectivityForNeuron(crossbarDat, crossbarName, neuronID):
+ cb = crossbarDat[crossbarName]
+ connectivity = cb[1]
+ neuronConnectivity = []
+
+ for row in connectivity:
+ neuronConnectivity.append(row[neuronID])
+ return neuronConnectivity
+
+
+def getSynapseTypesForNeuron(crossbarDat, crossbarName):
+ cb = crossbarDat[crossbarName]
+ types = cb[0]
+ typeMap = []
+ for row in types:
+ typeMap.append(row)
+
+
+# def createNeuronfromNeuronTemplate(neuronObject:TN, coreID:int, localID:int, synapticConnectivity:List[int])->TN:
+
+
+def createNeuronfromNeuronTemplate(neuronObject, coreID, localID, synapticConnectivity, typeList):
+ n = copy.deepcopy(neuronObject)
+ n.coreID = coreID
+ n.localID = localID
+ n.synapticConnectivity = synapticConnectivity
+ n.g_i = typeList
+
+ return n
+
+
+def createNeuronTemplateFromEntry(line, nSynapses=256, weights=4):
+ neuron = TN(nSynapses, weights)
+ sigmas = []
+ s = []
+ b = []
+ for i in range(0, weights):
+ sigmas.append(line[f'sigma{i}'])
+ s.append(line[f's{i}'])
+ bs = line[f'b{i}']
+ bs = 0 if bs == False else 1
+
+ b.append(bs)
+
+ neuron.S = s
+ neuron.sigmaG = sigmas
+ neuron.epsilon = line['epsilon']
+ neuron.sigma_lmbda = line['sigma_lambda']
+ neuron.lmbda = line['lambda']
+ neuron.c = line['c_lambda']
+ neuron.epsilon = line['epsilon']
+ neuron.alpha = line['alpha']
+ neuron.beta = line['beta']
+ neuron.TM = line['TM']
+ neuron.gamma = line['gamma']
+ neuron.kappa = line['kappa']
+ neuron.sigmaVR = line['sigma_VR']
+ neuron.VR = line['VR']
+ neuron.membrane_potential = line["V"]
+
+ return neuron
+
+
+def getNeuronModels(neuronTypes, nsynapses=256, nweights=4):
+ neuronTemplates = {}
+ for name, vals in zip(neuronTypes.keys(), neuronTypes.values()):
+ name = name.replace("N","")
+ neuronTemplates[name] = createNeuronTemplateFromEntry(vals, nsynapses, nweights)
+ neuronTemplates[name].nnid = int(name)
+ return neuronTemplates
+
+
+
+def uniqueify(jsData):
+ coreCount = 0
+
+ jsLines = [] # jsData.split()
+
+ for l in jsData.split():
+ if "core" in l:
+ line = str.replace(l, '"core"', f'"core{coreCount}"')
+ coreCount += 1
+ else:
+ line = l
+ jsLines.append(line)
+
+ jsData = ""
+ for l in jsLines:
+ jsData += l
+ return jsData
+
+
+def tnJSONHandler(di):
+ if 'coreCount' in di.keys():
+ model = Model()
+ model.params = di
+ return model
+
+ if 'crossbar' in di.keys():
+ return {'crossbarTypes': di}
+
+ return di
+
+
+
+
+def make_unique(key, dct):
+ counter = 0
+ unique_key = key
+
+ while unique_key in dct:
+ counter += 1
+ unique_key = '{}_{}'.format(key, counter)
+ return unique_key
+
+
+def parse_object_pairs(pairs):
+ dct = OrderedDict()
+ for key, value in pairs:
+ if key in dct:
+ key = make_unique(key, dct)
+ dct[key] = value
+
+ return dct
+
+
+def readTN(filename):
+ # with open(filename, 'r') as f:
+ # data = f.readLines()
+
+ data = open(filename, 'r').readlines()
+
+ data = comments.json_preprocess(data)
+
+ # tnData = json.loads(data)
+ #tnData = json.load(open(filename, 'r'), object_pairs_hook=tnJSONHandler)
+ tnData = json.loads(data, object_pairs_hook=parse_object_pairs)
+
+
+
+ mdl = tnData['model']
+ crossbarDat = tnData["crossbarTypes"]
+ coreDat = []
+ for k in tnData.keys():
+ if "core" in k:
+ coreDat.append(tnData[k])
+
+ cbid = 0
+ #go through cores and find any non-prototye crossbars and put them in the
+ for core in coreDat:
+ if 'name' not in core['crossbar'].keys():
+ v = {}
+ core['crossbar']['name'] = f"cb{cbid}"
+
+ crossbarDat.append({'crossbar':core['crossbar'], 'name':f"cb{cbid}"})
+ cbid += 1
+
+
+
+
+ model = Model()
+ model.params = mdl
+ model.neuronClass = mdl['neuronclass']
+ neuronTypes = {}
+
+ for nt in tnData['neuronTypes']:
+
+ neuronTypes[nt['name']] = DefaultNeuronClasses(nt['class'])
+ # filtered = dict((k,val) for k,val in zip(nt.keys(), nt.values()) if k!= 'name')
+ # for k,v in filtered:
+ # neuronTypes[nt['name']][k] = v
+ neuronTypes[nt['name']] = dict((k, v) for k, v in zip(nt.keys(), nt.values()) if k != 'name')
+
+ defaults = DefaultNeuronClasses(nt['class'])
+ for k, v in zip(defaults.keys(), defaults.values()):
+
+ if k not in neuronTypes[nt['name']]:
+ neuronTypes[nt['name']][k] = v
+
+ neuronTypesTrim = {}
+
+ for nk in neuronTypes.keys():
+ n_num = nk.replace('N','')
+ neuronTypes[nk]['nid'] = int(n_num)
+
+ crossbarDat = parseCrossbar(crossbarDat, mdl['crossbarSize'])
+ return (mdl, neuronTypes, crossbarDat, coreDat)
+
+
+def getRange(jItem,start=0):
+ return getRangeAndValue(jItem, start)[0]
+
+def getRangeAndValue(jItem, start=0):
+ stm = start
+
+
+ inc = 1
+ if jItem.count(':') == 1:
+ start = int( jItem.split(":")[0])
+ end = int(jItem.split(":")[1])
+ value = 0
+ stm += 1
+ elif jItem.count(":") == 2:
+ sp = jItem.split(":")
+ value = int(sp[0])
+ end = int(sp[2])
+ inc = int(sp[1])
+ elif jItem.count('x') == 1:
+ sp = jItem.split("x")
+ value = int(sp[0])
+ end = int(sp[1])
+ else:
+ print("jItem")
+ end = int(jItem)
+ value = -1
+
+ end = end + stm
+
+ return [np.arange(start,end,inc),value]
+
+def getNeuronTypeList(typeList):
+ types = [-1] * 256 #create NULL neuron list (-1 is null)
+ pos = 0
+ for typeDef in typeList:
+ tp = int(typeDef.split('x')[0])
+ for i in getRange(typeDef,pos):
+ types[i] = tp
+ pos += 1
+ return types
+
+def getNeuronDendrites(dendList):
+ dendrites = [-1] * 256
+ pos = 0
+ for denditm in dendList:
+ rng,value = getRangeAndValue(denditm, pos)
+ for i in rng:
+ dendrites[pos] = value
+ pos += 1
+ return dendrites
+
+
+def getNeuronDestCores(destList):
+ return getNeuronDendrites(destList)
+ destCores = [-1] * 256
+ pos = 0
+ for dCore in destList:
+ rng, value = getRangeAndValue(dCore, pos)
+ for _ in rng:
+ destCores[pos] = value
+ pos += 1
+
+ return destCores
+
+def getNeuronDestAxons(ll):
+ destAxons = [0] * 256
+ axonloc = 0
+ for axon in ll:
+ rng, value = getRangeAndValue(axon, 0)
+ for v in rng:
+ destAxons[axonloc] = v
+ axonloc += 1
+ return destAxons
+
+def getNeuronDelays(ll):
+ return getNeuronTypeList(ll)
+
+def getNeuronFromID(id, neuronList):
+
+ for k,v in zip(neuronList.keys(), neuronList.values()):
+ pass
+
+
+
+"""Per Neuron CSV for NeMo.
+ CSV format is:
+ type, coreID, localID, connectivityGrid, synapseTypes
+ sigma, S, b,
+ epsilon, sigma_l, lambda, c, alpha, beta, TN, VR, sigmaVR, resetVoltage,encodedResetVotage,
+ resteMode, kappa, signaldelay, destCore, destLocal
+ isOutputNeuron, isSelfFiring, isActive
+"""
+
+
+def createTNNeMoCSV(filename):
+ model, neuronTypes, crossbars, cores = readTN(filename)
+ crossbarSize = model['crossbarSize']
+
+ neuronTemplates = getNeuronModels(neuronTypes)
+
+ nullNeuron = TN(256,4)
+ nullNeuron.S =[0,0,0,0]
+
+ neurons = []
+ #set up neurons for cores:
+ ntmp = {}
+ for nt in neuronTemplates.values():
+ ntmp[nt.nnid] = nt
+
+ neuronTemplates = ntmp
+
+ for core in cores:
+ crossbar = crossbars[core['crossbar']['name']]
+ coreNeuronTypes = getNeuronTypeList(core['neurons']['types'])
+ dendriteCons = getNeuronDendrites(core['neurons']['dendrites'])
+ destCores = getNeuronDestCores(core['neurons']['destCores'])
+ destAxons = getNeuronDestAxons(core['neurons']['destAxons'])
+ destDelays = getNeuronDelays(core['neurons']['destDelays'])
+
+ coreID = core['id']
+
+ #synapse types:
+ tl = crossbar[0]
+
+ #core data configured, create neurons for this core:
+ for i in range(0,256):
+ #get synaptic connectivity col for this neuron:
+ connectivity = np.array(crossbar[1])[:,i]
+
+ neuron = createNeuronfromNeuronTemplate(neuronTemplates[coreNeuronTypes[i]],coreID,i,connectivity,tl)
+ neuron.destCore = destCores[i]
+ neuron.destLocal = destAxons[i]
+ neuron.signalDelay = destDelays[i]
+ neurons.append(neuron)
+
+
+
+
+
+
+
+
+
+
+
+ return "d"
+
+
+if __name__ == '__main__':
+ mdl = Model()
+
+ nt = NeuronType(model=mdl, name="Tester", sigmas=[1, 2, 3, 4], s=[1, 2, 3, 4], b=[False, False, False, False],
+ sigma_lambda=-1,
+ lambd=0, c_lambda=0, epsilon=False, alpha=10, beta=0, TM=18, gamma=2, kappa=False, sigmaVR=1, VR=4,
+ V=0, cls="TestNeuron")
+
+
+ ns = createTNNeMoCSV('sobel.json')
+ print(ns)
diff --git a/scripts/sobel.json b/scripts/sobel.json
new file mode 100644
index 0000000..ae10ea9
--- /dev/null
+++ b/scripts/sobel.json
@@ -0,0 +1,594 @@
+{
+
+ "model":{
+ "coreCount":2,
+ "neuronclass":"NeuronGeneral",
+ "crossbarSize":256,
+ "crossbarclass":"CrossbarBinary",
+ "buildKey64":"20170330T152520_CPEmakeModel_CE6DFF179E772D12848395E10455822F248",
+ "networking":"INTRA",
+ "useCrossbarPrototypes":true
+ },
+
+ "crossbarTypes":[
+ {
+ "name":"coreProt0000001",
+ "crossbar":{
+
+ "rows":[
+
+ {"type":"S0","synapses":"00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 80 00 00 00 00 00 80 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 20 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 10 00 00 00 00 00 10 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 08 00 00 00 00 00 08 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 04 00 00 00 00 00 04 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 80 00 00 00 00 00 80 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 20 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 10 00 00 00 00 00 10 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 08 00 00 00 00 00 08 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 04 00 00 00 00 00 04 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 80 00 00 00 00 00 80 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 20 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 10 00 00 00 00 00 10 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 08 00 00 00 00 00 08 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 04 00 00 00 00 00 04 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 80 00 00 00 00 00 80 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 20 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 10 00 00 00 00 00 10 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 08 00 00 00 00 00 08 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 04 00 00 00 00 00 04 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02"},
+ {"type":"S1","synapses":"00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 50 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 40 00 40 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 28 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 20 00 20 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 14 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 10 00 10 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 08 00 08 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 A0 00 00 00 00 00 A0 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 50 00 00 00 00 00 50 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 40 00 40 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 28 00 00 00 00 00 28 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 20 00 20 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 14 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 10 00 10 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 0A 00 00 00 00 00 0A 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 08 00 08 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 05 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 A0 00 00 00 00 00 A0 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 50 00 00 00 00 00 50 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 40 00 40 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 28 00 00 00 00 00 28 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 20 00 20 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 14 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 10 00 10 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 0A 00 00 00 00 00 0A 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 08 00 08 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 05 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 A0 00 00 00 00 00 A0 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 50 00 00 00 00 00 50 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 40 00 40 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 28 00 00 00 00 00 28 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 20 00 20 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 14 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 10 00 10 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 0A 00 00 00 00 00 0A 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 08 00 08 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 05 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 40 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 A0 00 00 00 00 00 A0 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 50 00 00 00 00 00 50 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 40 00 40 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 28 00 00 00 00 00 28 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 20 00 20 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 14 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 10 00 10 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 0A 00 00 00 00 00 0A 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 08 00 08 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 05 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 40 00 40"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 20 00 20"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 10 00 10"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 08 00 08"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 40 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 20 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 10 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 08 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00"},
+ {"type":"S1","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 40 00 40 00 00 00 00 00 10 00 10 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 20 00 20 00 00 00 00 00 08 00 08 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 10 00 10 00 00 00 00 00 04 00 04 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 08 00 08 00 00 00 00 00 02 00 02 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 04 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00 00"},
+ {"type":"S2","synapses":"00 A0 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 00 00 00"},
+ {"type":"S2","synapses":"00 50 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 40 00 40 00 00 00 00 00 10 00 10 00 00 00 00"},
+ {"type":"S2","synapses":"00 28 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 20 00 20 00 00 00 00 00 08 00 08 00 00 00 00"},
+ {"type":"S2","synapses":"00 14 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 10 00 10 00 00 00 00 00 04 00 04 00 00 00 00"},
+ {"type":"S2","synapses":"00 0A 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 08 00 08 00 00 00 00 00 02 00 02 00 00 00 00"},
+ {"type":"S2","synapses":"00 05 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 04 00 04 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00"},
+ {"type":"S2","synapses":"00 00 A0 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 00 00"},
+ {"type":"S2","synapses":"00 00 50 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 40 00 40 00 00 00 00 00 10 00 10 00 00 00"},
+ {"type":"S2","synapses":"00 00 28 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 20 00 20 00 00 00 00 00 08 00 08 00 00 00"},
+ {"type":"S2","synapses":"00 00 14 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 10 00 10 00 00 00 00 00 04 00 04 00 00 00"},
+ {"type":"S2","synapses":"00 00 0A 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 08 00 08 00 00 00 00 00 02 00 02 00 00 00"},
+ {"type":"S2","synapses":"00 00 05 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 04 00 04 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 00"},
+ {"type":"S2","synapses":"00 00 00 A0 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 00"},
+ {"type":"S2","synapses":"00 00 00 50 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 40 00 40 00 00 00 00 00 10 00 10 00 00"},
+ {"type":"S2","synapses":"00 00 00 28 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 20 00 20 00 00 00 00 00 08 00 08 00 00"},
+ {"type":"S2","synapses":"00 00 00 14 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 10 00 10 00 00 00 00 00 04 00 04 00 00"},
+ {"type":"S2","synapses":"00 00 00 0A 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 08 00 08 00 00 00 00 00 02 00 02 00 00"},
+ {"type":"S2","synapses":"00 00 00 05 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 04 00 04 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00"},
+ {"type":"S2","synapses":"00 00 00 00 A0 00 00 00 00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00"},
+ {"type":"S2","synapses":"00 00 00 00 50 00 00 00 00 00 00 00 00 00 50 00 00 00 00 00 40 00 40 00 00 00 00 00 10 00 10 00"},
+ {"type":"S2","synapses":"00 00 00 00 28 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 20 00 20 00 00 00 00 00 08 00 08 00"},
+ {"type":"S2","synapses":"00 00 00 00 14 00 00 00 00 00 00 00 00 00 14 00 00 00 00 00 10 00 10 00 00 00 00 00 04 00 04 00"},
+ {"type":"S2","synapses":"00 00 00 00 0A 00 00 00 00 00 00 00 00 00 0A 00 00 00 00 00 08 00 08 00 00 00 00 00 02 00 02 00"},
+ {"type":"S2","synapses":"00 00 00 00 05 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 04 00 04 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40"},
+ {"type":"S2","synapses":"00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20"},
+ {"type":"S2","synapses":"00 00 00 00 00 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00 00 00 10 00 10"},
+ {"type":"S2","synapses":"00 00 00 00 00 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 00 00 00 00 08 00 08"},
+ {"type":"S2","synapses":"00 00 00 00 00 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 10 00 00 00 00 00 04 00 04"},
+ {"type":"S2","synapses":"00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 08 00 00 00 00 00 02 00 02"},
+ {"type":"S2","synapses":"00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 04 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00"},
+ {"type":"S2","synapses":"00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 80 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 20 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 10 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 08 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 04 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 01 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 80 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 20 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 10 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 08 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 04 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 01 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 80 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 20 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 10 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 08 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 04 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 01 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 80 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 40 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 20 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 10 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 08 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 04 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 01 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 10"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 08"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 04"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 02"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00"},
+ {"type":"S3","synapses":"00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00"}
+ ]
+ }
+ }
+ ],
+
+ "neuronTypes":[
+ {"name":"N00000001","class":"NeuronGeneral","sigma0":-1,"sigma1":-1,"sigma2":1,"sigma3":1,"s0":2,"s1":1,"s2":1,"s3":2,"b0":false,"b1":false,"b2":false,"b3":false,"sigma_lambda":1,"lambda":0,"c_lambda":false,"epsilon":false,"alpha":5,"beta":0,"TM":0,"gamma":1,"kappa":false,"sigma_VR":1,"VR":0,"V":0},
+ {"name":"N00000002","class":"NeuronGeneral","sigma0":1,"sigma1":1,"sigma2":1,"sigma3":1,"s0":1,"s1":1,"s2":1,"s3":1,"b0":false,"b1":false,"b2":false,"b3":false,"sigma_lambda":-1,"lambda":0,"c_lambda":false,"epsilon":true ,"alpha":1,"beta":0,"TM":0,"gamma":0,"kappa":true ,"sigma_VR":1,"VR":0,"V":0}
+ ],
+
+ "core":{
+ "metadata":{
+ "coreletClass":"filter8x8_corelet",
+ "coreletId":1,
+ "coreNumber":0,
+ "parentCoreletId":[0]
+ },
+ "id":0,
+ "timeScaleExponent":0,
+ "rngSeed":4294967295,
+
+ "neurons":{
+
+ "dendrites":["0:255"],
+ "types":["1x256"],
+ "destCores":["-32x64","-33x64","-34x64","-35x64"],
+ "destAxons":["0:63","0:63","0:63","0:63"],
+ "destDelays":["1x256"]
+ },
+
+ "crossbar":{
+ "name":"coreProt0000001"
+ }
+ },
+
+ "core":{
+ "metadata":{
+ "coreletClass":"splitter_corelet",
+ "coreletId":2,
+ "coreNumber":0,
+ "parentCoreletId":[1]
+ },
+ "id":1,
+ "timeScaleExponent":0,
+ "rngSeed":4294967295,
+
+ "neurons":{
+
+ "dendrites":["0:255"],
+ "types":["2x256"],
+ "destCores":["0x256"],
+ "destAxons":["0:64:192","1:64:193","2:64:194","3:64:195","4:64:196","5:64:197","6:64:198","7:64:199","8:64:200","9:64:201","10:64:202","11:64:203","12:64:204","13:64:205","14:64:206","15:64:207","16:64:208","17:64:209","18:64:210","19:64:211","20:64:212","21:64:213","22:64:214","23:64:215","24:64:216","25:64:217","26:64:218","27:64:219","28:64:220","29:64:221","30:64:222","31:64:223","32:64:224","33:64:225","34:64:226","35:64:227","36:64:228","37:64:229","38:64:230","39:64:231","40:64:232","41:64:233","42:64:234","43:64:235","44:64:236","45:64:237","46:64:238","47:64:239","48:64:240","49:64:241","50:64:242","51:64:243","52:64:244","53:64:245","54:64:246","55:64:247","56:64:248","57:64:249","58:64:250","59:64:251","60:64:252","61:64:253","62:64:254","63:64:255"],
+ "destDelays":["1x256"]
+ },
+
+ "crossbar":{
+
+ "rows":[
+
+ {"type":"S0","synapses":"F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"},
+ {"type":"S0","synapses":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"}
+ ]
+ }
+ }
+}
diff --git a/scripts/tn_json.py b/scripts/tn_json.py
new file mode 100644
index 0000000..de069eb
--- /dev/null
+++ b/scripts/tn_json.py
@@ -0,0 +1,16 @@
+import re
+import jsoncomment.package.comments as comments
+import copy
+import json
+
+import api_def
+from api_def import TN
+
+
+class tnModel():
+ def init(self, filename):
+ self.filename = filename
+
+
+
+ def loadFile(self):
\ No newline at end of file
diff --git a/scripts/true_north_csv/read_tn_json.py b/scripts/true_north_csv/read_tn_json.py
new file mode 100644
index 0000000..e69de29
diff --git a/scripts/true_north_csv/tn_def.py b/scripts/true_north_csv/tn_def.py
new file mode 100644
index 0000000..d93d383
--- /dev/null
+++ b/scripts/true_north_csv/tn_def.py
@@ -0,0 +1,118 @@
+import itertools
+from functools import reduce
+import numpy.random as random
+import numpy as np
+
+class TN:
+ type="TN"
+ coreID = 0
+
+ localID = 0
+ synapticConnectivity = []
+
+ g_i = [] # type of ith neuron
+ sigmaG = [] # sign of ith neuron
+ S = [] # synaptic weight table
+ b = [] # deterministic / stochastic mode select (integration, per weight)
+ epsilon = 0 # monotonic/divergent leak selection
+ sigma_lmbda = -1 # leak sign bit
+ lmbda = 0 # Leak value
+ c = 0 # selects between stochastic leak and det. leak mode.
+ alpha = 0 # positive threshold
+ beta = 0 # negative threshold
+ TM = 0 # encoded pseudo-random number mask: (2^TM - 1)
+ VR = 0 # encoded reset potential: sigma^VR (2^VR -1)
+ sigmaVR = 0 # reset voltage sign bit
+ gamma = 0 # Vj(t) reset mode
+ kappa = 0 # negative reset mode, sets negative threshold mode to reset or saturate
+ signalDelay = 0 # TN Signal Delay option.
+ destCore = 0 # dest simulation core
+ destLocal = 0 # dest simulation neuron
+ outputNeuron = 0 # is this a neuron that belongs to an output layer?
+ selfFiring = 0 # is this neuron capable of spontaneous firing?
+
+
+ def __init__(self, numSynapsesPerCore, weightsPerNeuron):
+ """Creates a connected neuron with random weights, no leak, and a threshold of 10."""
+ self.synapticConnectivity = [0] * numSynapsesPerCore
+ self.g_i = [0] * numSynapsesPerCore # [random.randint(0,4)],size=256)
+ self.sigmaG = [1] * weightsPerNeuron
+ self.S = [1] * weightsPerNeuron
+ self.synaptic_weights = [0] * weightsPerNeuron # random.randint(0,5,size=4)
+ self.b = [0] * 4
+ self._numSyns = numSynapsesPerCore
+
+
+
+
+ def to_csv(self):
+ self.sanity_check()
+ os = lambda xx, yy: str(xx) + "," + str(yy)
+ ocsv = "{},{},{},".format(self.type, self.coreID, self.localID)
+ for elms in [self.synapticConnectivity, self.g_i, self.sigmaG, self.S, self.b]:
+ ocsv += reduce(os, elms) + ","
+ for var in [self.epsilon,
+ self.sigma_lmbda,
+ self.lmbda,
+ self.c,
+ self.alpha,
+ self.beta,
+ self.TM,
+ self.VR,
+ self.sigmaVR,
+ self.gamma,
+ self.kappa,
+ self.signalDelay,
+ self.destCore,
+ self.destLocal,
+ self.outputNeuron]:
+ ocsv += f"{var}"
+
+ ocsv += f"{self.selfFiring} \n" # Final line of csv
+
+ return ocsv
+
+
+
+ def sanity_check(self):
+ assert (len(self.g_i) == len(self.synapticConnectivity))
+ assert (len(self.g_i) == self._numSyns)
+
+
+
+
+class ConfigFile:
+ neuron_list = []
+ ns_cores = 1024
+ neurons_per_core = 256
+ neuron_weight_count = 4
+
+ def __init__(self,neuronList,ns_cores=1024,neurons_per_core=256,neuron_weight_count=4):
+ #Set up the list of neurons:
+
+ for i in neuronList:
+ self.neuron_list.append(i)
+
+ def add_neuron(self, neuron):
+ self.neuron_list.append(neuron)
+
+ def to_csv(self):
+ out = ""
+ out += str(self.ns_cores) + "\n"
+ out += str(self.neurons_per_core) + "\n"
+ out += str(self.neuron_weight_count) + "\n"
+ for n in self.neuron_list:
+ out += n.to_csv()
+ return out
+
+ def save_csv(self, filename):
+ with open(filename, 'w') as f:
+ f.write(self.to_csv())
+
+
+
+
+
+def testNeuronFile():
+ #generates two cores - one is random, the other is a synaptic id matrix benchmark, connected to the first core.
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0af0a7d..a419d2c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,10 +1,16 @@
-cmake_minimum_required(VERSION 2.4)
+##cmake_minimum_required(VERSION 2.6)
project(NeMo)
enable_testing()
INCLUDE_DIRECTORIES(${ROSS_SOURCE_DIR} ${ROSS_BINARY_DIR})
set (CMAKE_EXPORT_COMPILE_COMMANDS 1 )
+find_package(MPI REQUIRED)
+include_directories(${MPI_INCLUDE_PATH})
+
+#SET(CMAKE_C_COMPILER mpicc)
+#SET(CMAKE_CXX_COMPILER mpicxx)
+
##NeMo uses a few C11 features, including generic macros. We assume standard C11
##behaviors.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
@@ -21,9 +27,10 @@ LIST(APPEND CMAKE_MODULE_PATH "${ROSS_SOURCE_DIR}/cmake/")
## Model Compile-Time Options (Will add more later)
set(NeMo_NEURONS_IN_CORE 256 CACHE STRING "The number of neurons in each simulated core")
set(NeMo_NUM_WEIGHTS_IN_NEURON 4 CACHE STRING "How many weights does a neuron have? (4 is TN default)")
-set(NeMo_SAVE_MSG FALSE CACHE BOOL "Save message paths to CSV or Couch? (debug messages)")
-set(NeMo_SAVE_MSG_COUCH FALSE CACHE BOOL "Save message paths directly to couch?")
-set(NeMo_COUCH_ADD "None" CACHE STRING "The IP address:PORT of the couch database if used")
+# set(NeMo_SAVE_MSG FALSE CACHE BOOL "Save message paths to CSV or Couch? (debug messages)")
+# set(NeMo_SAVE_MSG_COUCH FALSE CACHE BOOL "Save message paths directly to couch?")
+# set(NeMo_COUCH_ADD "None" CACHE STRING "The IP address:PORT of the couch database if used")
+#
set(SAVE_MSGS 0)
@@ -44,11 +51,6 @@ SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/nemo_config.h PROPERTIES
-
-
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-
-
#Source Files:
set(model_srcs
nemo_main.c
@@ -67,6 +69,8 @@ set(model_srcs
tests/synapse_test.c
tests/bio_validation.c
tests/mapping_tests.c
+ tests/testIO.h
+ tests/testIO.c
@@ -74,11 +78,15 @@ set(model_srcs
mapping.h
+ lib/csv.h
+ lib/libcsv.c
+
IO/IOStack.c
IO/IOStack.h
-
IO/output.h
IO/output.c
+ IO/input.h
+ IO/input.c
nemo_config.h
nemo_main.h )
diff --git a/src/IO/IOStack.h b/src/IO/IOStack.h
index b1211d2..c9d226b 100644
--- a/src/IO/IOStack.h
+++ b/src/IO/IOStack.h
@@ -6,6 +6,8 @@
#define NEMO_IOSTACK_H
#include
#include
+#include "input.h"
+#include "output.h"
#include "../globals.h"
@@ -15,8 +17,8 @@
void initOutFiles();
void closeFiles();
-void saveEvent(tw_stime timestamp, char sourceType, id_type core, id_type local,
- id_type destCore, id_type destLocal);
+//void saveEvent(tw_stime timestamp, char sourceType, id_type core, id_type local,
+// id_type destCore, id_type destLocal);
diff --git a/src/IO/csv.h b/src/IO/csv.h
deleted file mode 100644
index 78fa990..0000000
--- a/src/IO/csv.h
+++ /dev/null
@@ -1,13 +0,0 @@
-//
-// csv.h
-// ROSS_TOP
-//
-// Created by Mark Plagge on 6/24/16.
-//
-//
-
-#ifndef csv_h
-#define csv_h
-
-
-#endif /* csv_h */
diff --git a/src/IO/input.c b/src/IO/input.c
new file mode 100644
index 0000000..ebd9407
--- /dev/null
+++ b/src/IO/input.c
@@ -0,0 +1,444 @@
+//
+// Created by Mark Plagge on 2/21/17.
+//
+
+#include "input.h"
+static readStatus netReadStat;
+static fpos_t * CUR_NET_POS;
+FILE* networkFile;
+
+FILE * spikeFile;
+//menomization for file IO
+static int minCore = 0;
+static int maxCore = 0;
+static int * coreLoc[];
+
+struct spikeQ {
+ long double spikeTime;
+ id_type destCore;
+ id_type destAxon;
+ struct spikeQ *next_ptr;
+};
+
+//struct spikeQ *spikeList;
+
+spikeRecord * spikeList;
+
+/** Struct for managing full CSV read in */
+
+struct csvFullDat{
+ int fld_num;
+ enum neuronTypeVals type;
+ int core_id;
+ int local_id;
+ int line_num;
+};
+
+
+enum neuron_read_mode{
+ START_READ,
+ IN_ID,
+ IN_DAT,
+ OUT_ID,
+ END_READ
+};
+static enum neuron_read_mode readMode = START_READ;
+
+
+
+int openInputFiles(){
+ networkFile = fopen(networkFileName,"rb");
+ if (networkFile == NULL){
+ tw_error(TW_LOC, "Error opening network def "
+ "file %s, with error code %i.\n",networkFileName, errno);
+ }
+
+ spikeFile = fopen(spikeFileName, "rb");
+ if (spikeFile == NULL){
+ tw_error(TW_LOC, "Error opening spike def "
+ "file %s, with error code %i.\n",networkFileName, errno);
+ }
+ netReadStat = 0;
+ spikeList = NULL;
+
+
+
+ return 0;
+
+}
+
+int closeNetworkFile(){
+ fclose(networkFile);
+ return 0;
+}
+
+//void addSpike(spikeRecord *new){
+// spikeRecord *sp;
+// if(spikeList == NULL){
+// spikeList = new;
+// return;
+// }
+// sp = spikeList;
+// while(sp->nextRecord){
+// sp = sp->nextRecord;
+// }
+// sp->nextRecord = new;
+//
+//}
+/** SpikeRecord searches through the spike linked list, and returns a pointer
+ * to the first spike record found for a particular axon.
+ * If found, it wil return the pointer to that spike event, and then
+ * remove the item from the list. */
+
+spikeRecord * getRecord(id_type core, id_type local){
+ static int genRecords = 0;
+ spikeRecord *sp;
+ spikeRecord *prev;
+ printf("returned %i records \n", genRecords);
+ if(spikeList == NULL){
+ return NULL;
+ }
+ sp = spikeList;
+ //bool found = false;
+// if (sp->destAxon == local && sp->destCore == core)
+// return sp;
+ int listnum = 0;
+ while(sp->nextRecord) {
+ prev = sp;
+ if (sp->destAxon == local && sp->destCore == core) {
+
+ spikeRecord *found = sp;
+ if (listnum) {
+ prev->nextRecord = sp->nextRecord;
+ }else{
+
+ spikeList = spikeList->nextRecord;
+ }
+ genRecords ++;
+ return found;
+ }
+ listnum ++;
+ sp = sp->nextRecord;
+ }
+
+ return NULL;
+}
+
+spikeRecord * searchList(spikeRecord *pos, id_type core, id_type local){
+ }
+
+void push(spikeRecord * head, double vals[]) {
+ spikeRecord * current = head;
+ while (current->nextRecord != NULL) {
+ current = current->nextRecord;
+ }
+
+ /* now we can add a new variable */
+
+ current->nextRecord = malloc(sizeof(spikeRecord));
+ current->nextRecord->scheduledTime = vals[0];
+ current->nextRecord->destCore = vals[1];
+ current->nextRecord->destAxon = vals[2];
+ current->nextRecord->nextRecord = NULL;
+}
+
+void loadSpikes(){
+
+
+ bool fr = true;
+ double spikeInfo[3];
+
+ while(fscanf(spikeFile,"%la,%la,%la",&spikeInfo[0],&spikeInfo[1],&spikeInfo[2]) > 0){
+
+
+ if(fr){
+ spikeList = malloc(sizeof(spikeRecord));
+ spikeList->scheduledTime = spikeInfo[0];
+ spikeList->destCore = spikeInfo[1];
+ spikeList->destAxon = spikeInfo[2];
+ spikeList->nextRecord = NULL;
+ fr = false;
+ } else{
+ push(spikeList, spikeInfo);
+ }
+ }
+
+}
+
+
+double * getNextSpikeFromFile(){
+// static _Bool isE = false;
+// double spikeInfo[3];
+// spikeInfo[0] = -1;
+//
+// if (isE){
+//
+// return spikeInfo;
+// }
+// //double * spikeinfo = tw_calloc(TW_LOC, "SpikeInput", sizeof(double), 3);
+//
+// //dumb way to do this for demo pps:
+// //time,core,axon
+// if (fscanf(spikeFile,"%la,%la,%la",&spikeInfo[0],&spikeInfo[1],&spikeInfo[2]) > 0){
+// return spikeInfo;
+// }else{
+// isE = true;
+// spikeInfo[0] = -1;
+// return spikeInfo;
+// }
+
+}
+
+//double * findEvent(id_type coreID, id_type localID){
+// return &-1.0
+//}
+
+tw_stime queueSpikesFromAxon(id_type coreID, id_type localID){
+
+ spikeRecord * spike = getRecord(coreID, localID);
+ if (spike == NULL){
+ return -1;
+ }
+ tw_stime sched = spike->scheduledTime;
+ free(spike);
+ return sched;
+
+}
+
+
+/** Callback function called when libCSV has read an entire field. Add
+ * new neuron types to this function. */
+
+void fldRead(void *s, size_t len, void *data){
+
+ //When a field is read, the data in string format is given here.
+ //Used when first parsing the file
+ struct csvFullDat * dat = (struct csvFullDat *)data;
+ if(dat->fld_num == 0){
+ //Neuron Type Map Creation -- add new
+ if ( strcmp( (char*) s,"TN") == 0){
+ dat->type = TN;
+ }
+
+ } else if(dat->fld_num == 1){
+ dat->core_id = atoi(s);
+ } else if(dat->fld_num == 2){
+ dat->local_id = atoi(s);
+ } else{
+ tw_lpid nGID = getGIDFromLocalIDs(dat->core_id,dat->local_id);
+ neuronMap[nGID] = TN;
+ }
+ dat->fld_num ++;
+
+
+}
+void lineRead(int c, void *data) {
+ //once a line has been read in, look at the global struct where data is stored.
+ struct csvFullDat * dat = (struct csvFullDat *)data;
+ if (c == -1){
+ maxCore = dat->core_id;
+ }else{
+ if (minCore > dat->core_id){
+ minCore = dat->core_id;
+ }
+ }
+ dat->line_num ++;
+
+}
+
+char * netFile;
+
+
+
+/**
+ * runs on mpi rank 0. Reads CSV file containing neurons,
+ * then sets the LP type map for this simulation's neurons.
+ * Also sets up the min/max/coremap values for use in readNeuron(),
+ * so in-function menomization is not used.
+ */
+void parseNetworkFile(){
+ //@TODO: Free this memory once TN_INIT has been called
+ //neuronMap = calloc(CORES_IN_SIM * NEURONS_IN_CORE,sizeof(enum neuronTypeVals));
+ neuronMap = malloc(CORES_IN_SIM * NEURONS_IN_CORE * sizeof(enum neuronTypeVals));
+ for (int i = 0; i < CORES_IN_SIM * NEURONS_IN_CORE; i ++){
+ neuronMap[i] = NA;
+ }
+ struct csv_parser p;
+ struct csvFullDat data = {0,0,0,0,0};
+
+ char buf[4096];
+ size_t bytes_read;
+ size_t ttl_bytes = 0;
+
+ if(csv_init(&p, CSV_APPEND_NULL) != 0) exit(EXIT_FAILURE);
+ //networkFile = fopen(networkFileName, "rb");
+
+ while((bytes_read = fread(buf, 1, 4096, networkFile)) > 0){
+ if(csv_parse(&p, buf, bytes_read, fldRead, lineRead, &data) != bytes_read){
+ fprintf(stderr, "CSV Network Read Error\n");
+ exit(EXIT_FAILURE);
+ }
+ ttl_bytes += bytes_read;
+ }
+ csv_free(&p); //, fldRead, lineRead, &data);
+ rewind(networkFile);
+ //TODO: TEMP/debug hack for perf.
+ netFile = malloc(ttl_bytes+1);
+ //fgets(netFile,ttl_bytes,networkFile);
+ fread(netFile, ttl_bytes, 1, networkFile);
+ rewind(networkFile);
+
+}
+
+void postParseCleanup(){
+ free(neuronMap);
+ rewind(networkFile);
+}
+
+/** Function that checks if a neuron is in the file. Returns a line number to
+ start the search. Returns -1 if the neuron is not in the CSV file.*/
+int findNeuronInFile(id_type core, id_type nid){
+ tw_lpid nGID = getGIDFromLocalIDs(core,nid);
+ int nType = neuronMap[nGID];
+ if(nType){
+ return 0;
+ }
+ else{
+ return -1;
+ }
+
+}
+
+/** CSV hanlder for flds read in - used for neuron parameter gathering. */
+void neuron_fld(void *s, size_t len, void*data){
+ //printf("Inside neuron fld.\n");
+ csvNeuron *dat = (csvNeuron *) data;
+ char * d = dat->rawDatM[dat->fld_num];
+ char * csvD = (char*) s;
+
+
+ switch (dat->fld_num){
+ case 0:
+ break;
+ case 1:
+ dat->req_core_id = atoi((char*) s);
+ readMode = IN_ID;
+ break;
+ case 2:
+ dat->req_local_id = atoi((char*) s);
+ readMode = OUT_ID;
+ break;
+ default:
+ readMode = IN_DAT;
+
+ }
+ //dat->rawDat[dat->fld_num] = (char*) s;
+ //sprintf(dat->rawDat[dat->fld_num],"%s",(char*) s);
+ strcpy(d, csvD);
+ //while( (*d++ = *csvD++) );
+
+ dat->fld_num ++;
+
+}
+void neuron_line(int c, void *data) {
+ readMode = END_READ;
+}
+
+
+
+/** readNeuron - Currently, NeMo's neuron input system uses
+ * libcsv. When requesting a neuron's config file (the calling function)
+ * this function will go through the CSV file until either
+ * the neuron Core:ID is found, or it hits EOF/end of search.
+ * If a neuron is not defined in the API, then this function will
+ * not modify the neuron state.
+ *
+ * @param core
+ * @param nid
+ * @param ntype
+ * @param neuron
+ */
+struct CsvNeuron getNeuronData(id_type core, id_type nid) {
+ bool foundNeuron = false;
+ readMode = START_READ;
+ rewind(networkFile);
+ struct csv_parser csvP;
+ struct CsvNeuron data;
+ data.req_core_id=-1;
+ data.req_local_id=-1;
+ data.fld_num = 0;
+ data.foundNeuron = 0;
+
+ int startLN = findNeuronInFile(core, nid);
+ if(startLN == -1){
+ return data;
+ }
+
+ // char ** neuronParams = tw_calloc(TW_LOC,"Neuron Read CSV", sizeof(char*), MAX_NEURON_PARAMS);
+// data.rawDat = tw_calloc(TW_LOC,"Neuron Read CSV", sizeof(char*), MAX_NEURON_PARAMS);
+//
+// for (int i =0; i < MAX_NEURON_PARAMS; i ++ ){
+// char * values = tw_calloc(TW_LOC,"Neuron Read CSV", sizeof(char), NEURON_BUFFER_SZ);
+// //neuronParams[i] = values;
+// data.rawDat[i] = values;
+// }
+
+ char buf[65792];
+ size_t bytes_read;
+
+
+ if(csv_init(&csvP,CSV_APPEND_NULL) !=0) {
+ exit(EXIT_FAILURE);
+ }
+
+
+ char cc[65792];
+ //while((bytes_read = fread(buf, 1, 2048,networkFile)) > 0) {
+ // c = i;
+ char * nf2 = netFile;
+
+ while((*cc = *nf2++)){
+ if(csv_parse(&csvP, cc, 1, neuron_fld, neuron_line, &data) != 1){
+ // while((bytes_read = fread(buf, sizeof(char), 1, networkFile)) > 0){
+ // if (csv_parse(&csvP, buf, bytes_read, neuron_fld, neuron_line, &data) != bytes_read) {
+
+ tw_error(TW_LOC, "CSV Neuron File Read Error\n");
+ // }
+ }
+ switch (readMode) {
+ case IN_ID:
+ case START_READ:
+ break;
+ case OUT_ID:
+ //did we get the right core?
+ if (core == data.req_core_id && nid == data.req_local_id){
+ foundNeuron = true;
+ }
+
+ break;
+ case IN_DAT:
+ //inside the data, nothing to do here...
+ break;
+ case END_READ:
+ if (foundNeuron) {
+ data.foundNeuron = 1;
+ csv_fini(&csvP, neuron_fld, neuron_line, &data);
+ csv_free(&csvP);
+ return data;
+ }
+
+ readMode = START_READ;
+ data.fld_num = 0;
+ data.foundNeuron = 0;
+ data.req_core_id = -1;
+ data.req_local_id = -1;
+ break;
+
+
+ }
+ }
+ data.foundNeuron = 0;
+ csv_fini(&csvP, neuron_fld, neuron_line, &data);
+ csv_free(&csvP);
+ return data;
+}
diff --git a/src/IO/input.h b/src/IO/input.h
new file mode 100644
index 0000000..0117f50
--- /dev/null
+++ b/src/IO/input.h
@@ -0,0 +1,49 @@
+//
+// Created by Mark Plagge on 2/21/17.
+//
+
+#ifndef SUPERNEMO_INPUT_H
+#define SUPERNEMO_INPUT_H
+
+#include "../lib/csv.h"
+#include "../globals.h"
+#include "../neuro/tn_neuron.h"
+#include
+
+enum neuronTypeVals* neuronMap;
+char * neuronFireFileName;
+char * networkFileName;
+char * spikeFileName;
+typedef enum ReadStatus{
+ loaded = 0,
+ inNeurons = 1,
+ myCoreGreater = 2,
+ myCoreLower = 3,
+ eof = 4
+}readStatus;
+
+typedef struct SpikeRecord{
+ tw_stime scheduledTime;
+ id_type destCore;
+ id_type destAxon;
+ struct SpikeRecord * nextRecord;
+}spikeRecord;
+
+int openInputFiles();
+int initNetworkFile();
+void parseNetworkFile();
+void postParseCleanup();
+spikeRecord * getRecord(id_type core, id_type local);
+double * getNextSpikeFromFile();
+void loadSpikes();
+tw_stime queueSpikesFromAxon(id_type coreID, id_type localID);
+
+int closeNetworkFile();
+int closeSpikeFile();
+
+struct CsvNeuron getNeuronData(id_type core, id_type nid);
+
+
+
+
+#endif //SUPERNEMO_INPUT_H
diff --git a/src/IO/testIO.c b/src/IO/testIO.c
new file mode 100644
index 0000000..f41f121
--- /dev/null
+++ b/src/IO/testIO.c
@@ -0,0 +1,42 @@
+#include "output.h"
+#include "input.h"
+
+/** Testing of the lib CSV interface - code taken from examples:
+ *
+ * @return
+ */
+
+static int put_comma;
+
+void cb1 (void *s, size_t i, void *p) {
+ if (put_comma)
+ putc(',', stdout);
+ csv_fwrite(stdout, s, i);
+ put_comma = 1;
+}
+
+void cb2 (int c, void *p) {
+ put_comma = 0;
+ putc('\n', stdout);
+}
+
+int testLib (void) {
+ struct csv_parser p;
+ int i;
+ char c;
+
+ csv_init(&p, 0);
+
+ while ((i=getc(stdin)) != EOF) {
+ c = i;
+ if (csv_parse(&p, &c, 1, cb1, cb2, NULL) != 1) {
+ fprintf(stderr, "Error: %s\n", csv_strerror(csv_error(&p)));
+ exit(EXIT_FAILURE);
+ }
+ }
+
+ csv_fini(&p, cb1, cb2, NULL);
+ csv_free(&p);
+
+ return EXIT_SUCCESS;
+}
diff --git a/src/globals.c b/src/globals.c
index 13339c3..1296496 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -40,7 +40,7 @@ tw_stime bigTickRate = 1;
* littleTick is the rate of intra core synchronization. Synapses and axons do
* calculations using this rate, and neurons integrate with messages set to this rate.
*/
-tw_stime littleTick = 0.001;
+tw_stime littleTick = 0.0001;
@@ -52,7 +52,7 @@ tw_stime littleTick = 0.001;
* @return The next event time. Is a jitter value that is < 0.0001.
*/
tw_stime getNextEventTime(tw_lp *lp) {
- return (tw_rand_unif(lp->rng) / 1000) + littleTick;
+ return JITTER + littleTick;
}
@@ -62,7 +62,7 @@ tw_stime getNextEventTime(tw_lp *lp) {
*/
tw_stime getNextSynapseHeartbeat(tw_lp *lp){
- return (tw_rand_unif(lp->rng) / 10000) + bigTickRate;
+ return JITTER + littleTick;
}
@@ -72,7 +72,7 @@ tw_stime getCurrentBigTick(tw_stime now){
tw_stime getNextBigTick(tw_lp *lp, tw_lpid neuronID) {
- return (tw_rand_unif(lp->rng) / 1000) + bigTickRate;
+ return JITTER + bigTickRate;
}
diff --git a/src/globals.h b/src/globals.h
index 666f5d3..2e1bd9b 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -10,7 +10,7 @@
#define __NEMO_GLOBALS_H__
#define BGQ 0
-
+#define NET_IO_DEBUG 1
#include
#include
@@ -27,9 +27,11 @@
#define SAVE_NEURON_STATS
/**@}*/
-
-
-
+/**
+ * Neuron file read buffer size - for reading CSV files.
+ */
+#define NEURON_BUFFER_SZ 32
+#define MAX_NEURON_PARAMS 65536
/** @defgroup types Typedef Vars
* Typedefs to ensure proper types for the neuron parameters/mapping calculations
@@ -47,10 +49,70 @@ typedef uint64_t size_type; //!< size_type holds sizes of the sim - core size, n
typedef uint64_t stat_type;
/**@}*/
-/* @defgroup gmacros Global Macros and Related Functions
+/** @defgroup cmacros Global Dynamic Typing casting macros for file IO */
+/** @{ */
+#define ATOX(x) _Generic((x), \
+double: atof,\
+long: atol,\
+int: atoi,\
+float: atof
+
+
+
+/** @defgroup gmacros Global Macros and Related Functions
*Global Macros */
/**@{ */
+///////FILE DEBUG HELPERS /////////
+#ifdef NET_IO_DEBUG
+
+#define genWrite(x) _Generic((x), \
+char: "%i,", \
+signed char: "%hhd,", \
+unsigned char: "%hhu,", \
+signed short: "%hd,", \
+unsigned short: "%hu,", \
+signed int: "%d,", \
+unsigned int: "%u,", \
+long int: "%ld,", \
+unsigned long int: "%lu,", \
+long long int: "%lld,", \
+unsigned long long int: "%llu,", \
+float: "%f,", \
+double: "%f,", \
+long double: "%Lf,", \
+char *: "%s,", \
+bool: "%i,",\
+void *: "%p,")
+
+
+#define _GET_NTH_ARG(_1, _2, _3, _4, _5, N, ...) N
+#define COUNT_VARARGS(...) _GET_NTH_ARG("ignored", ##__VA_ARGS__, 4, 3, 2, 1, 0)
+
+#define MCR(i) fprintf(neuronConfigFile, genWrite(i), i);
+
+//#define _tp0(...)
+//#define _tp1(i) genWrite(i)
+//#define _tp2(i,...) genWrite(i) _tp1(__VA_ARGS__)
+//#define _tp3(i,...) genWrite(i) _tp2(__VA_AGRS__)
+//#define _tp4(i,...) genWrite(i) _tp3(__VA_ARGS__)
+
+#define _tp0(...)
+#define _tp1(i) MCR(i)
+#define _tp2(i,...) MCR(i) _tp1(__VA_ARGS__)
+#define _tp3(i,...) MCR(i) _tp2(__VA_ARGS__)
+#define _tp4(i,...) MCR(i) _tp3(__VA_ARGS__)
+
+#define MCRN(...) \
+_GET_NTH_ARG("ignored", ##__VA_ARGS__, \
+_tp4, _tp3, _tp2, _tp1,_tp0)(__VA_ARGS__)
+
+
+
+
+#endif
+
+
#if (__STDC_VERSION >= 200112L) || (_POSIX_C_SOURCE >= 20112L) || (BGQ <=0 )
#define printf_dec_format(x) _Generic((x), \
char: "%c", \
@@ -74,8 +136,9 @@ void *: "%p")
#define print(x) printf(printf_dec_format(x), x)
#define sprint(str, y) sprintf(str, printf_dec_format(y), y)
#define debugMsg(type, value) print(type); print(value); printf("\n")
-#define fprint(file, z) fprintf(file, printf_dec_format(z),z)
-
+#define oprint(message, item) print(message); printf(":"); print(item); printf("\n");
+#define fprint(file, z) fprintf(file, printf_dec_format(z),z);
+#define UN(i) fprintf(neuronConfigFile, printf_dec_format(i), i);
#define nonC11 0
#elif BGQ
//#else //stupid BGQ
@@ -153,6 +216,11 @@ weight_type iiABS(weight_type in);
*/
/** @{ */
+/** Macro for use within globals.
+ Assumes that there is a tw_lp pointer called lp in the function it is used.
+ */
+#define JITTER (tw_rand_unif(lp->rng) / 10000)
+
/**
* Gets the next event time, based on a random function. Moved here to allow for
* easier abstraction, and random function replacement.
@@ -207,6 +275,10 @@ enum lpTypeVals {
SYNAPSE = 1,
NEURON = 2
};
+enum neuronTypeVals {
+ NA = 0,
+ TN = 1
+};
/**
* @brief test result flag.
@@ -217,9 +289,9 @@ enum mapTestResults {
INVALID_NEURON = 0x03 //!< Neuron was not properly defined.
};
-typedef enum NeuronTypes {
- TrueNorth = 0
-} neuronTypes;
+//typedef enum NeuronTypes {
+// TrueNorth = 0
+//} neuronTypes;
//Message Structure (Used Globally so placed here)
@@ -238,13 +310,13 @@ typedef struct Ms{
};
- union{
+ // union{
id_type axonID; //!< Axon ID for neuron value lookups.
bool * neuronConn;
- };
+ //};
//message tracking values:
#ifdef SAVE_MSGS
- union {
+ union {
uint64_t uuid;
struct {
uint16_t idp1;
@@ -257,14 +329,22 @@ typedef struct Ms{
tw_stime msgCreationTime;
#endif
+}messageData;
+ /**@}*/
+/** Structs for managing neuron reads */
+typedef struct CsvNeuron{
+ int fld_num;
+ int req_core_id;
+ int req_local_id;
+ int foundNeuron;
+ char rawDatM[MAX_NEURON_PARAMS][NEURON_BUFFER_SZ];
+// char *rawDatP[NEURON_BUFFER_SZ];
+// char **rawDat;
+}csvNeuron;
-
-
-}messageData;
- /**@}*/
#endif //NEMO_GLOBALS_H
#ifndef EXTERN
@@ -280,7 +360,7 @@ EXT size_type LP_PER_KP;
EXT bool IS_RAND_NETWORK;
EXT size_type CORES_IN_SIM;
-EXT size_type AXONS_IN_CORE;
+//EXT size_type AXONS_IN_CORE;
EXT size_type SIM_SIZE;
EXT size_type CORE_SIZE;
EXT size_type SYNAPSES_IN_CORE;
@@ -304,12 +384,7 @@ EXT bool FILE_OUT;
EXT bool FILE_IN;
-/** @defgroup fileNames File Names
- * Vars that manage file names for IO @{*/
-EXT char * inputFileName;
-EXT char * neuronFireFileName;
-/** @} */
/* Global Timing Variables */
@@ -338,3 +413,17 @@ EXT int N_FIRE_LINE_SIZE;
//#define N_FIRE_LINE_SIZE 128
/** @} */
#endif
+
+
+/** @defgroup fileNames File Names
+ * Vars that manage file names for IO.
+ * These variables are declared/init in input.c and
+ * output.c @{*/
+
+extern char * neuronFireFileName;
+extern char * networkFileName;
+extern char * spikeFileName;
+
+extern FILE * networkFile;
+extern FILE * spikeFile;
+/** @} */
diff --git a/src/lib/c11t b/src/lib/c11t
new file mode 160000
index 0000000..465f541
--- /dev/null
+++ b/src/lib/c11t
@@ -0,0 +1 @@
+Subproject commit 465f541c927f8cceefb977b0453e69793bc01ea4
diff --git a/src/lib/csv.h b/src/lib/csv.h
new file mode 100755
index 0000000..0f897ba
--- /dev/null
+++ b/src/lib/csv.h
@@ -0,0 +1,88 @@
+#ifndef LIBCSV_H__
+#define LIBCSV_H__
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CSV_MAJOR 3
+#define CSV_MINOR 1
+#define CSV_RELEASE 1
+
+/* Error Codes */
+#define CSV_SUCCESS 0
+#define CSV_EPARSE 1 /* Parse error in strict mode */
+#define CSV_ENOMEM 2 /* Out of memory while increasing buffer size */
+#define CSV_ETOOBIG 3 /* Buffer larger than SIZE_MAX needed */
+#define CSV_EINVALID 4 /* Invalid code,should never be received from csv_error*/
+
+
+/* parser options */
+#define CSV_STRICT 1 /* enable strict mode */
+#define CSV_REPALL_NL 2 /* report all unquoted carriage returns and linefeeds */
+#define CSV_STRICT_FINI 4 /* causes csv_fini to return CSV_EPARSE if last
+ field is quoted and doesn't containg ending
+ quote */
+#define CSV_APPEND_NULL 8 /* Ensure that all fields are null-terminated */
+#define CSV_EMPTY_IS_NULL 16 /* Pass null pointer to cb1 function when
+ empty, unquoted fields are encountered */
+
+
+/* Character values */
+#define CSV_TAB 0x09
+#define CSV_SPACE 0x20
+#define CSV_CR 0x0d
+#define CSV_LF 0x0a
+#define CSV_COMMA 0x2c
+#define CSV_QUOTE 0x22
+
+struct csv_parser {
+ int pstate; /* Parser state */
+ int quoted; /* Is the current field a quoted field? */
+ size_t spaces; /* Number of continious spaces after quote or in a non-quoted field */
+ unsigned char * entry_buf; /* Entry buffer */
+ size_t entry_pos; /* Current position in entry_buf (and current size of entry) */
+ size_t entry_size; /* Size of entry buffer */
+ int status; /* Operation status */
+ unsigned char options;
+ unsigned char quote_char;
+ unsigned char delim_char;
+ int (*is_space)(unsigned char);
+ int (*is_term)(unsigned char);
+ size_t blk_size;
+ void *(*malloc_func)(size_t);
+ void *(*realloc_func)(void *, size_t);
+ void (*free_func)(void *);
+};
+
+/* Function Prototypes */
+int csv_init(struct csv_parser *p, unsigned char options);
+int csv_fini(struct csv_parser *p, void (*cb1)(void *, size_t, void *), void (*cb2)(int, void *), void *data);
+void csv_free(struct csv_parser *p);
+int csv_error(struct csv_parser *p);
+char * csv_strerror(int error);
+size_t csv_parse(struct csv_parser *p, const void *s, size_t len, void (*cb1)(void *, size_t, void *), void (*cb2)(int, void *), void *data);
+size_t csv_write(void *dest, size_t dest_size, const void *src, size_t src_size);
+int csv_fwrite(FILE *fp, const void *src, size_t src_size);
+size_t csv_write2(void *dest, size_t dest_size, const void *src, size_t src_size, unsigned char quote);
+int csv_fwrite2(FILE *fp, const void *src, size_t src_size, unsigned char quote);
+int csv_get_opts(struct csv_parser *p);
+int csv_set_opts(struct csv_parser *p, unsigned char options);
+void csv_set_delim(struct csv_parser *p, unsigned char c);
+void csv_set_quote(struct csv_parser *p, unsigned char c);
+unsigned char csv_get_delim(struct csv_parser *p);
+unsigned char csv_get_quote(struct csv_parser *p);
+void csv_set_space_func(struct csv_parser *p, int (*f)(unsigned char));
+void csv_set_term_func(struct csv_parser *p, int (*f)(unsigned char));
+void csv_set_realloc_func(struct csv_parser *p, void *(*)(void *, size_t));
+void csv_set_free_func(struct csv_parser *p, void (*)(void *));
+void csv_set_blk_size(struct csv_parser *p, size_t);
+size_t csv_get_buffer_size(struct csv_parser *p);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/src/lib/libcsv.c b/src/lib/libcsv.c
new file mode 100755
index 0000000..afffb2a
--- /dev/null
+++ b/src/lib/libcsv.c
@@ -0,0 +1,581 @@
+/*
+libcsv - parse and write csv data
+Copyright (C) 2008 Robert Gamble
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+#if ___STDC_VERSION__ >= 199901L
+# include
+#else
+# define SIZE_MAX ((size_t)-1) /* C89 doesn't have stdint.h or SIZE_MAX */
+#endif
+
+#include "csv.h"
+
+#define VERSION "3.0.3"
+
+#define ROW_NOT_BEGUN 0
+#define FIELD_NOT_BEGUN 1
+#define FIELD_BEGUN 2
+#define FIELD_MIGHT_HAVE_ENDED 3
+
+/*
+ Explanation of states
+ ROW_NOT_BEGUN There have not been any fields encountered for this row
+ FIELD_NOT_BEGUN There have been fields but we are currently not in one
+ FIELD_BEGUN We are in a field
+ FIELD_MIGHT_HAVE_ENDED
+ We encountered a double quote inside a quoted field, the
+ field is either ended or the quote is literal
+*/
+
+#define MEM_BLK_SIZE 128
+
+#define SUBMIT_FIELD(p) \
+ do { \
+ if (!quoted) \
+ entry_pos -= spaces; \
+ if (p->options & CSV_APPEND_NULL) \
+ ((p)->entry_buf[entry_pos]) = '\0'; \
+ if (cb1 && (p->options & CSV_EMPTY_IS_NULL) && !quoted && entry_pos == 0) \
+ cb1(NULL, entry_pos, data); \
+ else if (cb1) \
+ cb1(p->entry_buf, entry_pos, data); \
+ pstate = FIELD_NOT_BEGUN; \
+ entry_pos = quoted = spaces = 0; \
+ } while (0)
+
+#define SUBMIT_ROW(p, c) \
+ do { \
+ if (cb2) \
+ cb2(c, data); \
+ pstate = ROW_NOT_BEGUN; \
+ entry_pos = quoted = spaces = 0; \
+ } while (0)
+
+#define SUBMIT_CHAR(p, c) ((p)->entry_buf[entry_pos++] = (c))
+
+static char *csv_errors[] = {"success",
+ "error parsing data while strict checking enabled",
+ "memory exhausted while increasing buffer size",
+ "data size too large",
+ "invalid status code"};
+
+int
+csv_error(struct csv_parser *p)
+{
+ /* Return the current status of the parser */
+ return p->status;
+}
+
+char *
+csv_strerror(int status)
+{
+ /* Return a textual description of status */
+ if (status >= CSV_EINVALID || status < 0)
+ return csv_errors[CSV_EINVALID];
+ else
+ return csv_errors[status];
+}
+
+int
+csv_get_opts(struct csv_parser *p)
+{
+ /* Return the currently set options of parser */
+ if (p == NULL)
+ return -1;
+
+ return p->options;
+}
+
+int
+csv_set_opts(struct csv_parser *p, unsigned char options)
+{
+ /* Set the options */
+ if (p == NULL)
+ return -1;
+
+ p->options = options;
+ return 0;
+}
+
+int
+csv_init(struct csv_parser *p, unsigned char options)
+{
+ /* Initialize a csv_parser object returns 0 on success, -1 on error */
+ if (p == NULL)
+ return -1;
+
+ p->entry_buf = NULL;
+ p->pstate = ROW_NOT_BEGUN;
+ p->quoted = 0;
+ p->spaces = 0;
+ p->entry_pos = 0;
+ p->entry_size = 0;
+ p->status = 0;
+ p->options = options;
+ p->quote_char = CSV_QUOTE;
+ p->delim_char = CSV_COMMA;
+ p->is_space = NULL;
+ p->is_term = NULL;
+ p->blk_size = MEM_BLK_SIZE;
+ p->malloc_func = NULL;
+ p->realloc_func = realloc;
+ p->free_func = free;
+
+ return 0;
+}
+
+void
+csv_free(struct csv_parser *p)
+{
+ /* Free the entry_buffer of csv_parser object */
+ if (p == NULL)
+ return;
+
+ if (p->entry_buf)
+ p->free_func(p->entry_buf);
+
+ p->entry_buf = NULL;
+ p->entry_size = 0;
+
+ return;
+}
+
+int
+csv_fini(struct csv_parser *p, void (*cb1)(void *, size_t, void *), void (*cb2)(int c, void *), void *data)
+{
+ /* Finalize parsing. Needed, for example, when file does not end in a newline */
+ int quoted = p->quoted;
+ int pstate = p->pstate;
+ size_t spaces = p->spaces;
+ size_t entry_pos = p->entry_pos;
+
+ if (p == NULL)
+ return -1;
+
+
+ if (p->pstate == FIELD_BEGUN && p->quoted && p->options & CSV_STRICT && p->options & CSV_STRICT_FINI) {
+ /* Current field is quoted, no end-quote was seen, and CSV_STRICT_FINI is set */
+ p->status = CSV_EPARSE;
+ return -1;
+ }
+
+ switch (pstate) {
+ case FIELD_MIGHT_HAVE_ENDED:
+ p->entry_pos -= p->spaces + 1; /* get rid of spaces and original quote */
+ /* Fall-through */
+ case FIELD_NOT_BEGUN:
+ case FIELD_BEGUN:
+ quoted = p->quoted, pstate = p->pstate;
+ spaces = p->spaces, entry_pos = p->entry_pos;
+ SUBMIT_FIELD(p);
+ SUBMIT_ROW(p, -1);
+ case ROW_NOT_BEGUN: /* Already ended properly */
+ ;
+ }
+
+ /* Reset parser */
+ p->spaces = p->quoted = p->entry_pos = p->status = 0;
+ p->pstate = ROW_NOT_BEGUN;
+
+ return 0;
+}
+
+void
+csv_set_delim(struct csv_parser *p, unsigned char c)
+{
+ /* Set the delimiter */
+ if (p) p->delim_char = c;
+}
+
+void
+csv_set_quote(struct csv_parser *p, unsigned char c)
+{
+ /* Set the quote character */
+ if (p) p->quote_char = c;
+}
+
+unsigned char
+csv_get_delim(struct csv_parser *p)
+{
+ /* Get the delimiter */
+ return p->delim_char;
+}
+
+unsigned char
+csv_get_quote(struct csv_parser *p)
+{
+ /* Get the quote character */
+ return p->quote_char;
+}
+
+void
+csv_set_space_func(struct csv_parser *p, int (*f)(unsigned char))
+{
+ /* Set the space function */
+ if (p) p->is_space = f;
+}
+
+void
+csv_set_term_func(struct csv_parser *p, int (*f)(unsigned char))
+{
+ /* Set the term function */
+ if (p) p->is_term = f;
+}
+
+void
+csv_set_realloc_func(struct csv_parser *p, void *(*f)(void *, size_t))
+{
+ /* Set the realloc function used to increase buffer size */
+ if (p && f) p->realloc_func = f;
+}
+
+void
+csv_set_free_func(struct csv_parser *p, void (*f)(void *))
+{
+ /* Set the free function used to free the buffer */
+ if (p && f) p->free_func = f;
+}
+
+void
+csv_set_blk_size(struct csv_parser *p, size_t size)
+{
+ /* Set the block size used to increment buffer size */
+ if (p) p->blk_size = size;
+}
+
+size_t
+csv_get_buffer_size(struct csv_parser *p)
+{
+ /* Get the size of the entry buffer */
+ if (p)
+ return p->entry_size;
+ return 0;
+}
+
+static int
+csv_increase_buffer(struct csv_parser *p)
+{
+ /* Increase the size of the entry buffer. Attempt to increase size by
+ * p->blk_size, if this is larger than SIZE_MAX try to increase current
+ * buffer size to SIZE_MAX. If allocation fails, try to allocate halve
+ * the size and try again until successful or increment size is zero.
+ */
+
+ size_t to_add = p->blk_size;
+ void *vp;
+
+ if ( p->entry_size >= SIZE_MAX - to_add )
+ to_add = SIZE_MAX - p->entry_size;
+
+ if (!to_add) {
+ p->status = CSV_ETOOBIG;
+ return -1;
+ }
+
+ while ((vp = p->realloc_func(p->entry_buf, p->entry_size + to_add)) == NULL) {
+ to_add /= 2;
+ if (!to_add) {
+ p->status = CSV_ENOMEM;
+ return -1;
+ }
+ }
+
+ /* Update entry buffer pointer and entry_size if successful */
+ p->entry_buf = vp;
+ p->entry_size += to_add;
+ return 0;
+}
+
+size_t
+csv_parse(struct csv_parser *p, const void *s, size_t len, void (*cb1)(void *, size_t, void *), void (*cb2)(int c, void *), void *data)
+{
+ unsigned const char *us = s; /* Access input data as array of unsigned char */
+ unsigned char c; /* The character we are currently processing */
+ size_t pos = 0; /* The number of characters we have processed in this call */
+
+ /* Store key fields into local variables for performance */
+ unsigned char delim = p->delim_char;
+ unsigned char quote = p->quote_char;
+ int (*is_space)(unsigned char) = p->is_space;
+ int (*is_term)(unsigned char) = p->is_term;
+ int quoted = p->quoted;
+ int pstate = p->pstate;
+ size_t spaces = p->spaces;
+ size_t entry_pos = p->entry_pos;
+
+
+ if (!p->entry_buf && pos < len) {
+ /* Buffer hasn't been allocated yet and len > 0 */
+ if (csv_increase_buffer(p) != 0) {
+ p->quoted = quoted, p->pstate = pstate, p->spaces = spaces, p->entry_pos = entry_pos;
+ return pos;
+ }
+ }
+
+ while (pos < len) {
+ /* Check memory usage, increase buffer if neccessary */
+ if (entry_pos == ((p->options & CSV_APPEND_NULL) ? p->entry_size - 1 : p->entry_size) ) {
+ if (csv_increase_buffer(p) != 0) {
+ p->quoted = quoted, p->pstate = pstate, p->spaces = spaces, p->entry_pos = entry_pos;
+ return pos;
+ }
+ }
+
+ c = us[pos++];
+
+ switch (pstate) {
+ case ROW_NOT_BEGUN:
+ case FIELD_NOT_BEGUN:
+ if ((is_space ? is_space(c) : c == CSV_SPACE || c == CSV_TAB) && c!=delim) { /* Space or Tab */
+ continue;
+ } else if (is_term ? is_term(c) : c == CSV_CR || c == CSV_LF) { /* Carriage Return or Line Feed */
+ if (pstate == FIELD_NOT_BEGUN) {
+ SUBMIT_FIELD(p);
+ SUBMIT_ROW(p, (unsigned char)c);
+ } else { /* ROW_NOT_BEGUN */
+ /* Don't submit empty rows by default */
+ if (p->options & CSV_REPALL_NL) {
+ SUBMIT_ROW(p, (unsigned char)c);
+ }
+ }
+ continue;
+ } else if (c == delim) { /* Comma */
+ SUBMIT_FIELD(p);
+ break;
+ } else if (c == quote) { /* Quote */
+ pstate = FIELD_BEGUN;
+ quoted = 1;
+ } else { /* Anything else */
+ pstate = FIELD_BEGUN;
+ quoted = 0;
+ SUBMIT_CHAR(p, c);
+ }
+ break;
+ case FIELD_BEGUN:
+ if (c == quote) { /* Quote */
+ if (quoted) {
+ SUBMIT_CHAR(p, c);
+ pstate = FIELD_MIGHT_HAVE_ENDED;
+ } else {
+ /* STRICT ERROR - double quote inside non-quoted field */
+ if (p->options & CSV_STRICT) {
+ p->status = CSV_EPARSE;
+ p->quoted = quoted, p->pstate = pstate, p->spaces = spaces, p->entry_pos = entry_pos;
+ return pos-1;
+ }
+ SUBMIT_CHAR(p, c);
+ spaces = 0;
+ }
+ } else if (c == delim) { /* Comma */
+ if (quoted) {
+ SUBMIT_CHAR(p, c);
+ } else {
+ SUBMIT_FIELD(p);
+ }
+ } else if (is_term ? is_term(c) : c == CSV_CR || c == CSV_LF) { /* Carriage Return or Line Feed */
+ if (!quoted) {
+ SUBMIT_FIELD(p);
+ SUBMIT_ROW(p, (unsigned char)c);
+ } else {
+ SUBMIT_CHAR(p, c);
+ }
+ } else if (!quoted && (is_space? is_space(c) : c == CSV_SPACE || c == CSV_TAB)) { /* Tab or space for non-quoted field */
+ SUBMIT_CHAR(p, c);
+ spaces++;
+ } else { /* Anything else */
+ SUBMIT_CHAR(p, c);
+ spaces = 0;
+ }
+ break;
+ case FIELD_MIGHT_HAVE_ENDED:
+ /* This only happens when a quote character is encountered in a quoted field */
+ if (c == delim) { /* Comma */
+ entry_pos -= spaces + 1; /* get rid of spaces and original quote */
+ SUBMIT_FIELD(p);
+ } else if (is_term ? is_term(c) : c == CSV_CR || c == CSV_LF) { /* Carriage Return or Line Feed */
+ entry_pos -= spaces + 1; /* get rid of spaces and original quote */
+ SUBMIT_FIELD(p);
+ SUBMIT_ROW(p, (unsigned char)c);
+ } else if (is_space ? is_space(c) : c == CSV_SPACE || c == CSV_TAB) { /* Space or Tab */
+ SUBMIT_CHAR(p, c);
+ spaces++;
+ } else if (c == quote) { /* Quote */
+ if (spaces) {
+ /* STRICT ERROR - unescaped double quote */
+ if (p->options & CSV_STRICT) {
+ p->status = CSV_EPARSE;
+ p->quoted = quoted, p->pstate = pstate, p->spaces = spaces, p->entry_pos = entry_pos;
+ return pos-1;
+ }
+ spaces = 0;
+ SUBMIT_CHAR(p, c);
+ } else {
+ /* Two quotes in a row */
+ pstate = FIELD_BEGUN;
+ }
+ } else { /* Anything else */
+ /* STRICT ERROR - unescaped double quote */
+ if (p->options & CSV_STRICT) {
+ p->status = CSV_EPARSE;
+ p->quoted = quoted, p->pstate = pstate, p->spaces = spaces, p->entry_pos = entry_pos;
+ return pos-1;
+ }
+ pstate = FIELD_BEGUN;
+ spaces = 0;
+ SUBMIT_CHAR(p, c);
+ }
+ break;
+ default:
+ break;
+ }
+ }
+ p->quoted = quoted, p->pstate = pstate, p->spaces = spaces, p->entry_pos = entry_pos;
+ return pos;
+}
+
+size_t
+csv_write (void *dest, size_t dest_size, const void *src, size_t src_size)
+{
+ unsigned char *cdest = dest;
+ const unsigned char *csrc = src;
+ size_t chars = 0;
+
+ if (src == NULL)
+ return 0;
+
+ if (cdest == NULL)
+ dest_size = 0;
+
+ if (dest_size > 0)
+ *cdest++ = '"';
+ chars++;
+
+ while (src_size) {
+ if (*csrc == '"') {
+ if (dest_size > chars)
+ *cdest++ = '"';
+ if (chars < SIZE_MAX) chars++;
+ }
+ if (dest_size > chars)
+ *cdest++ = *csrc;
+ if (chars < SIZE_MAX) chars++;
+ src_size--;
+ csrc++;
+ }
+
+ if (dest_size > chars)
+ *cdest = '"';
+ if (chars < SIZE_MAX) chars++;
+
+ return chars;
+}
+
+int
+csv_fwrite (FILE *fp, const void *src, size_t src_size)
+{
+ const unsigned char *csrc = src;
+
+ if (fp == NULL || src == NULL)
+ return 0;
+
+ if (fputc('"', fp) == EOF)
+ return EOF;
+
+ while (src_size) {
+ if (*csrc == '"') {
+ if (fputc('"', fp) == EOF)
+ return EOF;
+ }
+ if (fputc(*csrc, fp) == EOF)
+ return EOF;
+ src_size--;
+ csrc++;
+ }
+
+ if (fputc('"', fp) == EOF) {
+ return EOF;
+ }
+
+ return 0;
+}
+
+size_t
+csv_write2 (void *dest, size_t dest_size, const void *src, size_t src_size, unsigned char quote)
+{
+ unsigned char *cdest = dest;
+ const unsigned char *csrc = src;
+ size_t chars = 0;
+
+ if (src == NULL)
+ return 0;
+
+ if (dest == NULL)
+ dest_size = 0;
+
+ if (dest_size > 0)
+ *cdest++ = quote;
+ chars++;
+
+ while (src_size) {
+ if (*csrc == quote) {
+ if (dest_size > chars)
+ *cdest++ = quote;
+ if (chars < SIZE_MAX) chars++;
+ }
+ if (dest_size > chars)
+ *cdest++ = *csrc;
+ if (chars < SIZE_MAX) chars++;
+ src_size--;
+ csrc++;
+ }
+
+ if (dest_size > chars)
+ *cdest = quote;
+ if (chars < SIZE_MAX) chars++;
+
+ return chars;
+}
+
+int
+csv_fwrite2 (FILE *fp, const void *src, size_t src_size, unsigned char quote)
+{
+ const unsigned char *csrc = src;
+
+ if (fp == NULL || src == NULL)
+ return 0;
+
+ if (fputc(quote, fp) == EOF)
+ return EOF;
+
+ while (src_size) {
+ if (*csrc == quote) {
+ if (fputc(quote, fp) == EOF)
+ return EOF;
+ }
+ if (fputc(*csrc, fp) == EOF)
+ return EOF;
+ src_size--;
+ csrc++;
+ }
+
+ if (fputc(quote, fp) == EOF) {
+ return EOF;
+ }
+
+ return 0;
+}
diff --git a/src/nemo_config.h b/src/nemo_config.h
index 3e48a7f..7367bb3 100644
--- a/src/nemo_config.h
+++ b/src/nemo_config.h
@@ -1,4 +1,5 @@
#ifndef __NEMO_NEMO_CONFIG_H__
-#define NEURONS_IN_CORE 512
+#define NEURONS_IN_CORE 256
#define NUM_NEURON_WEIGHTS 4
+#define AXONS_IN_CORE 256
#endif
\ No newline at end of file
diff --git a/src/nemo_config.h.in b/src/nemo_config.h.in
index 0f650d9..f056c93 100644
--- a/src/nemo_config.h.in
+++ b/src/nemo_config.h.in
@@ -3,6 +3,7 @@
#define MODEL_VERSION "@GIT_SHA1_MODEL@"
#define NEURONS_IN_CORE @NeMo_NEURONS_IN_CORE@
+#define AXONS_IN_CORE @NeMo_NEURONS_IN_CORE@
#define ARCH @ARCH@
#define NUM_NEURON_WEIGHTS @NeMo_NUM_WEIGHTS_IN_NEURON@
diff --git a/src/nemo_main.c b/src/nemo_main.c
index f435726..6e5601b 100644
--- a/src/nemo_main.c
+++ b/src/nemo_main.c
@@ -2,15 +2,17 @@
// Created by Mark Plagge on 5/25/16.
//
-#include
+
#include "nemo_main.h"
-#include "./IO/IOStack.h"
+
+/** Set for testing IO ops */
+#define TESTIO 0
/** \addtogroup Globals
* @{ */
size_type CORES_IN_SIM = 16;
-size_type AXONS_IN_CORE = NEURONS_IN_CORE;
+//size_type AXONS_IN_CORE = NEURONS_IN_CORE;
size_type SIM_SIZE = 1025;
size_type SYNAPSES_IN_CORE = 0;
size_type CORE_SIZE = 0;
@@ -27,15 +29,14 @@ bool TONIC_SPK_VAL = false;
bool TONIC_BURST_VAL = false;
bool PHASIC_BURST_VAL = false;
bool VALIDATION = false;
-
bool MPI_SAVE = false;
bool BINARY_OUTPUT = false;
char * inputFileName = "nemo_in";
char * neuronFireFileName = "fire_record";
-
int N_FIRE_BUFF_SIZE = 32;
int N_FIRE_LINE_SIZE = 512;
-
+char * NETWORK_FILE_NAME = "./demo_ts.csv";
+char * SPIKE_FILE_NAME = "spikes.csv";
//
/**
* @FILE_OUT - is set to true if NeMo is saving output files
@@ -43,13 +44,12 @@ int N_FIRE_LINE_SIZE = 512;
*
*/
bool FILE_OUT = false;
-bool FILE_IN = false;
+bool FILE_IN = true;
/**
* outFile - basic output file handler.
*/
FILE *outFile;
-
int testingMode = 0;
@@ -63,22 +63,28 @@ char * couchAddress = "192.168.2.3";
* app_opt - Application Options. Manages the options for NeMo's run.
*/
const tw_optdef app_opt[] = {
- TWOPT_FLAG("rand_net", IS_RAND_NETWORK, "Generate a random network? Alternatively, you need to specify config files."),
+ // TWOPT_FLAG("rand_net", IS_RAND_NETWORK, "Generate a random network? Alternatively, you need to specify config files."),
+ TWOPT_FLAG("netin", FILE_IN, "Load network information from a file. If set,"
+ "a network file name must be specified.\n If off, a randomly "
+ "generated benchmark model will be used."),
+ TWOPT_CHAR("nfn", NETWORK_FILE_NAME, "Input Network File Name"),
+ TWOPT_CHAR("sfn", SPIKE_FILE_NAME, "Spike input file name"),
TWOPT_UINT("tm", testingMode, "Choose a test suite to run. 0=no tests, 1=mapping tests"),
TWOPT_GROUP("Randomized (ID Matrix) Network Parameters"),
TWOPT_ULONGLONG("cores", CORES_IN_SIM, "number of cores in simulation"),
//TWOPT_ULONGLONG("neurons", NEURONS_IN_CORE, "number of neurons (and axons) in sim"),
TWOPT_GROUP("Data Gathering Settings"),
- TWOPT_FLAG("bulk", BULK_MODE, "Is this sim running in bulk mode?"),
+ //TWOPT_FLAG("bulk", BULK_MODE, "Is this sim running in bulk mode?"),
TWOPT_FLAG("dbg", DEBUG_MODE, "Debug message printing"),
- TWOPT_FLAG("network", SAVE_NEURON_OUTS, "Save neuron output axon IDs on creation - Creates a map of the neural network."),
- TWOPT_FLAG("svm", SAVE_MEMBRANE_POTS, "Save neuron membrane potential values (enabled by default when running a validation model"),
+ TWOPT_FLAG("network", SAVE_NEURON_OUTS, "Save neuron output axon IDs on creation - Creates a map of the neural network."),
+ TWOPT_FLAG("svm", SAVE_MEMBRANE_POTS, "Save neuron membrane potential "
+ "values (saves membrane potential per-tick if neuron was active.)"),
TWOPT_FLAG("svs", SAVE_SPIKE_EVTS, "Save neuron spike event times and info"),
- TWOPT_GROUP("Integrated Bio Model Testing"),
- TWOPT_FLAG("phval", PHAS_VAL, "Phasic Neuron Validation"),
- TWOPT_FLAG("tonb",TONIC_BURST_VAL, "Tonic bursting Neuron Validation"),
- TWOPT_FLAG("phb", PHASIC_BURST_VAL, "Phasic Bursting Neuron Validation"),
+// TWOPT_GROUP("Integrated Bio Model Testing"),
+// TWOPT_FLAG("phval", PHAS_VAL, "Phasic Neuron Validation"),
+// TWOPT_FLAG("tonb",TONIC_BURST_VAL, "Tonic bursting Neuron Validation"),
+// TWOPT_FLAG("phb", PHASIC_BURST_VAL, "Phasic Bursting Neuron Validation"),
TWOPT_END()
};
@@ -103,8 +109,8 @@ tw_lptype model_lps[] = {
(pre_run_f)NULL,
(event_f)synapse_event,
(revent_f)synapse_reverse,
- (commit_f) NULL,
- (final_f)NULL,
+ (commit_f) NULL,
+ (final_f)synapse_final,
(map_f)getPEFromGID,
sizeof(synapseState)
},
@@ -138,9 +144,11 @@ void displayModelSettings()
printf("* \t %f cores per PE, giving %llu LPs per pe.\n", cores_per_node, g_tw_nlp);
printf("* \t Neurons have %i axon types (cmake defined)\n", NUM_NEURON_WEIGHTS);
printf("* \t Network is a %s network.\n",netMode);
+ printf("* \t Network Input FileName: %s \n", NETWORK_FILE_NAME);
+ printf("* \t Spike Input FileName %s \n", SPIKE_FILE_NAME);
printf("* \t Neuron stats:\n");
printf("* \tCalculated sim_size is %llu\n", SIM_SIZE);
- printf("* \tSave Messages: %i \n", SAVE_MSGS );
+
//printf("%-10s", "title");
@@ -191,7 +199,7 @@ void init_nemo(){
FILE_OUT = SAVE_SPIKE_EVTS || SAVE_NEURON_OUTS ||
SAVE_MEMBRANE_POTS || VALIDATION;
- FILE_IN = !IS_RAND_NETWORK;
+
if (FILE_OUT){
@@ -200,17 +208,23 @@ void init_nemo(){
if(g_tw_mynode == 0){
printf("Output Files Init.\n");
}
+
}
if (FILE_IN){
//Init File Input Handles
- //reconfigure cores_in_sim and neurons_in_sim based on loaded file.
- //override default LP function pointers
+ printf("Network Input Active -");
+ printf("Filename specified: %s\n", NETWORK_FILE_NAME);
+ networkFileName = NETWORK_FILE_NAME;
+ spikeFileName = SPIKE_FILE_NAME;
+ openInputFiles();
+ parseNetworkFile();
+ loadSpikes();
}
- AXONS_IN_CORE = NEURONS_IN_CORE;
+ //AXONS_IN_CORE = NEURONS_IN_CORE;
SYNAPSES_IN_CORE = 1;//(NEURONS_IN_CORE * AXONS_IN_CORE);
CORE_SIZE = SYNAPSES_IN_CORE + NEURONS_IN_CORE + AXONS_IN_CORE;
@@ -271,9 +285,6 @@ unsigned char mapTests(){
}
-
-
-
/**
* @brief NeMo Main entry point
*
@@ -282,9 +293,12 @@ unsigned char mapTests(){
*
*/
+
int main(int argc, char*argv[]) {
+
tw_opt_add(app_opt);
tw_init(&argc, &argv);
+
//call nemo init
init_nemo();
if(nonC11 == 1)
@@ -318,6 +332,9 @@ if(nonC11 == 1)
//neuron fire output testing function.
//testNeuronOut();
+
+
+
tw_run();
if(FILE_OUT)
diff --git a/src/nemo_main.h b/src/nemo_main.h
index 044d567..d72e706 100644
--- a/src/nemo_main.h
+++ b/src/nemo_main.h
@@ -8,14 +8,15 @@
#define EXTERN
#include "globals.h"
#undef EXTERN
-
+#include
#include "nemo_config.h"
#include "./neuro/axon.h"
#include "./neuro/synapse.h"
#include "./neuro/tn_neuron.h"
#include "ross.h"
#include "./tests/nemo_tests.h"
-
+#include "./IO/IOStack.h"
+#include "./IO/input.h"
#endif //NEMO_NEMO_MAIN_H
diff --git a/src/neuro/axon.c b/src/neuro/axon.c
index c481889..f19f80b 100644
--- a/src/neuro/axon.c
+++ b/src/neuro/axon.c
@@ -8,46 +8,45 @@
#include "axon.h"
-//Global Message CSV Writer -- for debug and message traacing
-#ifdef SAVE_MSGS
-//csv_writer * messageTrace;
-//
-//void axon_mark_message(axonState *s, messageData *M, tw_lpid gid, tw_lp *lp){
-//
-// if(!M->originGID){
-// M->originGID = gid;
-// M->msgCreationTime = tw_now(lp);
-// M->idp1 = s->axonID;
-// M->idp2 = getCoreFromGID(gid);
-// M->idp3 = s->sendMsgCount;
-// }
-// char * dm = tw_calloc(TW_LOC,2, sizeof(char), 256);
-// print(M->uuid);printf("\n");
-// sprint(dm,M->uuid);
-// addCol(messageTrace,dm , 0);
-// dm = tw_calloc(TW_LOC,2, sizeof(char), 256);
-// sprint(dm,M->originGID);
-// addCol(messageTrace, dm ,0);
-// dm = tw_calloc(TW_LOC,2 ,sizeof(char), 256);
-// sprint(dm,M->msgCreationTime);
-// addCol(messageTrace, dm, 0);
-// dm = tw_calloc(TW_LOC,2, sizeof(char), 256);
-// //sprint(dm,"Axon");
-// sprintf(dm, "%s", "Axon");
-// addCol(messageTrace, dm, 1);
-// addCol(messageTrace, lp->gid, 0);
-// addRow(messageTrace);
-//
-//}
-#endif
+
void axon_init(axonState *s, tw_lp *lp)
{
- static bool writeInit = false;
+
//TODO: Maybe switch this to a switch/case later, since it's going to get
//big.
static int specAxons = 0;
s->axtype = "NORM";
- if(PHAS_VAL) {//one phasic axon:
+
+ if(FILE_IN){
+
+
+ s->sendMsgCount = 0;
+ s->axonID = getAxonLocal(lp->gid);
+ s->destSynapse = getSynapseFromAxon(lp->gid);
+
+ //SLOW SLOW way to load spikes - need to optimize //
+ id_type core = getCoreFromGID(lp->gid);
+ spikeRecord * spk = getRecord(core, s->axonID);
+
+ while(spk != NULL){
+
+ tw_stime sched_event = floor(spk->scheduledTime) + JITTER;
+ tw_event *saxe = tw_event_new(lp->gid, sched_event, lp);
+
+ messageData *data = (messageData *) tw_event_data(saxe);
+ data->axonID = s->axonID;
+ data->eventType = AXON_OUT;
+ tw_event_send(saxe);
+ free(spk);
+ spk = getRecord(core, s->axonID);
+
+ }
+
+
+ specAxons ++;
+
+
+ }else if(PHAS_VAL) {//one phasic axon:
if (specAxons == 0){
//crPhasicAxon(s, lp);
specAxons ++;
@@ -69,13 +68,15 @@ void axon_init(axonState *s, tw_lp *lp)
//crTonicBurstingAxon(s, lp);
printf("Phasic bursting validation not available in this version of NeMo\n");
specAxons ++;
- }else if(FILE_IN){
- //Do file processing - load in the initial spikes here.
- if (g_tw_mynode == 0){
- tw_printf(TW_LOC,"Axon ID %llu attempted file load.\n",s->axonID);
- }
- }
- else { //else this is a random network for benchmarking.
+// }else if(FILE_IN){
+// //Do file processing - load in the initial spikes here.
+// if (g_tw_mynode == 0){
+// //why would an axon want to load a file?
+// //tw_printf(TW_LOC,"Axon ID %llu attempted file load.\n",s->axonID);
+//
+// }
+// }
+ } else { //else this is a random network for benchmarking.
s->sendMsgCount = 0;
s->axonID = getAxonLocal(lp->gid);
s->destSynapse = getSynapseFromAxon(lp->gid);
@@ -85,19 +86,6 @@ void axon_init(axonState *s, tw_lp *lp)
data->eventType = AXON_OUT;
data->axonID = s->axonID;
tw_event_send(axe);
-// if (SAVE_MSGS){
-// if(!writeInit){
-// messageTrace = createCSV("message_log", g_tw_mynode, g_tw_npe -1);
-// writeInit = true;
-//
-// }
-//
-// axon_mark_message(s, data, lp->gid, lp);
-// /** @todo add message save code to io stack
-// * */
-// // save message //
-//
-// }
}
@@ -161,4 +149,4 @@ void axon_final(axonState *s, tw_lp *lp){
}
}
-}
\ No newline at end of file
+}
diff --git a/src/neuro/axon.h b/src/neuro/axon.h
index 7bfa926..5a6b5a7 100644
--- a/src/neuro/axon.h
+++ b/src/neuro/axon.h
@@ -3,6 +3,7 @@
#include "../globals.h"
#include "../mapping.h"
#include "../IO/IOStack.h"
+#include "../IO/input.h"
typedef struct AxonState {
stat_type sendMsgCount;
tw_lpid destSynapse;
diff --git a/src/neuro/synapse.c b/src/neuro/synapse.c
index 216d396..a6d0586 100644
--- a/src/neuro/synapse.c
+++ b/src/neuro/synapse.c
@@ -5,31 +5,15 @@ void synapse_init(synapseState *s, tw_lp *lp){
s->msgSent = 0;
s->lastBigTick = 0;
s->myCore = getCoreFromGID(lp->gid);
- // The random benchmark network uses an "identity matrix" of axon->neuron connectivity for now.
- // So if we are using this type of network, set the diagonal of this synapse's connectivity grid to 1.
- if (!FILE_IN){
- for(int i = 0; i< AXONS_IN_CORE; i ++ ){
- for(int j = 0; j < NEURONS_IN_CORE; j++) {
- if (i == j){
- s->connectionGrid[i][j] = 1;
- }
- else
- s->connectionGrid[i][j] = 0;
- }
- }
- }
+
if(DEBUG_MODE){
printf("Super Synapse Created - GID is %llu\n", lp->gid);
}
}
-#ifdef SAVE_MSGS
-void saveSynapseMessage(messageData *M, tw_lp *lp){
-
-}
-#endif
+
void sendSynapseHB(synapseState *s, tw_bf *bf, messageData *M, tw_lp *lp, unsigned long count){
tw_event * synapseHB = tw_event_new(lp->gid, getNextSynapseHeartbeat(lp), lp);
@@ -49,6 +33,8 @@ void reverseSynapseHB(synapseState *s, tw_bf *bf, messageData *M, tw_lp *lp){
void synapse_event(synapseState *s, tw_bf *bf, messageData *M, tw_lp *lp){
unsigned long randCount = lp->rng->count;
+ if(M->axonID > AXONS_IN_CORE )
+ tw_error(TW_LOC, "Invalid AXON value within synapse system.");
if(M->eventType == SYNAPSE_HEARTBEAT){
//Heartbeat message
@@ -105,7 +91,8 @@ void synapse_event(synapseState *s, tw_bf *bf, messageData *M, tw_lp *lp){
// //get the LP @todo: look at changing this to direct array access
// cNeuron = tw_getlp(nid);
//
-//
+//
+
//
// //if(cNeuron->connectionGrid[axonID] != 0){
//
@@ -121,64 +108,7 @@ void synapse_event(synapseState *s, tw_bf *bf, messageData *M, tw_lp *lp){
// }
-///** TODO: This is probably not going to work. I think the synapse will need a larger state. */
-//
-//
-// messageData *outMessage;
-// tw_event *synEvt;
-//
-// if (M->eventType == AXON_OUT:){
-// synEvt = tw_event_new(lp->gid, getNextEventTime(lp),lp );
-// outMessage = (messageData *) tw_event_data(synEvt);
-// outMessage->eventType = SYNAPSE_HEARTBEAT;
-// outMessage->synapseCount = 0;
-// outMessage->axonID = M->axonID;
-//#ifdef SAVE_MSGS
-// saveSynapseMessage(M, lp);
-//#endif
-//
-// outMessage->rndCallCount = lp->rng->count - rc;
-//
-// tw_event_send(synEvt);
-//
-//
-// }else {
-// id_type axonID = M->axonID;
-// if ( s->connectionGrid[axonID][M->synapseCount] ) {
-// id_type destinationNeuron = getNeuronGlobal(s->myCore, M->synapseCount);
-// synEvt = tw_event_new(destinationNeuron, getNextEventTime(lp), lp);
-// outMessage = (messageData *) tw_event_data(synEvt);
-// outMessage->eventType = SYNAPSE_OUT;
-// outMessage->axonID = M->axonID;
-//
-//#ifdef SAVE_MSGS
-// saveSynapseMessage(M, lp);
-//#endif
-// outMessage->rndCallCount = lp->rng->count - rc;
-//
-// tw_event_send(synEvt);
-// }
-// if(M->synapseCount < NEURONS_IN_CORE){
-// rc = lp->rng->count;
-// synEvt = tw_event_new(lp->gid, getNextEventTime(lp), lp);
-// outMessage = (messageData * ) tw_event_data(synEvt);
-// outMessage->eventType = SYNAPSE_HEARTBEAT;
-// outMessage->synapseCount = M->synapseCount + 1;
-// outMessage->axonID = M->axonID;
-//#ifdef SAVE_MSGS
-// saveSynapseMessage(M, lp);
-//#endif
-// outMessage->rndCallCount = lp->rng->count - rc;
-// tw_event_send(synEvt);
-// }
-//
-//
-// }
-//
-
-
- //}
void synapse_reverse(synapseState *s, tw_bf *bf, messageData *M, tw_lp *lp){
@@ -205,6 +135,10 @@ void synapse_final(synapseState *s, tw_lp *lp){
debugMsg(m, s->msgSent);
}
}
+ print( (char*) "SS Messages sent: ");
+ print(s->msgSent);
+
+
}
diff --git a/src/neuro/synapse.h b/src/neuro/synapse.h
index 9946eb8..be65122 100644
--- a/src/neuro/synapse.h
+++ b/src/neuro/synapse.h
@@ -1,4 +1,3 @@
-//
// Created by Mark Plagge on 5/25/16.
//
diff --git a/src/neuro/tn_neuron.c b/src/neuro/tn_neuron.c
index effec7e..38a4056 100644
--- a/src/neuro/tn_neuron.c
+++ b/src/neuro/tn_neuron.c
@@ -4,6 +4,34 @@
#include "tn_neuron.h"
+/** Testing Values @{*/
+ #ifdef NET_IO_DEBUG
+ //#include "../tests/nemo_tests.h"
+ char * BBFN = "neuron_config_test";
+ FILE * neuronConfigFile;
+ char configFileName[128];
+
+ #endif
+/*@}*/
+
+/** Enum for parsing CSV data */
+enum arrayFtr{
+ CONN , //Syn. Connectivity
+ AXTP, //Axon Types
+ SGI, //sigma GI vals
+ SP, //S Vals
+ BV, //b vals
+ NEXT, //goto next array data chunk
+ OUT //out of array data
+};
+//nextToI() is a quick way to reduce the amount I type the ATOI function.
+//In Globals.h, there is a proto-macro that I'm working on that will
+//auto-choose the right string conversion function.
+
+//TODO: move this to a sane location or possibly replace with nice functions.
+#define nextToI() atoi(raw.rawDatM[currentFld++]);
+
+
/** \defgroup TN_Function_hdrs True North Function headers
* TrueNorth Neuron leak, integrate, and fire function forward decs.
* @{ */
@@ -552,6 +580,7 @@ void TNNumericLeakCalc(tn_neuron_state* st, tw_stime now) {
void TN_set_neuron_dest(int signalDelay, uint64_t gid, tn_neuron_state* n) {
n->delayVal = signalDelay;
n->outputGID = gid;
+
}
/** @} */
@@ -729,7 +758,140 @@ void TN_create_simple_neuron(tn_neuron_state* s, tw_lp* lp) {
created++;
}
+
+
+void parseCSVCreateTN(tn_neuron_state *st, csvNeuron raw){
+ st->myCoreID = raw.req_core_id;
+ st->myLocalID = raw.req_local_id;
+ int currentFld = 3; //Data starts at 4th element: "TN",CORE,LOCAL,....
+
+ // Set up neuron params in arrays:
+ // Synaptic Connectivity, Gi, SigmaG, S, B
+ enum arrayFtr arrayNum = CONN;
+ //Calculation needed for neurosynaptic weights (sigma[i] * S[i]), so store sigma and S in arrays
+ short sigma[NUM_NEURON_WEIGHTS];
+ short S[NUM_NEURON_WEIGHTS];
+
+ // for array features, this is the number of elements total to be loaded.
+ int lenOfArrayParams = (NEURONS_IN_CORE * 2) + (NUM_NEURON_WEIGHTS * 3);
+ void * datum;
+ int pos = 0;
+ for(int i = 0; i < lenOfArrayParams; i ++){
+ switch (arrayNum) {
+ case CONN:
+ st->synapticConnectivity[pos] = nextToI(); // atoi(raw.rawDatM[currentFld ++]);
+ break;
+ case AXTP:
+ st->axonTypes[pos] = nextToI();
+ break;
+ case SGI:
+ sigma[pos] = nextToI();
+ break;
+ case SP:
+ S[pos] = nextToI();
+ break;
+ case BV:
+ st->weightSelection[pos] = nextToI();
+ break;
+
+ }
+ switch (arrayNum){
+ case CONN:
+ case AXTP:
+ if(pos == NEURONS_IN_CORE - 1){
+ arrayNum ++;
+ pos = 0;
+ }else{
+ pos ++;
+ }
+ break;
+ case SGI:
+ case SP:
+ case BV:
+ if(pos == NUM_NEURON_WEIGHTS - 1){
+ arrayNum ++;
+ pos = 0;
+ }else{
+ pos ++;
+ }
+
+ }
+ }
+ //set up weights:
+ for (int i = 0; i < NUM_NEURON_WEIGHTS; i ++){
+ st->synapticWeight[i] = sigma[i] * S[i];
+ }
+ st->epsilon = nextToI();
+ st->sigma_l = nextToI();
+ st->lambda = nextToI();
+ st->c = nextToI();
+
+ st->posThreshold = nextToI();
+ st->negThreshold = nextToI();
+
+ st->thresholdPRNMask = nextToI();
+ st->thresholdPRNMask = pow(2, st->thresholdPRNMask) - 1;
+
+ short VR = nextToI();
+ short sigmaVR = nextToI();
+ sigmaVR = SGN(sigmaVR);
+ st->resetVoltage = (sigmaVR * (pow(2, VR) -1));
+ st->encodedResetVoltage = VR;
+
+ st->resetMode = nextToI();
+ st->kappa = nextToI();
+ st->omega = 0;
+
+ int signalDelay = nextToI();
+ int destCore = nextToI();
+ int destLocal = nextToI();
+ st->dendriteLocal = destLocal;
+ tw_lpid globalDest = getGIDFromLocalIDs(destCore, destLocal);
+ TN_set_neuron_dest(signalDelay, globalDest, st);
+
+
+ st->isOutputNeuron = nextToI();
+ st->isSelfFiring = nextToI();
+ st->isActiveNeuron = true;
+ //set up PRNG masks:
+
+
+ //final insurance that state is consistent:
+ assert(st->largestRandomValue < 256);
+
+
+
+}
+
/** @} */
+/** attempts to find this neuron's def. from the file input.
+ Files are assumed to be inited during main().
+
+ */
+void TN_Create_From_File(tn_neuron_state* s, tw_lp* lp){
+
+ //first, get our GID.
+ id_type core = getCoreFromGID(lp->gid);
+ id_type nid = getNeuronLocalFromGID(lp->gid);
+
+ //Next, get the fields from the neuron txt:
+ struct CsvNeuron rawNeuron = getNeuronData(core, nid);
+ if (rawNeuron.foundNeuron){
+ //found the neuron, set up state
+ parseCSVCreateTN(s, rawNeuron);
+ s->isActiveNeuron = true;
+ } else {
+ //no neuron, so set up a disconnected neuron.
+ s->isActiveNeuron = false;
+ s->myCoreID = core;
+ s->myLocalID = nid;
+ }
+
+
+
+
+
+}
/** /defgroup TN_ROSS_HANDLERS
* Implementations of TN functions that are called by ross. Forward, reverse,
@@ -740,77 +902,41 @@ void TN_create_simple_neuron(tn_neuron_state* s, tw_lp* lp) {
void TN_init(tn_neuron_state* s, tw_lp* lp) {
static int pairedNeurons = 0;
static bool announced = false;
- s->neuronTypeDesc = "SIMPLE";
+ //s->neuronTypeDesc = "SIMPLE";
if (DEBUG_MODE && !announced) {
printf("Creating neurons\n");
announced = true;
}
- // ADD FILE INPUT NEURON CREATION HERE
-
- TN_create_simple_neuron(s, lp);
-
- // createDisconnectedNeuron(s, lp);
-
- // messageData *setupMsg;
- // tw_event *setupEvent;
- //
- // setupEvent = tw_event_new(lp->gid, getNextEventTime(lp), lp);
- // setupMsg = (messageData *) tw_event_data(setupEvent);
- //
- //
- // bool * connectivity = tw_calloc(TW_LOC,"LP",sizeof(bool),AXONS_IN_CORE);
- // for (int i = 0; i < AXONS_IN_CORE; i ++){
- // connectivity[i] = s->synapticWeight[s->axonTypes[i]];
- // }
- // setupMsg->eventType = NEURON_SETUP;
- // setupMsg->localID = s->myLocalID;
- // setupMsg->neuronConn = connectivity;
- //
- // tw_event_send(setupEvent);
-
- if (DEBUG_MODE) {
- printf(
- "Neuron type %s, num: %llu checking in with GID %llu and dest %llu \n",
- s->neuronTypeDesc, s->myLocalID, lp->gid, s->outputGID);
- }
- // Original NeMo Neuron Init
- // static int pairedNeurons = 0;
- // s->neuronTypeDesc = "SIMPLE";
- // if(DEBUG_MODE && ! annouced)
- // printf("Creating neurons\n");
- //
- // if(PHAS_VAL) {
- // if(!pc){
- // crPhasic(s, lp);
- // pc = true;
- // }
- // else {
- // createDisconnectedNeuron(s, lp);
- // }
- //
- // } else if(TONIC_BURST_VAL) {
- // if(pairedNeurons < 2) {
- // crTonicBursting(s, lp);
- // pairedNeurons ++;
- // }
- // else {
- // createDisconnectedNeuron(s, lp);
- // }
- // } else if (PHASIC_BURST_VAL){
- // if (pairedNeurons < 2) {
- // crPhasicBursting(s, lp);
- // pairedNeurons ++;
- // }
- //
- // } else {
- // createSimpleNeuron(s, lp);
- // }
- // //createDisconnectedNeuron(s, lp);
- // annouced = true;
+ if(FILE_IN){
+ TN_Create_From_File(s, lp);
+
+ }else{
+ //TN_create_simple_neuron(s, lp);
+ s->isActiveNeuron = false;
+
+
+ }
+
+#ifdef NET_IO_DEBUG
+
+ testCreateTNNeuronFromFile(s, lp);
+#endif
+
}
+
+
void TN_forward_event(tn_neuron_state* s, tw_bf* CV, messageData* m,
tw_lp* lp) {
+ long ld = s->myLocalID;
+ long cd = s->myCoreID;
+ //if (m->eventType == SYNAPSE_OUT && m->axonID == 0){
+ // printf("Axon 0 rcvd. \n");
+ //}
+
+ if(! s->isActiveNeuron){
+ return;
+ }
long start_count = lp->rng->count;
// //Delta Encoding
@@ -825,8 +951,8 @@ void TN_forward_event(tn_neuron_state* s, tw_bf* CV, messageData* m,
// or we are saving membrane
// potentials
- // saveNeruonState(s->myLocalID, s->myCoreID, s->membranePotential,
- // tw_now(lp));
+ //saveNeruonState(s->myLocalID, s->myCoreID, s->membranePotential,
+ //tw_now(lp));
}
bool fired = TNReceiveMessage(s, m, lp, CV);
@@ -847,8 +973,13 @@ void TN_forward_event(tn_neuron_state* s, tw_bf* CV, messageData* m,
// tw_snapshot_delta(lp, lp->type->state_sz);
}
+
+
void TN_reverse_event(tn_neuron_state* s, tw_bf* CV, messageData* m,
tw_lp* lp) {
+ if(! s->isActiveNeuron){
+ return;
+ }
long count = m->rndCallCount;
// tw_snapshot_restore(lp, lp->type->state_sz);
if (VALIDATION || SAVE_MEMBRANE_POTS) {
@@ -880,7 +1011,10 @@ void prhdr(bool* display, char* hdr) {
*display = true;
}
}
-void TN_final(tn_neuron_state* s, tw_lp* lp) {
+void TN_final(tn_neuron_state *s, tw_lp *lp) {
+#ifdef NET_IO_DEBUG
+ closeTestFile();
+#endif
if (g_tw_synchronization_protocol == OPTIMISTIC_DEBUG) {
// Alpha, SOPS should be zero. HeartbeatOut should be false.
char* em = (char*)calloc(1024, sizeof(char));
@@ -910,4 +1044,131 @@ inline tn_neuron_state* TN_convert(void* lpstate) {
return (tn_neuron_state*)lpstate;
}
-/*@}*/
+/**@}*/
+/** RIO Functions for neuron config @{ **/
+size_t tn_size(tn_neuron_state *s, tw_lp *lp){
+ size_t neuronSize = sizeof(tn_neuron_state);
+ return neuronSize;
+}
+void tn_serialize(tn_neuron_state *s, void * buffer, tw_lp *lp){
+ memcpy(buffer, s, sizeof(tn_neuron_state));
+}
+void tn_deserialize(tn_neuron_state *s, void *buffer, tw_lp *lp) {
+ memcpy(s, buffer, sizeof(tn_neuron_state));
+}
+
+#ifdef NET_IO_DEBUG
+
+
+
+
+int tddbFileOpen = 0;
+
+
+
+
+void testCreateTNNeuronFromFile(tn_neuron_state *s, tw_lp *lp){
+
+ if (!tddbFileOpen){
+ sprintf(configFileName, "%s_%li.csv", BBFN, g_tw_mynode);
+ neuronConfigFile = fopen(configFileName, "w");
+ tddbFileOpen =1;
+ fprintf(neuronConfigFile, "type,isOutput,coreID,localID,"
+ "sigma0,sigma1,sigma2,sigma3,"
+ "s0,s1,s2,s3,"
+ "b0,b1,b2,b3,"
+ "sigma_lambda,"
+ "lambda,"
+ "c_lambda,"
+ "epsilon,"
+ "alpha,"
+ "beta,"
+ "TM,"
+ "gamma,"
+ "kappa,"
+ "sigma_VR,"
+ "VR,"
+ "V,"
+ "core_delay,"
+ "isSelfFiring,"
+
+ );
+ for(int i = 0; i < (NEURONS_IN_CORE * 2); i ++){
+ if(i / NEURONS_IN_CORE == 0){
+ fprintf(neuronConfigFile, "synapseConn-%i,",i%NEURONS_IN_CORE);
+ }else{
+ fprintf(neuronConfigFile, "synapse_type-%i,",i%NEURONS_IN_CORE);
+ }
+ }
+
+ UN( "isActive\n");
+ }
+ fflush(neuronConfigFile);
+ //Loop through the elements of the neuron state, saving it's configuration to the file.
+ MCRN("TN", s->isOutputNeuron,s->myCoreID,s->myLocalID);
+
+ fflush(neuronConfigFile);
+ int mode = 0;
+ int ss = 1;
+ for (int i = 0; i < (NUM_NEURON_WEIGHTS * 2); i ++){
+ if (i / NUM_NEURON_WEIGHTS == 0){
+ mode ++;
+ }
+ switch (mode) {
+ case 1:
+ //sigma0, sigma1, sigma2, sigma3 (sign of inputs from axons of type s0,s1,s2,s3
+ ss = SGN(s->synapticWeight[i % NUM_NEURON_WEIGHTS]);
+ MCRN(ss);
+ break;
+
+ case 2:
+ MCRN(s->synapticWeight[i % NUM_NEURON_WEIGHTS]);
+
+ break;
+ case 3:
+ MCRN(s->weightSelection[i % NUM_NEURON_WEIGHTS]);
+ break;
+
+ }
+ }
+
+ MCRN((int)s->sigma_l,s->lambda, s->c,s->epsilon);
+
+ MCRN(s->posThreshold, s->negThreshold, s->thresholdPRNMask, s->resetMode);
+ MCRN(s->kappa, s->sigmaVR, s->encodedResetVoltage,s->membranePotential);
+
+ MCRN((unsigned int) s->delayVal, (unsigned int)s->canGenerateSpontaniousSpikes);
+
+ fflush(neuronConfigFile);
+
+
+ for (int i = 0; i < (NEURONS_IN_CORE * 2); i ++){
+ if (i / NEURONS_IN_CORE == 0){
+ MCRN(s->synapticConnectivity[i]);
+ }else{
+ MCRN(s->axonTypes[i % NEURONS_IN_CORE]);
+ }
+ }
+
+ fflush(neuronConfigFile);
+ for(int i = 0; i < (NUM_NEURON_WEIGHTS); i++){
+ MCRN(s->weightSelection[i]);
+ }
+ fflush(neuronConfigFile);
+ UN("\n");
+ fflush(neuronConfigFile);
+
+
+
+
+}
+
+void closeTestFile(){
+ if(tddbFileOpen){
+ fclose(neuronConfigFile);
+
+ tddbFileOpen = 0;
+ }
+}
+#endif
+
diff --git a/src/neuro/tn_neuron.h b/src/neuro/tn_neuron.h
index 6161c03..d244f53 100644
--- a/src/neuro/tn_neuron.h
+++ b/src/neuro/tn_neuron.h
@@ -6,17 +6,18 @@
#define __NEMO_TN_NEURON_H__
#include
+#include
#include "../IO/IOStack.h"
#include "../globals.h"
#include "../mapping.h"
-#define Vj ns->membranePotential
-
-#ifdef SAVE_MSGS
-
-#endif
+#include "../nemo_config.h"
+#include "../IO/input.h"
+#include "../IO/output.h"
-#ifdef SAVE_NEURON_STATS
+#define Vj ns->membranePotential
+#ifdef NET_IO_DEBUG
+#include
#endif
/**
@@ -70,14 +71,14 @@ typedef struct TN_MODEL {
short largestRandomValue;
short lambda; //!< leak weight - \f$𝜆\f$ Leak tuning parameter - the leak
//!rate applied to the current leak function.
- short int resetMode; //!< Reset mode selection. Valid options are 0,1,2 .
- //!Gamma or resetMode 𝛾
+ short int resetMode; //!
+#include "testIO.h"
/**
* @file nemo_tests.h
@@ -31,7 +33,7 @@
* @param[in] neuronsPerCore The neurons per core
* @param[in] coreSize The core size
*
- * @return an array of tw_lpid's
+ * @return an array of tw_lpid's
*
*/
tw_lpid * testCreateLPID(int neuronsPerCore, int totalLPs);
diff --git a/src/tests/testIO.c b/src/tests/testIO.c
new file mode 100644
index 0000000..1ae940b
--- /dev/null
+++ b/src/tests/testIO.c
@@ -0,0 +1,57 @@
+//
+// Created by Mark Plagge on 2/28/17.
+//
+
+#import "testIO.h"
+#import
+#import
+int testInitInput(){
+ int r = openInputFiles();
+
+ oprint("Open Input File Result", r);
+ return r;
+}
+
+int testCloseInput(){
+ int r = closeNetworkFile();
+ return r;
+}
+
+int testPreParseNetwork(){
+ int r = 0;
+ parseNetworkFile();
+
+ for(int i = 0; i < NEURONS_IN_CORE * CORES_IN_SIM; i ++){
+ r = neuronMap[i] && r;
+ }
+
+ return r;
+}
+
+int testNeuronRead(){
+ int r = 0;
+ //Performance test
+ clock_t begin = clock();
+
+ for(int core = 0; core < CORES_IN_SIM; core ++){
+ for (int nid = 0; nid < NEURONS_IN_CORE; nid ++) {
+ csvNeuron n = getNeuronData(core, nid);
+ if(n.req_core_id != core || n.req_local_id != nid){
+ printf("Core or NID != found value.");
+ oprint("Core:", core);
+ oprint("Found:", n.req_core_id);
+ oprint("NID:", nid);
+ oprint("Found:", n.req_local_id);
+
+ }
+ }
+
+
+ }
+ clock_t end = clock();
+ double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
+ debugMsg("Time spent finding neuron data: ", time_spent);
+
+
+ return r;
+}
diff --git a/src/tests/testIO.h b/src/tests/testIO.h
new file mode 100644
index 0000000..8f9a5da
--- /dev/null
+++ b/src/tests/testIO.h
@@ -0,0 +1,22 @@
+//
+// Created by Mark Plagge on 2/28/17.
+//
+
+#ifndef SUPERNEMO_TESTIO_H
+#define SUPERNEMO_TESTIO_H
+#import "../IO/input.h"
+#import "../IO/output.h"
+#import "../globals.h"
+#import "../neuro/tn_neuron.h"
+
+int testInitInput();
+int testCloseInput();
+int testPreParseNetwork();
+int testNeuronRead();
+
+
+
+
+#endif //SUPERNEMO_TESTIO_H
+
+