Pinout GitHub

Quick start

Pinout reads a TapeOut circuit from X Layer, lets you name its pins, and writes Solidity that calls it with ordinary values.

  1. Open the generator and enter a processor number and circuit id, or pick an example.
  2. Name each pin. Type values into the inputs and check that the outputs say what you expect.
  3. Download the library and its test into your Foundry project.
  4. Run the test against mainnet state:
forge test --fork-url https://rpc.xlayer.tech

Then call the circuit:

import {Adder16Pinout} from "./Adder16Pinout.sol";

uint24 sum = Adder16Pinout.eval(Adder16Pinout.Inputs({a: 1200, b: 345})).sum;