Mask-locked inference chip design toolchain. The chip IS the agent.
git clone https://github.com/Lucineer/frozen-intelligence.git
cd frozen-intelligence
python3 tests/test_all.py
python3 cli.py --help
python3 cli.py simulate --prompt "Hello" --tokens 16
python3 cli.py estimate --model 3b --process 28nm --yield_pct 85| Class | Parameters | Power | Tokens/s | Use Case |
|---|---|---|---|---|
| Scout | 1B | <1W | 100 | Edge sensors, microcontrollers |
| Messenger | 3B | 2.5W | 80 | Voice assistants, smart devices |
| Navigator | 7B | 5W | 50 | Field operations, autonomous systems |
| Captain | 13B | 10W | 30 | On-premise reasoning, data center edge |
- Weight-locked: Model weights hardwired into metal interconnect
- TLMM: Table-Lookup MatMul (90% LUT reduction vs traditional MAC)
- Yield-aware swarm tiling: MoE routing with defect tolerance
- Zero boot time: Powers on and immediately processes tokens
- Mixed precision: LayerNorm=FP32, Embed=INT8, Attention/FFN=INT4
- Hardware security: TRNG, AES-256, secure boot, PUF authentication
- NoC mesh: XY routing with virtual channels and wormhole switching
- DDR4/LPDDR4: Bank-interleaved memory controller with refresh management
metal_compiler.py— Weight quantization → binary METL format → die sizeweight_compiler.py— Full weight-to-metal pipeline (PyTorch → mixed-precision → binary)inference_engine.py— Chip simulation, thermal management, fleet routingverilog_generator.py— MAC units, systolic arrays, chip top module, testbenchchip_verifier.py— Timing/power/DRC, test pattern generation
gdsii_generator.py— GDSII stream format: weight tiles, pad rings, die assemblydrc_checker.py— Design Rule Checker: width, spacing, enclosure, density (28nm LP)floorplanner.py— Chip floorplan: weight banks, I/O pads, power grid, clock tree, thermalfpga_toolkit.py— TLMM encoding, COE generation, Hilbert curve weight layout
tlmm_engine.py— Table-Lookup MatMul (arXiv:2510.15926), 4×4 to 64×64 arraysweight_streamer.py— DDR4 → BRAM streaming controller with pipelineclock_gating.py— Hierarchical clock gating, DVFS, thermal throttlingpcie_interface.py— PCIe config space, BAR mapping, MMIO, DMA simulation
swarm_tiler.py— Yield-aware MoE tiling, die grading (GOLD/SILVER/BRONZE/SCRAP), Monte Carlo
netlist_gen.py— Structural Verilog netlist: MAC, multiplier, weight bank, top-leveltestbench_gen.py— Verilog testbench: stimulus, reset, scoreboard, response checkinglayer_simulator.py— NN layer simulation with mixed precision and per-vessel throughput
quant_research.py— Precision sweep, mixed-precision analysis, optimal bits per layertiming_analyzer.py— STA: MAC critical path, systolic arrays, PVT corner analysispower_estimator.py— Dynamic + leakage power, per-vessel, process node comparisonsignal_integrity.py— Eye diagrams, crosstalk, termination, transmission line modeling
synth_estimator.py— Cell library area/power estimation, multiplier, systolic, full-chip
memory_controller.py— DDR4/LPDDR4: command scheduling, bank interleaving, refreshnoc_router.py— Mesh NoC: XY routing, virtual channels, wormhole switching
equipment_detector.py— USB vessel scanning, character sheet generationa2a_handler.py— A2A protocol, DID identity, fleet bus integrationhardware_security.py— TRNG, AES-256 CTR, secure boot chain, PUF chip authentication
formal_checker.py— Bounded model checking: safety, liveness, invariants, counterexamplesrtl_simulator.py— Event-driven RTL sim: AND/OR/XOR/MUX/FA/DFF, trace, multi-cycle
cost_model.py— NRE, unit cost, yield, packaging, volume/process comparisonjtag_debug.py— JTAG TAP controller, DAP debug access, boundary scan
sdk.py— Host-side USB transport, streaming generation, fleet modecli.py— Unified CLI:compile,verify,estimate,simulate,benchmark
┌─────────────────────────┐
│ EDGE: expendable │
│ ┌───────────────────┐ │
│ │ MID: important │ │
│ │ ┌─────────────┐ │ │
│ │ │ CORE: │ │ │
│ │ │ Router │ │ │
│ │ │ Safety │ │ │
│ │ │ Primary │ │ │
│ │ └─────────────┘ │ │
│ └───────────────────┘ │
└─────────────────────────┘
Defective tiles disabled. MoE router skips dead tiles. Die binning:
- GOLD: Full swarm → flagship
- SILVER: Core + most experts → standard
- BRONZE: Core only → budget
- SCRAP: Non-functional
All modules use Python stdlib only. Runs on Jetson ARM64, Raspberry Pi, any Python 3.11+.
docker build -t frozen-intelligence .
docker run -it frozen-intelligence --helpMIT — Lucineer (DiGennaro et al.)