SURF  1.0
AxiPkg Package Reference
Package Body >> AxiPkg

Functions

AxiConfigType   axiConfig (
constant ADDR_WIDTH_C: in in positive range 12 to 64 32
constant DATA_BYTES_C: in in positive range 1 to 128 4
constant ID_BITS_C: in in positive range 1 to 32 12
constant LEN_BITS_C: in in natural range 0 to 8 4
)
AxiWriteMasterType   axiWriteMasterInit (
constant AXI_CONFIG_C: in in AxiConfigType
bready: in in sl '0'
constant AXI_BURST_C: in in slv( 1 downto 0) "01"
constant AXI_CACHE_C: in in slv( 3 downto 0) "1111"
)
AxiReadMasterType   axiReadMasterInit (
constant AXI_CONFIG_C: in in AxiConfigType
constant AXI_BURST_C: in in slv( 1 downto 0) "01"
constant AXI_CACHE_C: in in slv( 3 downto 0) "1111"
)
AxiConfigType   ite (
i: in boolean
t: in AxiConfigType
e: in AxiConfigType
)
slv   getAxiLen ( axiConfig: in AxiConfigType , burstBytes: in integer range 1 to 4096 4096 )
slv   getAxiLen (
axiConfig: in AxiConfigType
burstBytes: in integer range 1 to 4096 4096
totalBytes: in slv
address: in slv
)
slv   getAxiReadBytes ( axiConfig: in AxiConfigType , axiRead: in AxiReadMasterType )

Libraries

ieee 

Use Clauses

std_logic_1164 
std_logic_arith 
std_logic_unsigned 
StdRtlPkg  Package <StdRtlPkg>

Constants

AXI_READ_MASTER_INIT_C  AxiReadMasterType := ( arvalid = > ' 0 ' , araddr = > ( others = > ' 0 ' ) , arid = > ( others = > ' 0 ' ) , arlen = > ( others = > ' 0 ' ) , arsize = > ( others = > ' 0 ' ) , arburst = > ( others = > ' 0 ' ) , arlock = > ( others = > ' 0 ' ) , arprot = > ( others = > ' 0 ' ) , arcache = > ( others = > ' 0 ' ) , arqos = > ( others = > ' 0 ' ) , arregion = > ( others = > ' 0 ' ) , rready = > ' 0 ' )
AXI_READ_MASTER_FORCE_C  AxiReadMasterType := ( arvalid = > ' 0 ' , araddr = > ( others = > ' 0 ' ) , arid = > ( others = > ' 0 ' ) , arlen = > ( others = > ' 0 ' ) , arsize = > ( others = > ' 0 ' ) , arburst = > ( others = > ' 0 ' ) , arlock = > ( others = > ' 0 ' ) , arprot = > ( others = > ' 0 ' ) , arcache = > ( others = > ' 0 ' ) , arqos = > ( others = > ' 0 ' ) , arregion = > ( others = > ' 0 ' ) , rready = > ' 1 ' )
AXI_READ_SLAVE_INIT_C  AxiReadSlaveType := ( arready = > ' 0 ' , rdata = > ( others = > ' 0 ' ) , rlast = > ' 0 ' , rvalid = > ' 0 ' , rid = > ( others = > ' 0 ' ) , rresp = > ( others = > ' 0 ' ) )
AXI_READ_SLAVE_FORCE_C  AxiReadSlaveType := ( arready = > ' 1 ' , rdata = > ( others = > ' 0 ' ) , rlast = > ' 0 ' , rvalid = > ' 0 ' , rid = > ( others = > ' 0 ' ) , rresp = > ( others = > ' 0 ' ) )
AXI_WRITE_MASTER_INIT_C  AxiWriteMasterType := ( awvalid = > ' 0 ' , awaddr = > ( others = > ' 0 ' ) , awid = > ( others = > ' 0 ' ) , awlen = > ( others = > ' 0 ' ) , awsize = > ( others = > ' 0 ' ) , awburst = > ( others = > ' 0 ' ) , awlock = > ( others = > ' 0 ' ) , awprot = > ( others = > ' 0 ' ) , awcache = > ( others = > ' 0 ' ) , awqos = > ( others = > ' 0 ' ) , awregion = > ( others = > ' 0 ' ) , wdata = > ( others = > ' 0 ' ) , wlast = > ' 0 ' , wvalid = > ' 0 ' , wid = > ( others = > ' 0 ' ) , wstrb = > ( others = > ' 0 ' ) , bready = > ' 0 ' )
AXI_WRITE_MASTER_FORCE_C  AxiWriteMasterType := ( awvalid = > ' 0 ' , awaddr = > ( others = > ' 0 ' ) , awid = > ( others = > ' 0 ' ) , awlen = > ( others = > ' 0 ' ) , awsize = > ( others = > ' 0 ' ) , awburst = > ( others = > ' 0 ' ) , awlock = > ( others = > ' 0 ' ) , awprot = > ( others = > ' 0 ' ) , awcache = > ( others = > ' 0 ' ) , awqos = > ( others = > ' 0 ' ) , awregion = > ( others = > ' 0 ' ) , wdata = > ( others = > ' 0 ' ) , wlast = > ' 0 ' , wvalid = > ' 0 ' , wid = > ( others = > ' 0 ' ) , wstrb = > ( others = > ' 0 ' ) , bready = > ' 1 ' )
AXI_WRITE_SLAVE_INIT_C  AxiWriteSlaveType := ( awready = > ' 0 ' , wready = > ' 0 ' , bresp = > ( others = > ' 0 ' ) , bvalid = > ' 0 ' , bid = > ( others = > ' 0 ' ) )
AXI_WRITE_SLAVE_FORCE_C  AxiWriteSlaveType := ( awready = > ' 1 ' , wready = > ' 1 ' , bresp = > ( others = > ' 0 ' ) , bvalid = > ' 0 ' , bid = > ( others = > ' 0 ' ) )
AXI_CTRL_INIT_C  AxiCtrlType := ( pause = > ' 1 ' , overflow = > ' 0 ' )
AXI_CTRL_UNUSED_C  AxiCtrlType := ( pause = > ' 0 ' , overflow = > ' 0 ' )
AXI_CONFIG_INIT_C  AxiConfigType := axiConfig ( ADDR_WIDTH_C = > 32 , DATA_BYTES_C = > 4 , ID_BITS_C = > 12 , LEN_BITS_C = > 4 )

Types

AxiReadMasterArray array ( natural range <> ) of AxiReadMasterType
AxiReadSlaveArray array ( natural range <> ) of AxiReadSlaveType
AxiWriteMasterArray array ( natural range <> ) of AxiWriteMasterType
AxiWriteSlaveArray array ( natural range <> ) of AxiWriteSlaveType
AxiCtrlArray array ( natural range <> ) of AxiCtrlType

Records

AxiReadMasterType  
arvalid  sl
araddr  slv ( 63 downto 0 )
arid  slv ( 31 downto 0 )
arlen  slv ( 7 downto 0 )
arsize  slv ( 2 downto 0 )
arburst  slv ( 1 downto 0 )
arlock  slv ( 1 downto 0 )
arprot  slv ( 2 downto 0 )
arcache  slv ( 3 downto 0 )
arqos  slv ( 3 downto 0 )
arregion  slv ( 3 downto 0 )
rready  sl
AxiReadSlaveType  
arready  sl
rdata  slv ( 1023 downto 0 )
rlast  sl
rvalid  sl
rid  slv ( 31 downto 0 )
rresp  slv ( 1 downto 0 )
AxiWriteMasterType  
awvalid  sl
awaddr  slv ( 63 downto 0 )
awid  slv ( 31 downto 0 )
awlen  slv ( 7 downto 0 )
awsize  slv ( 2 downto 0 )
awburst  slv ( 1 downto 0 )
awlock  slv ( 1 downto 0 )
awprot  slv ( 2 downto 0 )
awcache  slv ( 3 downto 0 )
awqos  slv ( 3 downto 0 )
awregion  slv ( 3 downto 0 )
wdata  slv ( 1023 downto 0 )
wlast  sl
wvalid  sl
wid  slv ( 31 downto 0 )
wstrb  slv ( 127 downto 0 )
bready  sl
AxiWriteSlaveType  
awready  sl
wready  sl
bresp  slv ( 1 downto 0 )
bvalid  sl
bid  slv ( 31 downto 0 )
AxiCtrlType  
pause  sl
overflow  sl
AxiConfigType  
ADDR_WIDTH_C  positive range 12 to 64
DATA_BYTES_C  positive range 1 to 128
ID_BITS_C  positive range 1 to 32
LEN_BITS_C  natural range 0 to 8

Detailed Description

Definition at line 25 of file AxiPkg.vhd.

Member Function Documentation

◆ axiConfig()

AxiConfigType axiConfig (   ADDR_WIDTH_C in in positive range 12 to 64 32 ,
  DATA_BYTES_C in in positive range 1 to 128 4 ,
  ID_BITS_C in in positive range 1 to 32 12 ,
  LEN_BITS_C in in natural range 0 to 8 4  
)
Function

Definition at line 220 of file AxiPkg.vhd.

◆ axiWriteMasterInit()

AxiWriteMasterType axiWriteMasterInit (   AXI_CONFIG_C in in AxiConfigType ,
  bready in in sl ' 0 ' ,
  AXI_BURST_C in in slv ( 1 downto 0 ) "01" ,
  AXI_CACHE_C in in slv ( 3 downto 0 ) "1111"  
)
Function

Definition at line 233 of file AxiPkg.vhd.

◆ axiReadMasterInit()

AxiReadMasterType axiReadMasterInit (   AXI_CONFIG_C in in AxiConfigType ,
  AXI_BURST_C in in slv ( 1 downto 0 ) "01" ,
  AXI_CACHE_C in in slv ( 3 downto 0 ) "1111"  
)
Function

Definition at line 241 of file AxiPkg.vhd.

◆ ite()

AxiConfigType ite (   i in boolean ,
  t in AxiConfigType ,
  e in AxiConfigType  
)
Function

Definition at line 247 of file AxiPkg.vhd.

◆ getAxiLen() [1/2]

slv getAxiLen (   axiConfig in AxiConfigType ,
  burstBytes in integer range 1 to 4096 4096  
)
Function

Definition at line 251 of file AxiPkg.vhd.

◆ getAxiLen() [2/2]

slv getAxiLen (   axiConfig in AxiConfigType ,
  burstBytes in integer range 1 to 4096 4096 ,
  totalBytes in slv ,
  address in slv  
)
Function

Definition at line 260 of file AxiPkg.vhd.

◆ getAxiReadBytes()

slv getAxiReadBytes (   axiConfig in AxiConfigType ,
  axiRead in AxiReadMasterType  
)
Function

Definition at line 268 of file AxiPkg.vhd.

Member Data Documentation

◆ ieee

ieee
Library

Definition at line 18 of file AxiPkg.vhd.

◆ std_logic_1164

std_logic_1164
Package

Definition at line 19 of file AxiPkg.vhd.

◆ std_logic_arith

std_logic_arith
Package

Definition at line 20 of file AxiPkg.vhd.

◆ std_logic_unsigned

Definition at line 21 of file AxiPkg.vhd.

◆ StdRtlPkg

StdRtlPkg
Package

Definition at line 23 of file AxiPkg.vhd.

◆ AxiReadMasterType

Definition at line 32 of file AxiPkg.vhd.

◆ arvalid

arvalid sl
Record

Definition at line 34 of file AxiPkg.vhd.

◆ araddr

araddr slv ( 63 downto 0 )
Record

Definition at line 35 of file AxiPkg.vhd.

◆ arid

arid slv ( 31 downto 0 )
Record

Definition at line 36 of file AxiPkg.vhd.

◆ arlen

arlen slv ( 7 downto 0 )
Record

Definition at line 37 of file AxiPkg.vhd.

◆ arsize

arsize slv ( 2 downto 0 )
Record

Definition at line 38 of file AxiPkg.vhd.

◆ arburst

arburst slv ( 1 downto 0 )
Record

Definition at line 39 of file AxiPkg.vhd.

◆ arlock

arlock slv ( 1 downto 0 )
Record

Definition at line 40 of file AxiPkg.vhd.

◆ arprot

arprot slv ( 2 downto 0 )
Record

Definition at line 41 of file AxiPkg.vhd.

◆ arcache

arcache slv ( 3 downto 0 )
Record

Definition at line 42 of file AxiPkg.vhd.

◆ arqos

arqos slv ( 3 downto 0 )
Record

Definition at line 43 of file AxiPkg.vhd.

◆ arregion

arregion slv ( 3 downto 0 )
Record

Definition at line 44 of file AxiPkg.vhd.

◆ rready

rready sl
Record

Definition at line 46 of file AxiPkg.vhd.

◆ AxiReadMasterArray

AxiReadMasterArray array ( natural range <> ) of AxiReadMasterType
Type

Definition at line 48 of file AxiPkg.vhd.

◆ AXI_READ_MASTER_INIT_C

AXI_READ_MASTER_INIT_C AxiReadMasterType := ( arvalid = > ' 0 ' , araddr = > ( others = > ' 0 ' ) , arid = > ( others = > ' 0 ' ) , arlen = > ( others = > ' 0 ' ) , arsize = > ( others = > ' 0 ' ) , arburst = > ( others = > ' 0 ' ) , arlock = > ( others = > ' 0 ' ) , arprot = > ( others = > ' 0 ' ) , arcache = > ( others = > ' 0 ' ) , arqos = > ( others = > ' 0 ' ) , arregion = > ( others = > ' 0 ' ) , rready = > ' 0 ' )
Constant

Definition at line 49 of file AxiPkg.vhd.

◆ AXI_READ_MASTER_FORCE_C

AXI_READ_MASTER_FORCE_C AxiReadMasterType := ( arvalid = > ' 0 ' , araddr = > ( others = > ' 0 ' ) , arid = > ( others = > ' 0 ' ) , arlen = > ( others = > ' 0 ' ) , arsize = > ( others = > ' 0 ' ) , arburst = > ( others = > ' 0 ' ) , arlock = > ( others = > ' 0 ' ) , arprot = > ( others = > ' 0 ' ) , arcache = > ( others = > ' 0 ' ) , arqos = > ( others = > ' 0 ' ) , arregion = > ( others = > ' 0 ' ) , rready = > ' 1 ' )
Constant

Definition at line 62 of file AxiPkg.vhd.

◆ AxiReadSlaveType

Definition at line 79 of file AxiPkg.vhd.

◆ arready

arready sl
Record

Definition at line 81 of file AxiPkg.vhd.

◆ rdata

rdata slv ( 1023 downto 0 )
Record

Definition at line 83 of file AxiPkg.vhd.

◆ rlast

rlast sl
Record

Definition at line 84 of file AxiPkg.vhd.

◆ rvalid

rvalid sl
Record

Definition at line 85 of file AxiPkg.vhd.

◆ rid

rid slv ( 31 downto 0 )
Record

Definition at line 86 of file AxiPkg.vhd.

◆ rresp

rresp slv ( 1 downto 0 )
Record

Definition at line 87 of file AxiPkg.vhd.

◆ AxiReadSlaveArray

AxiReadSlaveArray array ( natural range <> ) of AxiReadSlaveType
Type

Definition at line 89 of file AxiPkg.vhd.

◆ AXI_READ_SLAVE_INIT_C

AXI_READ_SLAVE_INIT_C AxiReadSlaveType := ( arready = > ' 0 ' , rdata = > ( others = > ' 0 ' ) , rlast = > ' 0 ' , rvalid = > ' 0 ' , rid = > ( others = > ' 0 ' ) , rresp = > ( others = > ' 0 ' ) )
Constant

Definition at line 90 of file AxiPkg.vhd.

◆ AXI_READ_SLAVE_FORCE_C

AXI_READ_SLAVE_FORCE_C AxiReadSlaveType := ( arready = > ' 1 ' , rdata = > ( others = > ' 0 ' ) , rlast = > ' 0 ' , rvalid = > ' 0 ' , rid = > ( others = > ' 0 ' ) , rresp = > ( others = > ' 0 ' ) )
Constant

Definition at line 97 of file AxiPkg.vhd.

◆ AxiWriteMasterType

Definition at line 108 of file AxiPkg.vhd.

◆ awvalid

awvalid sl
Record

Definition at line 110 of file AxiPkg.vhd.

◆ awaddr

awaddr slv ( 63 downto 0 )
Record

Definition at line 111 of file AxiPkg.vhd.

◆ awid

awid slv ( 31 downto 0 )
Record

Definition at line 112 of file AxiPkg.vhd.

◆ awlen

awlen slv ( 7 downto 0 )
Record

Definition at line 113 of file AxiPkg.vhd.

◆ awsize

awsize slv ( 2 downto 0 )
Record

Definition at line 114 of file AxiPkg.vhd.

◆ awburst

awburst slv ( 1 downto 0 )
Record

Definition at line 115 of file AxiPkg.vhd.

◆ awlock

awlock slv ( 1 downto 0 )
Record

Definition at line 116 of file AxiPkg.vhd.

◆ awprot

awprot slv ( 2 downto 0 )
Record

Definition at line 117 of file AxiPkg.vhd.

◆ awcache

awcache slv ( 3 downto 0 )
Record

Definition at line 118 of file AxiPkg.vhd.

◆ awqos

awqos slv ( 3 downto 0 )
Record

Definition at line 119 of file AxiPkg.vhd.

◆ awregion

awregion slv ( 3 downto 0 )
Record

Definition at line 120 of file AxiPkg.vhd.

◆ wdata

wdata slv ( 1023 downto 0 )
Record

Definition at line 122 of file AxiPkg.vhd.

◆ wlast

wlast sl
Record

Definition at line 123 of file AxiPkg.vhd.

◆ wvalid

wvalid sl
Record

Definition at line 124 of file AxiPkg.vhd.

◆ wid

wid slv ( 31 downto 0 )
Record

Definition at line 125 of file AxiPkg.vhd.

◆ wstrb

wstrb slv ( 127 downto 0 )
Record

Definition at line 126 of file AxiPkg.vhd.

◆ bready

bready sl
Record

Definition at line 128 of file AxiPkg.vhd.

◆ AxiWriteMasterArray

AxiWriteMasterArray array ( natural range <> ) of AxiWriteMasterType
Type

Definition at line 130 of file AxiPkg.vhd.

◆ AXI_WRITE_MASTER_INIT_C

AXI_WRITE_MASTER_INIT_C AxiWriteMasterType := ( awvalid = > ' 0 ' , awaddr = > ( others = > ' 0 ' ) , awid = > ( others = > ' 0 ' ) , awlen = > ( others = > ' 0 ' ) , awsize = > ( others = > ' 0 ' ) , awburst = > ( others = > ' 0 ' ) , awlock = > ( others = > ' 0 ' ) , awprot = > ( others = > ' 0 ' ) , awcache = > ( others = > ' 0 ' ) , awqos = > ( others = > ' 0 ' ) , awregion = > ( others = > ' 0 ' ) , wdata = > ( others = > ' 0 ' ) , wlast = > ' 0 ' , wvalid = > ' 0 ' , wid = > ( others = > ' 0 ' ) , wstrb = > ( others = > ' 0 ' ) , bready = > ' 0 ' )
Constant

Definition at line 131 of file AxiPkg.vhd.

◆ AXI_WRITE_MASTER_FORCE_C

AXI_WRITE_MASTER_FORCE_C AxiWriteMasterType := ( awvalid = > ' 0 ' , awaddr = > ( others = > ' 0 ' ) , awid = > ( others = > ' 0 ' ) , awlen = > ( others = > ' 0 ' ) , awsize = > ( others = > ' 0 ' ) , awburst = > ( others = > ' 0 ' ) , awlock = > ( others = > ' 0 ' ) , awprot = > ( others = > ' 0 ' ) , awcache = > ( others = > ' 0 ' ) , awqos = > ( others = > ' 0 ' ) , awregion = > ( others = > ' 0 ' ) , wdata = > ( others = > ' 0 ' ) , wlast = > ' 0 ' , wvalid = > ' 0 ' , wid = > ( others = > ' 0 ' ) , wstrb = > ( others = > ' 0 ' ) , bready = > ' 1 ' )
Constant

Definition at line 149 of file AxiPkg.vhd.

◆ AxiWriteSlaveType

Definition at line 171 of file AxiPkg.vhd.

◆ awready

awready sl
Record

Definition at line 173 of file AxiPkg.vhd.

◆ wready

wready sl
Record

Definition at line 175 of file AxiPkg.vhd.

◆ bresp

bresp slv ( 1 downto 0 )
Record

Definition at line 177 of file AxiPkg.vhd.

◆ bvalid

bvalid sl
Record

Definition at line 178 of file AxiPkg.vhd.

◆ bid

bid slv ( 31 downto 0 )
Record

Definition at line 179 of file AxiPkg.vhd.

◆ AxiWriteSlaveArray

AxiWriteSlaveArray array ( natural range <> ) of AxiWriteSlaveType
Type

Definition at line 181 of file AxiPkg.vhd.

◆ AXI_WRITE_SLAVE_INIT_C

AXI_WRITE_SLAVE_INIT_C AxiWriteSlaveType := ( awready = > ' 0 ' , wready = > ' 0 ' , bresp = > ( others = > ' 0 ' ) , bvalid = > ' 0 ' , bid = > ( others = > ' 0 ' ) )
Constant

Definition at line 182 of file AxiPkg.vhd.

◆ AXI_WRITE_SLAVE_FORCE_C

AXI_WRITE_SLAVE_FORCE_C AxiWriteSlaveType := ( awready = > ' 1 ' , wready = > ' 1 ' , bresp = > ( others = > ' 0 ' ) , bvalid = > ' 0 ' , bid = > ( others = > ' 0 ' ) )
Constant

Definition at line 188 of file AxiPkg.vhd.

◆ AxiCtrlType

AxiCtrlType
Record

Definition at line 198 of file AxiPkg.vhd.

◆ pause

pause sl
Record

Definition at line 199 of file AxiPkg.vhd.

◆ overflow

overflow sl
Record

Definition at line 200 of file AxiPkg.vhd.

◆ AxiCtrlArray

AxiCtrlArray array ( natural range <> ) of AxiCtrlType
Type

Definition at line 202 of file AxiPkg.vhd.

◆ AXI_CTRL_INIT_C

AXI_CTRL_INIT_C AxiCtrlType := ( pause = > ' 1 ' , overflow = > ' 0 ' )
Constant

Definition at line 203 of file AxiPkg.vhd.

◆ AXI_CTRL_UNUSED_C

AXI_CTRL_UNUSED_C AxiCtrlType := ( pause = > ' 0 ' , overflow = > ' 0 ' )
Constant

Definition at line 206 of file AxiPkg.vhd.

◆ AxiConfigType

AxiConfigType
Record

Definition at line 213 of file AxiPkg.vhd.

◆ ADDR_WIDTH_C

ADDR_WIDTH_C positive range 12 to 64
Record

Definition at line 214 of file AxiPkg.vhd.

◆ DATA_BYTES_C

DATA_BYTES_C positive range 1 to 128
Record

Definition at line 215 of file AxiPkg.vhd.

◆ ID_BITS_C

ID_BITS_C positive range 1 to 32
Record

Definition at line 216 of file AxiPkg.vhd.

◆ LEN_BITS_C

LEN_BITS_C natural range 0 to 8
Record

Definition at line 217 of file AxiPkg.vhd.

◆ AXI_CONFIG_INIT_C

AXI_CONFIG_INIT_C AxiConfigType := axiConfig ( ADDR_WIDTH_C = > 32 , DATA_BYTES_C = > 4 , ID_BITS_C = > 12 , LEN_BITS_C = > 4 )
Constant

Definition at line 227 of file AxiPkg.vhd.


The documentation for this class was generated from the following file: