Skip to main content

verible

verible_lint(IP_LIB **kwargs)

Verible lint tool interface

This function will create a target for linting the SystemVerilog files, more information about the tool can be found here.

It expects that IP_LIB INTERFACE_LIBRARY has SOURCES property set with a list of System Verilog files to be used as inputs.

Function will create targets for linting or formatting depending on passed option

Parameters

NameTypeDescription
IP_LIBstringThe target IP library.

Keyword Arguments

NameTypeDescription
REQUIREDboolif option REQUIRED is passed, the IP_LIB will depend on linting target, meaning that the linting will be done as soon as all the Verilog files are generated. By default only a new target <IP_LIB>_verible_lint is created and can be run optionally.
OUTDIRstring pathoutput directory in which the files will be generated, if omitted ${BINARY_DIR}/verible will be used.
AUTOFIX[nopatch-interactive
RULESList[string]list of rules to enable or disable for reference look at verible documentation
RULES_FILEpath stringAdditionally, the RULES_FILE flag can be used to read configuration stored in a file. The syntax is the same as RULES, except the rules can be also separated with the newline character
WAIVER_FILESlist[string]Path to waiver config files (comma-separated). Please refer to the README file for information about its format.
ONLY_TOPboolIf set, only lint the source files belonging directly to IP_LIB, without traversing its dependencies.
SKIP_GENERATEDboolIf set, exclude files marked with the CMake GENERATED source property from linting.