Skip to content

SymbiFlow/sphinx-verilog-domain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Sphinx Verilog Domain

Warning

This extension is in development stage.

Note

This extension is not a part of sphinxcontrib yet.

Dependencies

  • lark-parser

Enabling

Add extension in conf.py:

extensions = [ 'sphinxcontrib.verilogdomain' ]

Usage

Module headers (non-ANSI-style only for now):

.. verilog::module:: module Top(a, b);

Port declarations:

.. verilog:port:: input wire [31:0] a, b;

Parameter declarations:

.. verilog:parameter:: parameter logic param_name_05 = 1, param_name_05_b = 2;

Declaration aliases (for use with references):

.. verilog:module:: module \35(4p3|) (z);
    :alias: module_escaped

References:

Reference to :verilog:ref:`Top`
Reference to :verilog:ref:`module_escaped`, or just :verilog:ref:`\\35(4p3|)`

Nesting:

.. verilog:module:: module Top1(a, b, c);

    .. verilog:port:: input a;

        Description of port ``a``

    .. verilog:port:: input b;

        Description of port ``b``

    .. verilog:module:: module Nested(a);

        .. verilog:port:: output a;

            Description of port ``a`` in ``Nested``

        Reference to module ``Top1``'s port ``a``: :verilog:ref:`Top1.a`.

About

Sphinx domain to allow integration of Verilog / SystemVerilog documentation into Sphinx.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 5