Skip to main content

License: MIT Python Regression Tests PyPI Downloads

hdlworkflow

Seamless FPGA workflows.

All HDL simulators follow the same process (analyse, elaborate and simulate) though each uses its own variation of these commands.

Similarly, all HDL synthesis tools follow the same flow (synthesise, place and route, and generate bitstream).

hdlworkflow abstracts away these tool-specific commands, making project setup and usage fast and effortless.

Supported operating systems

hdlworkflow can be used on Linux and Windows systems.

Supported tools

Supported waveform viewers

Simulation compatibility table

The table below shows supported simulators and their compatibility with tools listed in the left-most column.

nvc Riviera-PRO Vivado
cocotb ✅ ✅ ❌
gtkwave ✅ ❌ ❌
surfer ✅ ❌ ❌

Install

hdlworkflow is a Python package and can be installed using pip:

pip install hdlworkflow

If you want to install the development version of hdlworkflow:

pip install git+https://github.com/scottshuynh/hdlworkflow@main

How to run

hdlworkflow can be run from the command line and requires the following arguments:

  • EDA tool of choice.
  • Entity name of top level design.
  • Path to a file listing all required source files for the top level design (i.e. compile order file).

A directory with the name of the chosen EDA tool will be created in the directory hdlworkflow is run. This directory will contain all output artefacts produced by the EDA tool.

Some examples of hdlworkflow usage can be found below.

Compile order file format

hdlworkflow supports two file formats for compile order: plain text (.txt) and JSON (.json).

Plain Text

An ordered list of path to files required for a simulation or synthesis.

JSON

The JSON file follows the following specification:

compile_order.json
- files: array of objects. Ordered based on compile order.
    Each object has:
        - path: string (required). Path to file.
        - library: string (optional). Library to be compiled into.
        - type: string (optional). "vhdl" or "verilog".

nvc

Simulate a top level design named design_tb using the nvc HDL simulator. All files required to simulate design_tb are listed as absolute paths line by line in compile_order.txt:

hdlworkflow nvc design_tb compile_order.txt

If design_tb requires DATA_WIDTH and ADDR_WIDTH generic declared:

hdlworkflow nvc design_tb compile_order.txt -g DATA_WIDTH=8 -g ADDR_WIDTH=4

If stopping the simulation after 42 us is required:

hdlworkflow nvc design_tb compile_order.txt --stop-time 42 us

If the default library is called my_lib:

hdlworkflow nvc design_tb compile_order.txt --work my_lib

If a waveform viewer, gtkwave, is required:

hdlworkflow nvc design_tb compile_order.txt --gui --wave gtkwave

If gtkwave is required with an existing waveform view file:

hdlworkflow nvc design_tb compile_order.txt --gui --wave gtkwave --waveform-view-file path/to/waveform_view_file.gtkw

If a waveform viewer, surfer, is required:

hdlworkflow nvc design_tb compile_order.txt --gui --wave surfer

If surfer is required with an existing waveform view file:

hdlworkflow nvc design_tb compile_order.txt --gui --wave surfer --waveform-view-file path/to/waveform_view_file.ron

If the testbench design_tb is a cocotb test module, and the top level design is called design:

hdlworkflow nvc design compile_order.txt --cocotb design_tb

Cocotb test modules will be discovered in the same directory that hdlworkflow is run. Adding to PYTHONPATH environment variable is also supported:

hdlworkflow nvc design compile_order.txt --cocotb design_tb --pythonpath /abs/path/to/python/module --pythonpath relative/path/to/python/module

Riviera-PRO

Simulate a top level design named design_tb using the riviera HDL simulator. All files required to simulate design_tb are listed as absolute paths line by line in compile_order.txt:

hdlworkflow riviera design_tb compile_order.txt

If design_tb requires DATA_WIDTH and ADDR_WIDTH generic declared:

hdlworkflow riviera design_tb compile_order.txt -g DATA_WIDTH=8 -g ADDR_WIDTH=4

If stopping the simulation after 42 us is required:

hdlworkflow riviera design_tb compile_order.txt --stop-time 42 us

If the default library is called my_lib:

hdlworkflow riviera design_tb compile_order.txt --work my_lib

If Vivado specific libraries (XPM and UNISIM) need to be searched to elaborate design_tb:

hdlworkflow riviera design_tb compile_order.txt -l xpm -l unisim

If a GUI is required to view waveforms:

hdlworkflow riviera design_tb compile_order.txt --gui

If a GUI is required with an existing waveform view file:

hdlworkflow riviera design_tb compile_order.txt --gui --waveform-view-file path/to/waveform_view_file.awc

If the testbench design_tb is a cocotb test module, and the top level design is called design:

hdlworkflow riviera design compile_order.txt --cocotb design_tb

Cocotb test modules will be discovered in the same directory that hdlworkflow is run. Adding to PYTHONPATH is also supported:

hdlworkflow riviera design compile_order.txt --cocotb design_tb --pythonpath /abs/path/to/python/module --pythonpath relative/path/to/python/module

If the path to libstdc++ is required to resolve GLIBCXX_3.4.XX not found:

hdlworkflow riviera design compile_order.txt --cocotb design_tb --libstdcpp /abs/path/to/libstdc++.so.6

If the path to glbl.v is required to resolve Unresolved hierarchical reference to"glbl.GSR":

hdlworkflow riviera design_tb compile_order.txt --glbl /abs/path/to/glbl.v

Vivado

Simulate a top design named design_tb using Vivado. All files required to simulate design_tb are listed as absolute paths line by line in compile_order.txt:

hdlworkflow vivado design_tb compile_order.txt

If design_tb requires DATA_WIDTH and ADDR_WIDTH generic declared:

hdlworkflow vivado design_tb compile_order.txt -g DATA_WIDTH=8 -g ADDR_WIDTH=4

If stopping the simulation after 42 us is required:

hdlworkflow vivado design_tb compile_order.txt --stop-time 42 us

If the default library is called my_lib:

hdlworkflow vivado design_tb compile_order.txt --work my_lib

If a GUI is required to view waveforms:

hdlworkflow vivado design_tb compile_order.txt --gui

If a GUI is required with an existing waveform configuration file:

hdlworkflow vivado design_tb compile_order.txt --gui --waveform-view-file path/to/waveform_view_file.wcfg

If synthesis of design is required instead of simulating:

hdlworkflow vivado design compile_order.txt --synth

If synthesis + implementation of design is required instead of simulating:

hdlworkflow vivado design compile_order.txt --impl

If synthesis + implementation + generate bitstream of design is required instead of simulating:

hdlworkflow vivado design compile_order.txt --bitstream

If an out-of-context (OOC) synthesis of design is required instead of simulating:

hdlworkflow vivado design compile_order.txt --synth --ooc

If an OOC synthesis + implementation of design is required instead of simulating:

hdlworkflow vivado design compile_order.txt --impl --ooc

Additionally, if a clock period constraints on clock port clk_a for OOC synthesis + implementation is required:

hdlworkflow vivado design compile_order.txt --impl --ooc --clk-period-constraint clk_a=10 --clk-period-constraint clk_b=2.000

Additionally, if the part number xczu7ev-ffvc1156-2-e for OOC synthesis + implementation is required:

hdlworkflow vivado design compile_order.txt --impl --ooc --clk-period-constraint clk_a=10 --clk-period-constraint clk_b=2.000 --part xczu7ev-ffvc1156-2-e

Additionally, if the board part (ZCU106) for OOC synthesis + implementation is required:

hdlworkflow vivado design compile_order.txt --impl --ooc --clk-period-constraint clk_a=10 --clk-period-constraint clk_b=2.000 --part xczu7ev-ffvc1156-2-e --board xilinx.com:zcu106:part0:2.6  

Positional Arguments

eda_tool

EDA tool to run.

top

Entity name of top design file.

path_to_compile_order

Path to a file containing a list of all requisite files for the top design. See file formats.

Options

--gui

(Optional) Opens the EDA tool GUI, if supported.

--wave WAVEFORM_VIEWER

(Optional) Waveform viewer to run for simulators that do not have native waveform viewers. Defaults to "gtkwave".

--waveform-view-file WAVEFORM_VIEW_FILE

(Optional) Waveform view file path.

-g GENERIC=VALUE, --generic GENERIC=VALUE

(Optional) Generics used to elaborate top design file.

-l LIBRARY_NAME, --libraries LIBRARY_NAME

(Optional) Libraries searched during top level design instantiation in simulation.

--stop-time INTEGER_PERIOD TIME_UNITS

(Optional) Simulation stops after the specified period.

-v VERBOSE_LEVEL, --verbose VERBOSE_LEVEL

(Optional) Logging verbosity. Valid values for VERBOSE_LEVEL are 0, 1, 2.

--cocotb COCOTB_MODULE

(Optional) Cocotb test module to run during simulation.

--pythonpath PYTHONPATH

(Optional) Path to append to PYTHONPATH environment variable. Used in cocotb simulations.

--analyse_args=ANALYSE_ARGS

(Optional) Simulator analyse arguments. Applied to simulation analyse step.

--elaborate_args=ELABORATE_ARGS

(Optional) Simulator elaborate arguments. Applied to simulation elaborate step.

--run_args=RUN_ARGS

(Optional) Simulator run arguments. Applied to simulation run step.

--extra_args EXTRA_ARGS

(Optional) Simulator extra arguments. Applied to all steps (analyse, elaborate, simulate).

--plusargs PLUSARG

(Optional) Simulator plusargs.

--libstdcpp LIBSTDC++

(Optional) Path to libstdc++ shared object. Used in cocotb simulations to resolve GLIBCXX_3.4.XX not found.

--glbl GLBL.V

(Optional) Path to glbl.v. Used in simulations that use Xilinx XPM library. Resolves Unresolved hierarchical reference to"glbl.GSR".

--work DEFAULT_LIB

(Optional) Name of the default library.

--part PART

(Optional) Part number used to set up Vivado project. Only used in Vivado workflow.

--board BOARD

(Optional) Board part used to set up Vivado project. Only used in Vivado workflow.

--synth

(Optional) Vivado will run synthesis instead of simulation. Only used in Vivado workflow.

--impl

(Optional) Vivado will run synthesis + implementation instead of simulation. Only used in Vivado workflow.

--bitfile

(Optional) Vivado will run synthesis + implementation + generate bitstream instead of simulation. Only used in Vivado workflow.

--ooc

(Optional) Vivado will set synthesis mode to out-of-context. Only used in Vivado workflow.

--clk-period-constraint CLK_PORT=PERIOD_NS

(Optional) Clock period constraint for Vivado project. Only used in Vivado workflow.

Metadata

Release files for hdlworkflow 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hdlworkflow 0.6.0
File Size Uploaded Provenance Actions
hdlworkflow-0.6.0.tar.gz 39.0 kB With provenance Details for hdlworkflow-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hdlworkflow 0.6.0
File Interpreter ABI Platform Actions
hdlworkflow-0.6.0-py3-none-any.whl Python 3 none any Details for hdlworkflow-0.6.0-py3-none-any.whl

Total release size: 62.9 kB

Release files / hdlworkflow-0.6.0.tar.gz

Download URL hdlworkflow-0.6.0.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6f7c4688c1b722b6add147ab260dc7e5dfd8ffad2ac550b1ffa7cfb78b2b4d79
BLAKE2b-256 checksum
How to use checksums
abe3fc76ebbbb3003185687157d25bd040adb5dde48bf60b6977744c60212f4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Release files / hdlworkflow-0.6.0-py3-none-any.whl

Download URL hdlworkflow-0.6.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a65f38086598e720e46aa97ff661f7a932aad12fcf2e8010aa2a0538ac4f6de
BLAKE2b-256 checksum
How to use checksums
816e0e45ac3bd0bd892bc42c61ca97924df2ab34ddaf18204e9273376e717bad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Security for hdlworkflow 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hdlworkflow-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page