sonar/testbench.py
def cpp(cls, name, lang, hls, hls_version):
        """
        Creates a default cpp module with the given name, language and HLS tool

        Args:
            name (str): Name of the module to create
            lang (str): Language used for the module
            hls (str): HLS tool used to synthesize
            hls_version (str): HLS tool version

        Returns:
            Module: Object representing a module
        """

        module = cls()
        module.type["lang"] = lang
        module.type["hls"] = hls
        module.type["hls_version"] = hls_version
        module.name = name
        return module

        Creates a default cpp module with the given name, language and HLS tool

        Args:
            name (str): Name of the module to create
            lang (str): Language used for the module
            hls (str): HLS tool used to synthesize
            hls_version (str): HLS tool version

        Returns:
            Module: Object representing a module
        
Creates a default cpp module with the given name, language and HLS tool
Creates a default cpp module with the given name language and HLS tool
def cpp(cls, name, lang, hls, hls_version):
        module = cls()
        module.type["lang"] = lang
        module.type["hls"] = hls
        module.type["hls_version"] = hls_version
        module.name = name
        return module
def cpp ( cls , name , lang , hls , hls_version ) : module = cls ( ) module . type [ "lang" ] = lang module . type [ "hls" ] = hls module . type [ "hls_version" ] = hls_version module . name = name return module
Creates a default cpp module with the given name, language and HLS tool
Creates a default cpp module with the given name language and HLS tool
"""
        Creates a default cpp module with the given name, language and HLS tool

        Args:
            name (str): Name of the module to create
            lang (str): Language used for the module
            hls (str): HLS tool used to synthesize
            hls_version (str): HLS tool version

        Returns:
            Module: Object representing a module
        """
Object representing a module
Object representing a module
Module
cls
name
Name of the module to create
Name of the module to create
lang
Language used for the module
Language used for the module
hls
HLS tool used to synthesize
HLS tool used to synthesize
hls_version
HLS tool version
HLS tool version