---
title: "Files"
description: "What is in the amp card folder of the repository, and which files are generated."
---

The amp card lives in [`hardware/amp-card/`](https://github.com/chriscasper/Slotline/tree/main/hardware/amp-card) in the repository.

## Design files

| File | What it is |
| --- | --- |
| `amp-card-v0.2.kicad_pro` | The KiCad project. Open this one, in KiCad 7 or later. |
| `amp-card-v0.2.kicad_sch` | The top schematic sheet. |
| `power-entry.kicad_sch`, `rails-control.kicad_sch`, `amplifier.kicad_sch`, `output.kicad_sch`, `dac-input.kicad_sch` | The five sub-sheets. |
| `amp-card-v0.2-schematic.pdf` | All six pages as a PDF. |
| `svg/` | The same pages as SVG. |
| `amp-card-v0.2.net` | The netlist: 174 parts, 114 nets. The drawn schematic exports the same connections. |
| `amp-card-v0.2-bom.csv` | The parts list, with manufacturer part numbers and notes. |
| `amp-card-v0.2.json` | Parts and nets as data, read by the schematic generator. |
| `AmpCard.pretty/`, `fp-lib-table` | Footprints KiCad's own libraries don't cover, already linked to the project. |

## Pinouts

| File | What it is |
| --- | --- |
| `amp-slot-pinout-v0.2.csv` | The J10 and J11 pin maps. See [Amp slot pinout](/architecture/amp-slot-pinout). |
| `expansion-slot-pinout-v0.2.csv` | The card-edge map the expansion slots keep. See [Expansion slot pinout](/architecture/expansion-slot-pinout). |

## Custom footprints

| Footprint | For |
| --- | --- |
| `HTSSOP-44_6.1x14mm_P0.635mm_TopPad_HandSolder` | The amp chip, with longer pads for hand soldering. |
| `L_Coilcraft_MA5172_Toroid_Vertical` | The output inductors. Drawn from typical sizes, see [Check before routing](/amp-card/checks). |
| `Fuse_Littelfuse_453_NANO2` | The backstop fuse. Drawn from typical sizes. |
| `WireLink_P10mm_Drill1.6mm` | The wire links for bridged mode. |

## Generated files

Two Python scripts write nearly everything above. Change a value in the script, not in the output, then rerun both:

```bash
python3 gen_ampcard.py <folder>
python3 gen_schematic.py <folder>
```

`gen_ampcard.py` writes the netlist, parts list, pinouts and footprints. `gen_schematic.py` draws the schematic sheets from them. Both need Python 3 and no extra packages.

## License

The hardware files are under CERN-OHL-S v2. See [Licenses](/contributing/licenses).
