naps.cores.axi package¶
Submodules¶
naps.cores.axi.axi_endpoint module¶
-
class
naps.cores.axi.axi_endpoint.
AxiAddressStream
(addr_bits, lite, id_bits, data_bytes, src_loc_at=1)¶
-
class
naps.cores.axi.axi_endpoint.
AxiBurstType
(value)¶ Bases:
enum.Enum
An enumeration.
-
FIXED
= 0¶
-
INCR
= 1¶
-
WRAP
= 2¶
-
-
class
naps.cores.axi.axi_endpoint.
AxiDataStream
(data_bits, read, lite, id_bits, src_loc_at=1, **kwargs)¶
-
class
naps.cores.axi.axi_endpoint.
AxiEndpoint
(*, addr_bits, data_bits, lite, id_bits=None, src_loc_at=1, **kwargs)¶ Bases:
naps.data_structure.bundle.Bundle
-
static
like
(model, lite=None, name='axi', **kwargs)¶ Create an AxiInterface shaped like a given model. :param name: the name of the resulting axi port :type model: AxiEndpoint :param model: the model after which the axi port should be created :param lite: overrides the lite property of the model. Only works for creating an AXI lite inteface from an AXI full bus. :return:
-
static
-
class
naps.cores.axi.axi_endpoint.
AxiProtectionType
(*args, **kwargs)¶ Bases:
naps.data_structure.packed_struct.PackedStructBaseClass
-
is_instruction
: unsigned(1)¶
-
privileged
: unsigned(1)¶
-
secure
: unsigned(1)¶
-
-
class
naps.cores.axi.axi_endpoint.
AxiResponse
(value)¶ Bases:
enum.Enum
An enumeration.
-
DECERR
= 3¶
-
EXOKAY
= 1¶
-
OKAY
= 0¶
-
SLVERR
= 2¶
-
-
class
naps.cores.axi.axi_endpoint.
AxiWriteResponseStream
(lite, id_bits, src_loc_at=1, **kwargs)¶ Bases:
naps.stream.stream.Stream
naps.cores.axi.full_to_lite module¶
naps.cores.axi.interconnect module¶
naps.cores.axi.peripheral_connector module¶
naps.cores.axi.sim_util module¶
-
naps.cores.axi.sim_util.
answer_read_burst
(axi: naps.cores.axi.axi_endpoint.AxiEndpoint, memory: Dict[int, int], timeout=100)¶
-
naps.cores.axi.sim_util.
answer_write_burst
(axi: naps.cores.axi.axi_endpoint.AxiEndpoint, timeout=100)¶
-
naps.cores.axi.sim_util.
axi_ram_sim_model
(platform: naps.util.sim.SimPlatform, domain='sync')¶
-
naps.cores.axi.sim_util.
axil_read
(axi, addr, timeout=100)¶
-
naps.cores.axi.sim_util.
axil_write
(axi, addr, data, timeout=100)¶
naps.cores.axi.stream_reader module¶
naps.cores.axi.stream_reader_test module¶
naps.cores.axi.stream_writer module¶
naps.cores.axi.stream_writer_test module¶
naps.cores.axi.zynq_util module¶
-
naps.cores.axi.zynq_util.
if_none_get_zynq_hp_port
(maybe_axi_port, m, platform) → naps.cores.axi.axi_endpoint.AxiEndpoint¶ If maybe_axi_port is None, grab an AXI HP port from the zynq and return it. Otherwise returns the passed in AXI port.