Search the wiki

Loading guides…↑ ↓ to navigate · Esc to close

IT THINKS Build Your Own GPU How to Cast a Chip

On a bench with Cast a Chip enabled, wire and test the circuit, then select the parts to package along with at least one input box and one output box. Click Cast a Chip, enter a name, choose a colour, and click Cast. The resulting part appears in the chip catalogue with pins named after the included interface boxes.

Decide what goes inside

Select the circuit you want the chip to contain. Include its input and output boxes because they define the external pins. If you leave the selection empty, the casting command uses the whole bench. Check the selection before casting a chip from a bench that contains more than one design.

Test an inverter before packaging it

For a small example, wire a single input into both pins of a NAND gate. Connect the gate’s output to an output box and test both input states. Input zero should return one and input one should return zero. Keep both interface boxes in the selection when you package this circuit.

Name the part and check its interface

The cast dialog asks for a chip name and a colour. After casting, find the new component in the catalogue and inspect its pins. Its input and output names come from the labels on the boxes you included. Those labels make it easier to reconnect the part in later circuits.

Check why casting is disabled

The toolbar enables casting according to the current contract or bench. The browser demo’s opening NAND exercise lets you wire and test the circuit with manual casting disabled. If you are working on that exercise, finish the wiring and test requested by its brief. Use a bench with casting enabled to package your design.

Sources