From f4854ae4c816a7718c88b3b0d230c24786553f26 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 30 Jul 2026 12:36:31 -0700 Subject: SPICE crossbar readout layer --- src/crossbar_generator.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/crossbar_generator.h') 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 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 -- cgit v1.2.3