Hybrid neural simulation and digital logic framework built around:
- A configurable Hodgkin-Huxley neuron model
- Event-driven synaptic network orchestration
- NAND-only digital architecture primitives and composed circuits
- Hodgkin-Huxley neuron dynamics from scratch (
hodgkinhuxley.py) - Synapse and network orchestration for multi-neuron circuits (
connection.py) - NAND-only fabric with derived gates, adder, comparator, and ALU (
nand_architectures.py) - Demo runner with plotting and CLI options (
main.py)
.
├── connection.py
├── hodgkinhuxley.py
├── main.py
├── nand_architectures.py
├── requirements.txt
├── CONTRIBUTING.md
├── LICENSE
└── docs
├── API.md
└── ARCHITECTURE.md
- Create and activate a virtual environment.
- Install dependencies:
pip install -r requirements.txt- Run all demos:
python main.pyRun HH-only demo:
python main.py --mode hhRun NAND-only demos:
python main.py --mode nandRun without opening plot windows:
python main.py --no-showSave generated figures:
python main.py --save-prefix output/demoThis writes:
output/demo_hh.pngoutput/demo_nand_scaling.png
- HH coincidence circuit: Two upstream neurons (A and B) converge onto C. Tunable synaptic weights and pulse timing let you explore coincidence-driven firing behavior.
- NAND universality: Complex digital behavior (adder/comparator/ALU) is composed from NAND primitives only.
- API reference:
docs/API.md - Architecture notes:
docs/ARCHITECTURE.md
See CONTRIBUTING.md for style, checks, and workflow.
MIT License. See LICENSE.