Do_byte_read(), Do_byte_write(), M_wr_addr_phase_ready_delay – Altera Mentor Verification IP Altera Edition AMBA AXI3/4TM User Manual

Page 659: Example 11-31. m_wr_addr_phase_ready_delay, Cedures, That read and write a

Advertising
background image

VHDL Tutorials

Verifying a Master DUT

Mentor VIP AE AXI3/4 User Guide, V10.2b

639

September 2013

do_byte_read()

The

do_byte_read()

procedure reads a data byte from the

Internal Memory

mem given an

address location addr, as shown below.

You can edit this procedure to modify the way the read data is extracted from the internal
memory.

-- Procedure : do_byte_read
-- Procedure to provide read data byte from memory at particular input
-- address
procedure do_byte_read(addr : in std_logic_vector(AXI4_MAX_BIT_SIZE-1
downto 0); data : out std_logic_vector(7 downto 0)) is
begin

data := mem(to_integer(addr));

end do_byte_read;

do_byte_write()

The do_byte_write() procedure when called writes a data byte to the

Internal Memory

mem

given an address location addr, as shown below.

You can edit this procedure to modify the way the write data is stored in the internal memory.

-- Procedure : do_byte_write
-- Procedure to write data byte to memory at particular input address
procedure do_byte_write(addr : in std_logic_vector(AXI4_MAX_BIT_SIZE-1
downto 0); data : in std_logic_vector(7 downto 0)) is
begin

mem(to_integer(addr)) := data;

end do_byte_write;

m_wr_addr_phase_ready_delay

The m_wr_addr_phase_ready_delay variable holds the AWREADY signal delay. The delay
value extends the length of the write address phase by a number of ACLK cycles. The starting
point of the delay is determined by the assertion of the AWVALID signal.

Example 11-31

shows the AWREADY signal delayed by 2 ACLK cycles. You can edit this

variable to change the AWREADY signal delay.

Example 11-31. m_wr_addr_phase_ready_delay

-- Variable : m_wr_addr_phase_ready_delay
signal m_wr_addr_phase_ready_delay : integer := 2;

Advertising