addAXI4SlaveInterface

Class: hdlcoder.ReferenceDesign
Package: hdlcoder

Add and define AXI4 slave interface

Syntax

addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr)
addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr,'MasterAddressSpace',master_addr_space)
addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr,Name,Value)
addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr,'MasterAddressSpace',master_addr_space,Name,Value)

Description

addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr) adds and defines an AXI4 interface for an Altera® reference design, or an AXI4 or AXI4-Lite interface for a Xilinx® ISE reference design.

addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr,'MasterAddressSpace',master_addr_space) adds and defines an AXI4 or AXI4-Lite interface for Xilinx Vivado® reference designs.

addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr,Name,Value) adds and defines an AXI4 interface for an Altera reference design, or an AXI4 or AXI4-Lite interface for a Xilinx ISE reference design, with additional options specified by one or more Name,Value pair arguments.

addAXI4SlaveInterface('InterfaceConnection',ref_design_port,'BaseAddress',base_addr,'MasterAddressSpace',master_addr_space,Name,Value) adds and defines an AXI4 or AXI4-Lite interface for Xilinx Vivado reference designs, with additional options specified by one or more Name,Value pair arguments.

Tips

  • Before running this method, you must run the hdlcoder.ReferenceDesign.addClockInterface method.

  • The addAXI4SlaveInterface method is optional. You can define your own custom reference design without the AXI4 slave interface.

Input Arguments

expand all

Reference design port that is connected to the AXI4 or AXI4-Lite interface, specified as a character vector.

Example: 'axi_interconnect_0/M00_AXI'

Base address for AXI4 or AXI4-Lite slave interface, specified as a character vector.

Example: '0x40010000'

Address space of the master interface connected to this slave interface, specified as a character vector. For Vivado reference designs only.

Example: 'processing_system7_0/Data'

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Type of interface connection, specified as a character vector or a cell array of character vectors.

Example: 'InterfaceType','AXI4-Lite' specifies an ‘AXI4–Lite' interface type connection.

Name of the interface, specified as a character vector. When you provide the InterfaceID, InterfaceType must be set to either ‘AXI4' or ‘AXI4–Lite'.

Example: 'InterfaceID','MyAXI4','InterfaceType','AXI4' specifies interface name as 'MyAXI4' and interface type as 'AXI4'.

Introduced in R2015a

Was this topic helpful?