breadboardhub
ExplorePlaygroundVerilogArduinoInterviewsAI DesignCalculatorsNewsArticlesLeaderboards
breadboardhub

Chip playground · Verilog

Shared design: adder4

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
adder4.v
Loading the editor…
Building the design…

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

6 steps.

#SetClockExpectResult
1a=0 b=0 cin=0sum=0 cout=0
2a=3 b=4 cin=0sum=7 cout=0
3a=9 b=8 cin=0sum=1 cout=1
4a=15 b=0 cin=1sum=0 cout=1
5a=15 b=15 cin=1sum=15 cout=1
6a=6 b=5 cin=1sum=12 cout=0

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