Nix flake bundling PDKs, tapeout flows, and verification tooling for silicon
  • Nix 62.5%
  • Python 20%
  • Tcl 12.7%
  • Verilog 3.4%
  • Ruby 1.1%
  • Other 0.3%
Find a file
Tristan Ross 8e65bdbac7
Some checks failed
ci.yml / feat: tiny tapeout sky130a tiles (push) Failing after 0s
feat: tiny tapeout sky130a tiles
2026-11-25 22:56:22 -08:00
.github/workflows feat: init 2026-04-25 17:53:58 -07:00
nix feat: tiny tapeout sky130a tiles 2026-11-25 22:56:22 -08:00
overlays feat: signoff derivation graph and ciel gf180 pdk 2026-11-24 07:50:00 -08:00
pkgs feat: tiny tapeout sky130a tiles 2026-11-25 22:56:22 -08:00
.gitignore Initial commit 2026-04-25 11:49:43 -07:00
flake.lock feat: open_pdks pdk packages, fab data split, and io and sram flow support 2026-11-24 07:40:00 -08:00
flake.nix feat: tiny tapeout sky130a tiles 2026-11-25 22:56:22 -08:00
LICENSE Initial commit 2026-04-25 11:49:43 -07:00
README.md feat: block fab rules in fab precheck and signoff on tt tiles 2026-11-25 19:37:25 -08:00
treefmt.nix fix(treefmt): risc-v eval 2026-04-26 15:44:09 -07:00

asix

Nix flake bundling PDKs, tapeout flows, and verification tooling for silicon.

PDKs

GF180MCU

GlobalFoundries 180nm process (gf180mcuD variant from the ciel open_pdks release). Includes standard cells, tech LEF, GDS, Verilog, SPICE, and KLayout DRC/LVS rule decks. Fab slot definitions and seal ring metadata are exposed through passthru for tapeout integration.

Sky130

SkyWater 130nm process, HD standard cell library (via google/skywater-pdk). Provides LEF, GDS, Verilog, and SPICE. Note that liberty timing generation requires an open_pdks build, and this package provides physical views only.

Overriding PDK configuration

PDK packages accept arguments for key configuration fields:

gf180mcu-pdk.override {
  cellLib = "gf180mcu_fd_sc_mcu9t5v0";
  siteName = "GF018hv5v_mcu_sc9";
}

Tapeout

asix.mkTapeout provides a generic RTL-to-GDS flow using Yosys, OpenROAD, and KLayout. It supports both flat and hierarchical (macro-based) builds.

my-tapeout = pkgs.asix.mkTapeout {
  ip = myIp;                  # Derivation with RTL + synth/PnR scripts
  topCell = "MySoC";
  pdk = pkgs.gf180mcu-pdk;
  clockPeriodNs = 20;

  # Die dimensions from fab slot
  fabSlot = "1x1";

  # Or explicit dimensions
  # dieWidthUm = 3932;
  # dieHeightUm = 5122;

  # Optional hierarchical hardening
  macros = [ "Core" "Cache" ];
};

Intermediate stages (topSynth, topPnr, macroDerivations) are exposed via passthru.

Fab shuttles

asix.fabs.<fab>.<pdk variant> holds the rules of a shuttle. With fab and fabSlot set, the die is the slot, the PDK seal ring goes around it, and the fab ID cells are placed at their fixed positions.

my-tapeout = pkgs.asix.mkTapeout {
  ip = myIp;
  topCell = "chip_top";
  pdk = pkgs.gf180mcu-pdk;
  fab = pkgs.asix.fabs.wafer-space.gf180mcuD;
  fabSlot = "0p5x0p5";
  clockPort = "clk_PAD";   # port that the generated SDC constrains
};

nix/tests/ip-wafer-space is a complete example for the wafer.space gf180mcu slots: a gf180mcu_fd_io pad ring in the pad order of the wafer.space project template, with the counter and SRAM test core. Its pnr.tcl places the pad ring, the corners, the fillers and the I/O terminals from the pad configuration of the PDK.

Verification

asix.mkVerify runs signoff checks on the GDS of a tapeout. Each check is its own derivation, so the checks build in parallel.

my-verify = pkgs.asix.mkVerify {
  tapeout = my-tapeout;
  drc = [ "klayout" ];   # "klayout", "magic", or both
  lvs = "netgen";        # "netgen", "klayout", or null
  xor = true;            # compare the KLayout and Magic streamouts
  gatingDrc = true;      # a DRC FAIL fails the result
};
# A tapeout with a fab also gets fab-precheck (die, layers, seal ring, ID cells) and, when the fab
# publishes a precheck program, fab-precheck-tool. That node runs the program of the fab and takes
# about 58 minutes. Pass fabPrecheckTool = false to leave it out. fab-precheck needs fabSlot, and
# dieWidthUm and dieHeightUm must match the slot or be left out.
# A block fab (fabBlock) gets block rules in fab-precheck: top cell name, block size, boundary shape,
# template pins, power pins and forbidden layers. fab-precheck-tool does not support a block fab
# yet, so set fabPrecheckTool = false. A fab that excludes density skips density-klayout.
# A PDK that lists power pad cells also gets pad-power-link. Each power pad needs its own metal link
# to the core ring of its net, read from the powered netlist. A path through the pad rails does not count.

Outputs:

  • result: PASS or FAIL
  • summary: one line per node with its name, whether it gates, and its status
  • one link per node, for example drc-klayout-metal1, xor-top, lvs-top

passthru.nodes holds every node derivation. Netgen LVS and XOR read the GDS before the analog merge, so mkVerify refuses them when the tapeout has analogGdsPaths.

Usage

{
  inputs.asix.url = "github:MidstallSoftware/asix";
}

Use the overlay to pull everything into your nixpkgs:

nixpkgs.overlays = [ asix.overlays.default ];

This gives you pkgs.gf180mcu-pdk, pkgs.sky130-pdk, and pkgs.asix.{mkTapeout, mkVerify}.

Community