Written and maintained by CASRAI Editorial Board
Published
On this page
Yosys is an open-source Verilog synthesis tool: it reads a behavioural description of a digital circuit and writes out an RTL, logic-gate or physical gate-level description. It is released under the ISC licence and maintained by YosysHQ, and it covers synthesis only, so place and route, syntax checking and C-based design entry are handled by other tools.
Definition and scope
The Yosys documentation describes the project as a Verilog HDL synthesis tool whose main strengths are behavioural and RTL synthesis, and which is built to be extended for custom synthesis tools. The project’s own README calls it a framework for RTL synthesis tools. In practice that means two things: it is a ready-to-run synthesis program for ordinary Verilog designs, and it is a collection of passes that researchers can recombine and extend in C++ to build their own flows.
Input support is specific. Yosys has full support for the synthesizable subset of Verilog-2005. SystemVerilog is reached through the sv-elab and slang libraries, which handle an informally defined synthesizable subset of IEEE 1800-2017 and 1800-2023. Industry-grade SystemVerilog and VHDL support is not part of the open-source tool: it comes from the commercial Tabby CAD Suite, which adds the Verific frontend. Yosys cannot process C, C++ or SystemC.
The project began as a bachelor’s thesis by Claire Wolf, aimed at synthesis for a coarse-grained reconfigurable architecture (CGRA). It then grew into general infrastructure for synthesis research. Today it is maintained by Yosys Headquarters, and many core developers are employed by YosysHQ GmbH. The documentation describes the licence as ISC, which it says is functionally equivalent to the BSD 2-Clause and MIT licences; third-party code bundled in the repository, such as ABC, carries its own compatible licences.
For the surrounding discipline, see the integrated circuit design guide, which places synthesis between RTL entry and tapeout.
How Yosys is used in practice
Interactive and scripted runs
Yosys can be run interactively, where commands are typed one at a time, or in script mode. A typical interactive sequence in the README reads a SystemVerilog file, sets the top module with hierarchy -top, converts process blocks with proc, optimises with opt, and writes the result with write_verilog. Script mode runs a file of commands, for example ./yosys synth.ys, and help followed by a command name prints that command’s documentation.
Script files conventionally use the .ys extension. Commands run in sequence; a command is a name plus whitespace-separated arguments and ends at a newline, and anything after a # is a comment. For a one-liner, the -p option accepts commands separated by semicolons, for example yosys -p 'read_verilog fifo.v; prep'. The documentation warns that the space after each semicolon is required for correct parsing, and that the command should be wrapped in single quotes because Bash substitutes ! and $ inside double quotes.
What the documented commands do
The scripting introduction and the README describe the following commands. The table lists only behaviour those pages state.
| Command | What the sources say it does |
|---|---|
hierarchy -top |
Checks, expands and cleans up the design hierarchy with the named module as the top. |
proc (and proc -noopt) |
Converts process blocks into netlist elements; the -noopt form does so without running optimisation. |
opt_expr |
Optimises expressions; the scripting introduction runs it before clean. |
clean |
Removes unused cells and wires. |
select |
Modifies and views the current selection, for example by module name or cell type. |
show |
Generates a schematic; with -format dot it writes a .dot file. Displaying it needs GraphViz and xdot. |
synth |
The default synthesis script that combines passes. |
prep |
A word-level script intended for SMT-based formal verification flows. |
write_verilog |
Writes the processed design out as Verilog (used in the README’s interactive example). |
Gate mapping and formal back ends
For mapping to a cell library, Yosys uses Liberty files together with ABC. The documentation states that the pre-existing free logic-synthesis tool ABC performs the advanced gate-level optimisations. On the verification side, Yosys can do formal verification with back ends for solver formats such as SMT2, and it has a unified witness framework for traces and counterexamples. The documentation sections cover synthesis stages (elaboration, flattening, proc, finite-state machines, memory, opt, techmap, ABC), formal verification (model checking and equivalence checking), the RTLIL internal language and Pyosys scripting, with target libraries for iCE40, Xilinx, Lattice, Intel, Gowin and Microchip devices.
Yosys and the tools around it
Yosys deliberately stops at synthesis, so research flows pair it with other tools. The data table below compares what the sources assign to Yosys with what they assign to its neighbours.
FPGA flow with nextpnr
A 2019 paper presented at IEEE FCCM, “Yosys+nextpnr: an Open Source Framework from Verilog to Bitstream for Commercial FPGAs” (Shah, Hung, Wolf, Bazanski, Gisselquist and Milanovic), describes Yosys as the Verilog synthesis stage and nextpnr as the place, route and bitstream stage. The paper reports support for Lattice iCE40 devices up to 8K logic elements and ECP5 devices up to 85K logic elements, and says the flow was proven on hardware, including a neural-network accelerator and an OpenRISC system-on-chip booting Linux.
ASIC flow with OpenLane
For ASICs, the Yosys documentation names OpenLane as the flow in which Yosys performs synthesis, targeting the SkyWater 130 nm open PDK. Shared-shuttle programmes build on that stack; see the Tiny Tapeout guide for how a small design reaches silicon.
Commercial extensions and the YosysHQ family
The Tabby CAD Suite is the commercial route: it includes the Verific frontend for industry-grade SystemVerilog and VHDL and adds SVA formal verification. The documentation also lists related YosysHQ tools: SBY for formal verification, EQY for equivalence checking, MCY for mutation coverage and SCY for deep formal traces.
Analog simulation is a different tool
Yosys works on digital netlists. Transistor-level or analog behaviour of a block is simulated with a circuit simulator, for example as described in the ngspice guide.
Where it matters for labs and research groups
Three properties documented by the project make Yosys relevant to research practice rather than only to engineering convenience.
- Licence clarity. The ISC licence is permissive, so a group can release scripts and results built with it. The broader idea is covered in the dictionary entry on open-source software.
- Scripted, repeatable runs. Because a flow is a plain-text .ys file or a
-pcommand line, the exact sequence of passes can be archived with a design and re-run, which supports reproducibility of synthesis results. The documentation notes the file is just a sequence of commands, so version control and a recorded tool version are the natural companions; the sources do not prescribe a particular archiving method. - Extensibility for synthesis research. The project grew from a thesis into infrastructure for synthesis research, passes combine in scripts, and new passes can be written in C++. Pyosys scripting is documented for Python-driven flows.
Where a design needs full SystemVerilog or VHDL coverage, the documentation points to the commercial Tabby CAD Suite; a group should check which frontend its source language requires before committing to a flow.
Common misunderstandings
“Yosys is a complete chip or FPGA toolchain”
It is not. The documentation states that Yosys cannot do place and route and points to nextpnr for that step. Synthesis is one stage of a longer flow.
“Yosys checks my Verilog for errors”
The documentation says Yosys has no built-in syntax checking and recommends Verilator for that purpose.
“Yosys accepts any HDL”
The open-source tool is centred on Verilog-2005, with SystemVerilog through additional libraries limited to a synthesizable subset. C, C++ and SystemC are outside its scope, and VHDL and industry-grade SystemVerilog need the commercial Verific frontend.
“Open source means unmaintained”
The documentation states that Yosys is currently maintained by Yosys Headquarters, with many core developers employed by YosysHQ GmbH.
“It is a Verilog simulator”
The sources describe Yosys as a synthesis and formal-verification framework. Simulation of circuit behaviour is not what the documentation presents it for.
Frequently asked questions
What is Yosys?
Yosys is an open-source framework for Verilog RTL synthesis. It takes a behavioural Verilog description and produces RTL, logic-gate or physical gate-level output, with ABC performing gate-level optimisation.
Is Yosys free to use?
Yes. The project is released under the ISC licence, which the documentation describes as functionally equivalent to the BSD 2-Clause and MIT licences. Bundled third-party components carry their own compatible licences.
Does Yosys support SystemVerilog and VHDL?
SystemVerilog is supported through the sv-elab and slang libraries for an informally defined synthesizable subset of IEEE 1800-2017 and 1800-2023. VHDL and industry-grade SystemVerilog support come from the commercial Tabby CAD Suite’s Verific frontend.
Can Yosys do place and route?
No. For FPGAs the documentation points to nextpnr, which handles place, route and bitstream generation for families such as Lattice iCE40 and ECP5.
How do I run Yosys from a script?
Put commands in a .ys file and run it by passing the file name to yosys, for example ./yosys synth.ys, or pass commands with -p in single quotes, separated by semicolons followed by a space.
Sources
- YosysHQ, Yosys documentation: Introduction. https://yosyshq.readthedocs.io/projects/yosys/en/latest/introduction.html (checked 2026-11-14)
- YosysHQ, Yosys documentation home. https://yosyshq.readthedocs.io/projects/yosys/en/latest/ (checked 2026-11-14)
- YosysHQ, Yosys documentation: Scripting introduction. https://yosyshq.readthedocs.io/projects/yosys/en/latest/getting_started/scripting_intro.html (checked 2026-11-14)
- YosysHQ/yosys README, GitHub. https://github.com/YosysHQ/yosys (checked 2026-11-14)
- Shah, Hung, Wolf, Bazanski, Gisselquist, Milanovic, “Yosys+nextpnr: an Open Source Framework from Verilog to Bitstream for Commercial FPGAs”, arXiv:1903.10407, IEEE FCCM 2019. https://arxiv.org/abs/1903.10407 (checked 2026-11-14)
Data: Yosys: what the open-source tool covers and which tool the sources assign the rest to
Compiled from the Yosys documentation, the YosysHQ GitHub README and the 2019 Yosys+nextpnr paper: each design-flow task, whether Yosys handles it, and the neighbouring tool the sources name for it.
| Flow task | Role of Yosys | Tool the sources name | Source |
|---|---|---|---|
| Verilog-2005 synthesizable subset | Full support | Yosys itself | Introduction |
| SystemVerilog (informal synthesizable subset of IEEE 1800-2017/2023) | Supported via sv-elab and slang libraries | Yosys with those libraries | GitHub README |
| VHDL and industry-grade SystemVerilog | Not in the open-source tool | Tabby CAD Suite (Verific frontend) | Introduction |
| C, C++, SystemC input | Cannot process | None named | Introduction |
| Place and route, bitstream | Not done by Yosys | nextpnr | Introduction; arXiv:1903.10407 |
| Syntax checking | No built-in checking | Verilator | Introduction |
| Advanced gate-level optimisation and gate mapping | Delegated | ABC | Introduction; GitHub README |
| Formal verification | Back ends for solver formats such as SMT2 | Yosys; SBY for formal verification | Introduction |
| ASIC synthesis step | Synthesis stage | OpenLane flow with SkyWater 130 nm PDK | Introduction |
Sources
- Yosys documentation: Introduction (accessed 2026-11-14)
- YosysHQ/yosys README (accessed 2026-11-14)
- Yosys documentation: Scripting introduction (accessed 2026-11-14)
- Yosys+nextpnr: an Open Source Framework from Verilog to Bitstream for Commercial FPGAs (accessed 2026-11-14)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







