4-bit counter (Verilog)
Binary counter in Verilog, 4 LEDs.
- Verilog
Open in the simulatorNo account needed: press Simulate and it runs.
How it works
Synchronous binary counter in real Verilog (Yosys → gates), 2 Hz clock: the LEDs count 0…15, the blue one shows the carry. On the first start the browser loads Yosys (~16 MB).
Wiring
Each line is one connection (net) and the pins it joins.
| Net | Pins |
|---|---|
| GND | D1 KD2 KD3 KD4 KD5 KU1 GNDU1 RSTV1 −V2 − |
| VCC | U1 VCCU1 ENV1 + |