Altera Mentor Verification IP Altera Edition AMBA AXI3/4T Manuale Utente Pagina 194

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 783
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 193
Mentor VIP AE AXI3/4 User Guide, V10.2b
176
SystemVerilog Tutorials
Verifying a Master DUT
September 2013
initial block
In an initial block, the slave test program configures the maximum number of outstanding read
and write transactions before waiting for the ARESETn signal to be deactivated. The following
positive edge of ACLK starts the processing of any read or write transactions, and the handling
of the channel *READY signals in a fork-join block, as shown in Example 6-42 below.
Example 6-42. Initialization and Transaction Processing
initial
begin
// Initialisation
bfm.set_config
(
AXI4_CONFIG_MAX_OUTSTANDING_RD,m_max_outstanding_read_trans
);
bfm.set_config
(
AXI4_CONFIG_MAX_OUTSTANDING_WR,m_max_outstanding_write_trans
);
bfm.wait_on(AXI4_RESET_0_TO_1);
bfm.wait_on(AXI4_CLOCK_POSEDGE);
// Traffic generation
fork
process_read;
process_write;
handle_write_addr_ready;
handle_read_addr_ready;
handle_write_data_ready;
join
end
process_read()
The process_read() task loops forever, processing read transactions as they occur from the
master. A local transaction variable read_trans of type axi4_transaction is defined to hold a
record of the read transaction while it is being processed. A slave transaction is created by
calling the create_slave_transaction() function and assigned to the read_trans record.
The subsequent fork-join_none block performs a nonblocking statement so that the
process_read() task can begin again to create another read transaction record and get another
read address phase before the current read transaction has completed. This permits concurrent
read transactions to occur if the master issues a series of read address phases before any
previous read transactions have completed.
Vedere la pagina 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 782 783

Commenti su questo manuale

Nessun commento