sonar/interfaces/axi4_lite_slave.py
def import_packages_global():
        """
        Specifies any packages that must be imported once per testbench

        Returns:
            str: Packages to be imported
        """
        imports = ""

        # versionInfo = subprocess.check_output("vivado -version", shell=True)
        version = os.getenv("SONAR_CAD_VERSION")
        # version = versionInfo.split()[1].decode("utf-8")

        if version == "2017.2":
            imports += "import axi_vip_v1_0_2_pkg::*;\n"
        else:
            imports += "import axi_vip_pkg::*;\n"
        return imports

        Specifies any packages that must be imported once per testbench

        Returns:
            str: Packages to be imported
        
Specifies any packages that must be imported once per testbench
Specifies any packages that must be imported once per testbench
def import_packages_global():
        imports = ""
        version = os.getenv("SONAR_CAD_VERSION")
        if version == "2017.2":
            imports += "import axi_vip_v1_0_2_pkg::*;\n"
        else:
            imports += "import axi_vip_pkg::*;\n"
        return imports
def import_packages_global ( ) : imports = "" version = os . getenv ( "SONAR_CAD_VERSION" ) if version == "2017.2" : imports += "import axi_vip_v1_0_2_pkg::*;\n" else : imports += "import axi_vip_pkg::*;\n" return imports
Specifies any packages that must be imported once per testbench
Specifies any packages that must be imported once per testbench
"""
        Specifies any packages that must be imported once per testbench

        Returns:
            str: Packages to be imported
        """ # versionInfo = subprocess.check_output("vivado -version", shell=True) # version = versionInfo.split()[1].decode("utf-8")
Packages to be imported
Packages to be imported
str