sonar/interfaces/axi4_lite_slave.py
def source_tcl(interface, path):
        """
        Any TCL files that should be sourced as part of initializing the
        interface

        Args:
            interface (AXI4LiteSlave): AXI4LiteSlave object
            path (str): Path where to place the TCL source files
        """

        tcl_file_name = os.path.join(
            os.path.dirname(__file__), "axi4_lite_slave_vip.tcl"
        )
        with open(tcl_file_name) as f:
            tcl_file = f.read()
            tcl_file = tcl_file.replace(
                "#DESIGN_NAME#", "vip_bd_" + str(interface.index)
            )
            tcl_file = tcl_file.replace(
                "#ADDR_WIDTH#", str(interface.addrWidth)
            )
            tcl_file = tcl_file.replace(
                "#DATA_WIDTH#", str(interface.dataWidth)
            )
            tcl_file = tcl_file.replace("#ADDRESS#", str(interface.addr_range))
            tcl_file = tcl_file.replace(
                "#ADDRESS_OFFSET#", str(interface.addr_offset)
            )
            tcl_file_gen = open(
                os.path.join(
                    path,
                    "axi4_lite_slave_vip_" + str(interface.index) + ".tcl",
                ),
                "w+",
            )
            tcl_file_gen.write(tcl_file)
            tcl_file_gen.close()

        Any TCL files that should be sourced as part of initializing the
        interface

        Args:
            interface (AXI4LiteSlave): AXI4LiteSlave object
            path (str): Path where to place the TCL source files
        
Any TCL files that should be sourced as part of initializing the
interface
Any TCL files that should be sourced as part of initializing the interface
def source_tcl(interface, path):
        tcl_file_name = os.path.join(
            os.path.dirname(__file__), "axi4_lite_slave_vip.tcl"
        )
        with open(tcl_file_name) as f:
            tcl_file = f.read()
            tcl_file = tcl_file.replace(
                "#DESIGN_NAME#", "vip_bd_" + str(interface.index)
            )
            tcl_file = tcl_file.replace(
                "#ADDR_WIDTH#", str(interface.addrWidth)
            )
            tcl_file = tcl_file.replace(
                "#DATA_WIDTH#", str(interface.dataWidth)
            )
            tcl_file = tcl_file.replace("#ADDRESS#", str(interface.addr_range))
            tcl_file = tcl_file.replace(
                "#ADDRESS_OFFSET#", str(interface.addr_offset)
            )
            tcl_file_gen = open(
                os.path.join(
                    path,
                    "axi4_lite_slave_vip_" + str(interface.index) + ".tcl",
                ),
                "w+",
            )
            tcl_file_gen.write(tcl_file)
            tcl_file_gen.close()
def source_tcl ( interface , path ) : tcl_file_name = os . path . join ( os . path . dirname ( __file__ ) , "axi4_lite_slave_vip.tcl" ) with open ( tcl_file_name ) as f : tcl_file = f . read ( ) tcl_file = tcl_file . replace ( "#DESIGN_NAME#" , "vip_bd_" + str ( interface . index ) ) tcl_file = tcl_file . replace ( "#ADDR_WIDTH#" , str ( interface . addrWidth ) ) tcl_file = tcl_file . replace ( "#DATA_WIDTH#" , str ( interface . dataWidth ) ) tcl_file = tcl_file . replace ( "#ADDRESS#" , str ( interface . addr_range ) ) tcl_file = tcl_file . replace ( "#ADDRESS_OFFSET#" , str ( interface . addr_offset ) ) tcl_file_gen = open ( os . path . join ( path , "axi4_lite_slave_vip_" + str ( interface . index ) + ".tcl" , ) , "w+" , ) tcl_file_gen . write ( tcl_file ) tcl_file_gen . close ( )
Any TCL files that should be sourced as part of initializing the
interface
Any TCL files that should be sourced as part of initializing the interface
"""
        Any TCL files that should be sourced as part of initializing the
        interface

        Args:
            interface (AXI4LiteSlave): AXI4LiteSlave object
            path (str): Path where to place the TCL source files
        """
interface
None
path
Path where to place the TCL source files
Path where to place the TCL source files