Learning Roadmap (Where to Start)
This site has more than 80 pages. You do not need to read them in order. The shortest path depends on where you are coming from, so use this page to decide where to start and what to read next — nothing else.
The four routes
Section titled “The four routes”flowchart TD START["Who are you?"] --> P1["ML beginner<br/>new to neural nets"] START --> P2["PyTorch user<br/>can write nn.Module"] START --> P3["FPGA engineer<br/>circuits and HDL"] START --> P4["Researcher<br/>wants numbers"]
P1 --> A1["AI Basics"] --> A2["Intro course (3)<br/>PyTorch → MLP → DLGN"] --> A3["Train on MNIST"] P2 --> B1["Coming from PyTorch"] --> B2["Train on MNIST"] --> B3["What Should I Use?"] P3 --> C1["XOR Internals"] --> C2["Export to HDL"] --> C3["Deploy to FPGA"] P4 --> D1["Benchmarks"] --> D2["Results & Experiments"] --> D3["DLGN Taxonomy"]
A3 --> HUB["Tutorial<br/>gallery"] B3 --> HUB C3 --> HUB D3 --> HUB
style P1 fill:#38bdf826,stroke:#38bdf8 style P2 fill:#eab30826,stroke:#eab308 style P3 fill:#f9731626,stroke:#f97316 style P4 fill:#ef444426,stroke:#ef4444 style HUB fill:#10b98126,stroke:#10b981Route A: New to neural networks
Section titled “Route A: New to neural networks”A logic-gate NN is “an ordinary neural network whose weights became truth tables”, so picking up the ordinary NN vocabulary first (layers, loss, gradients) makes everything after it much faster.
| # | Read | What you get |
|---|---|---|
| 1 | AI Basics | What a neural network is and what training actually does |
| 2 | Intro 1. NN & PyTorch Basics | Tensors, autograd and the training loop, hands-on (no DLGN yet) |
| 3 | Intro 2. Build an MLP in PyTorch | Three nn.Linear layers on MNIST, and what the real-valued weights look like |
| 4 | Intro 3. Replace the MLP with a DLGN | The same training loop, swapped over to LutLayer / GroupSum |
| 5 | Core Concepts | The five concepts: soft/hard, LutLayer, GroupSum, IR, HDL |
| 6 | Installation → Quickstart | Get it running locally |
| 7 | 1. Train on MNIST | 4000 logic gates reading handwritten digits |
| 8 | Appendix: XOR Internals | The whole mechanism in a 16-gate network |
Route B: Coming from PyTorch
Section titled “Route B: Coming from PyTorch”This library is ordinary PyTorch (nn.Module, loss.backward(), torch.optim),
so you only have to learn the diff. The biggest trap is that model.eval()
means something different here.
| # | Read | What you get |
|---|---|---|
| 1 | Coming from PyTorch | nn.Linear→LutLayer, and how model.eval() differs |
| 2 | 1. Train on MNIST | The fastest working example |
| 3 | What Should I Use? | Decide architecture, parameterization, fan-in, learning rule |
| 4 | Training / Reading Training Curves | CLI vs Python API, reading soft vs hard accuracy |
| 5 | Tutorial gallery | Find the example closest to your model (see the table below) |
Route C: FPGA engineers and circuit designers
Section titled “Route C: FPGA engineers and circuit designers”It is faster to look at what the generated Verilog actually is before reading about training. Start from the smallest XOR and follow it through the IR (JSON) to HDL.
| # | Read | What you get |
|---|---|---|
| 1 | Appendix: XOR Internals | A 16-gate circuit decided by training |
| 2 | 3. Export to HDL | IR extraction → Verilog/VHDL → equivalence check |
| 3 | Working with IR / IR Schema | The structure of the IR, which is the source of truth |
| 4 | Deploy to FPGA | Running on Tang Nano 20K / DE0-CV |
| 5 | 5. Export a CNN to HDL / 7. End-to-End Walkthrough | Circuits at a realistic scale |
Route D: Researchers evaluating the approach
Section titled “Route D: Researchers evaluating the approach”Check “how far does it get” and “what was it compared against” first, then descend into the theory.
| # | Read | What you get |
|---|---|---|
| 1 | Benchmarks | Measured accuracy and speed |
| 2 | Paper Reproduction | Reproduction status of the difflogic paper |
| 3 | Architecture Survey | How far each architecture got |
| 4 | Discretization Gap / Parameterization Study | How much soft→hard costs, and what fixes it |
| 5 | DLGN Taxonomy / LutLayer Internals | The three lineages and the gradient math |
Common architecture names → tutorials on this site
Section titled “Common architecture names → tutorials on this site”The table that answers “is there an RNN tutorial?”. Tutorials here are named after the specific model (LSTM, WaveNet, …), so this maps the general architecture names onto them.
Reverse lookup by goal
Section titled “Reverse lookup by goal”| What you want to do | Go to |
|---|---|
| Just run something | Quickstart |
| Decide which configuration to use | What Should I Use? |
| Training will not converge | Troubleshooting |
| Soft accuracy is fine but hard collapses | Discretization Gap |
| Turn it into a circuit on an FPGA | HDL Export → Deploy to FPGA |
| Rewire the structure in a browser | Visual Editor |
| Look up arguments and types | Python API |
| Look up a term | Glossary |
What to read next
Section titled “What to read next”- Tutorial gallery — pick from thumbnails of all 27 executed tutorials
- What Should I Use? — the four choices on one page
- What is DLGN? — why train logic gates directly
- FAQ — “does it really run without a GPU?” and more