Skip to Content
SilluDocs
Concepts

How it works

What a chip is on TapeOut, and what happens between your board and the credential.

Two parts, and everything else

A Sillu chip is made from two kinds of part.

  • A NAND gate has two inputs and one output. The output is on unless both inputs are on.
  • A memory bit holds one bit. Each beat it gives out the bit it was holding and takes in a new one.

Every other thing in the course is built from these: the NOT, AND, OR and XOR gates, the adders, the register, and in the end the computer. Nothing else is ever handed to you.

A chip is its wiring

A design is a list of parts and the wires between them, called a netlist. To tape out a chip is to give that netlist to TapeOut on X Layer. TapeOut burns the parts the design uses, stores the wiring for good, and gives the chip a number.

From then on the chip is not a file somewhere. X Layer itself can run it. Anyone may ask "what does chip 19 answer for these inputs?" and the chain works it out from the stored wiring. Asking is a read, so it is free.

A chip with no memory is run with eval: inputs in, outputs out. A chip with memory is run one beat at a time with step: you hand it the memory it holds and the inputs, and it hands back the new memory and the outputs.

Chips inside chips

A chip may use an earlier chip as one of its parts. The full adder you make in lesson 7 goes into your 4-bit adder in lesson 8, four times over, and that adder goes into your ALU.

Sillu adds one rule on top of TapeOut here: a chip counts for a lesson only if every chip inside it is one that the same wallet passed a lesson with. So the computer at the end is yours all the way down, and the verify page checks that for any wallet.

One lesson, end to end

This is the free path: a new learner, signed in with Google, passes the first lesson without holding any coin.

wireoneNANDintoaNOTgate,simulateitsignthedesign(learner,lesson,netlisthash,pins,nonce,deadline)signed design+ netlistcheckidentityandratelimits,simulatethecalltapeOutSponsored(design,signature,netlist)checksignature,lesson,freetries,dailycapmint parts (BEMfrom the float)tapeout (0.0013OKB from thefloat)circuit id, chipminted to theFabrecordthelearnerasthechip'smakertransfer the chipto the learnersubmit(circuit id, netlist)who made this chip, for whichlesson?eval oneveryinput ofthelessonissue(learner,lesson,circuit id)credential, readable by anyoneLearner'sbrowserRelayserverFabTapeOutprocessorGraderCredentialLearner'sbrowserRelayserverFabTapeOutprocessorGraderCredential

Four contracts of ours do the work.

  • The Fab is the only door to a Sillu chip. It buys the parts, tapes out, writes down who made the chip, hands the chip to that person and sends it to the Grader.
  • The LessonBook holds each lesson: how many pins, how large a chip may be, and the table of tests it must pass. A lesson can be added or retired, never edited.
  • The Grader runs the chip on the lesson's tests, on chain, and writes the result. A result, once written, stays. Nobody can change it, us included.
  • The Credential gives the learner one token per lesson passed. It cannot be moved to another wallet.

On the paid path the relay is not involved. Your wallet calls the Fab itself and sends the lesson's price.

Small lessons and wide ones

A small lesson has few possible inputs. A NOT gate has two, a full adder has eight. The Grader tries every one of them inside the same transaction that makes the chip, so you see the result at once.

A wide lesson has too many to try them all. The ALU's lesson stores 2,048 tests. For these the Grader checks a sample: some cases chosen by us that every right chip must get right, and some picked by the hash of a block that did not exist yet when the chip was made, so the maker could not know which. That check runs in a second call, which anyone may send. Grading has the detail and says what a sample can miss.

On this page