breadboardhub
ExplorePlaygroundVerilogArduinoInterviewsAI DesignCalculatorsNewsArticlesLeaderboards
breadboardhub

Chip playground · Verilog

Shared design: mux4

Write Verilog, press Build, and see it as logic blocks you can drive by hand, with waveforms and a test table. It is built with Yosys, the open-source tool real chip flows use. Or ask the AI to write one and refine it in a conversation.

Start from
mux4.v
Loading the editor…
Building the design…

Change an input or step the clock and the signals appear here.

7 steps.

#SetClockExpectResult
1d0=1 d1=0 d2=0 d3=0 sel=0y=1
2sel=1y=0
3d1=1y=1
4sel=2y=0
5d2=1y=1
6sel=3y=0
7d3=1y=1

Share

This link always shows the design as it was shared. Sharing your changes makes a new link that records it was forked from this one.

Or publish it as a design with its own page, where people can open it here, star it and remix it.

Create a free account to keep a list of the designs you share.

How it works

  • Build sends your code to Yosys, which turns it into logic blocks, and to Verilator, which checks it for common mistakes.
  • The diagram and controls simulate those blocks in your browser: 1 is green, 0 is grey, a bus is blue, and an unknown value (x) is a red dashed line.
  • The test runs its steps on a fresh copy of the circuit and compares every output.
  • The AI's designs go through the same build and their test before you see them; it writes the test too, so check it.

Board-level circuits (resistors, LEDs, transistors) live in the circuit playground.

Design circuits by asking Claude

Add breadboardhub to Claude, sign in free, and ask for a circuit. Claude designs and simulates it and gives you a link that opens it here.

Add to Claude↗ (opens in a new tab)How it works

Chip AI

Ask about the code in the editor, or describe a change.

Each message uses one AI design from your allowance.

    Enter to send, Shift+Enter for a new line