summaryrefslogtreecommitdiff
path: root/src/crossbar_generator.h
diff options
context:
space:
mode:
authorYour Name <[email protected]>2026-07-30 12:36:31 -0700
committerYour Name <[email protected]>2026-07-30 12:36:31 -0700
commitf4854ae4c816a7718c88b3b0d230c24786553f26 (patch)
tree961026865725518e3f85ace350cdc8db75588f43 /src/crossbar_generator.h
parent09c8f740da0b833c08c78fa30f80e3dc04e218c4 (diff)
SPICE crossbar readout layer
Diffstat (limited to 'src/crossbar_generator.h')
-rw-r--r--src/crossbar_generator.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/crossbar_generator.h b/src/crossbar_generator.h
index e6ff4ae..d773fad 100644
--- a/src/crossbar_generator.h
+++ b/src/crossbar_generator.h
@@ -4,37 +4,37 @@
#include <stddef.h>
typedef struct {
- size_t rows; //number of neurons
- size_t columns; //number of outputs
+ size_t rows; // number of neurons
+ size_t columns; // number of outputs
- //array of row input voltages.
- //length must equal rows (# of rows)
- const double *input_series;
- size_t num_samples;
+ // array of row input voltages.
+ // length must equal rows (# of rows)
+ const double *input_series;
+ size_t num_samples;
- //array of initial resistances
- //stored in row-major order
- //size must be rows * colums
- const double *initial_resistance;
+ // array of initial resistances
+ // stored in row-major order
+ // size must be rows * colums
+ const double *initial_resistance;
- //path to the memory component path
- const char *model_path;
+ // path to the memory component path
+ const char *model_path;
- //name of subcircuit(specific model)
- const char *subcircuit_name;
+ // name of subcircuit(specific model)
+ const char *subcircuit_name;
- //resistance from each column to ground
- double load_resistance;
+ // resistance from each column to ground
+ double load_resistance;
- //transient sim settings
- double time_step;
- double stop_time;
+ // transient sim settings
+ double time_step;
+ double stop_time;
- //1 = true | 0 = false
- int print_state_nodes;
+ // 1 = true | 0 = false
+ int print_state_nodes;
} Crossbar_Config;
-int generate_crossbar(const char *output_filename,
- const Crossbar_Config *config);
+int generate_crossbar(const char *output_filename,
+ const Crossbar_Config *config);
#endif