29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Peripheral and Interface Components<br />

read(int socket_id, const sc_dt::uint64 & addr,<br />

unsigned char * data, unsigned int size,<br />

const amba_pv::amba_pv_control * ctrl,<br />

sc_core::sc_time & t):<br />

amba_pv::amba_pv_resp_t<br />

write()<br />

Completes a single write transaction at the given address with specified data and<br />

write strobes. The size of the data is specified in bytes. Additional AMBA<br />

protocol control information can be specified using the ctrl parameter. The<br />

socket_id parameter must be set to 0 in this context.<br />

write(int socket_id, const sc_dt::uint64 & addr,<br />

unsigned char * data, unsigned int size,<br />

const amba_pv::amba_pv_control * ctrl,<br />

unsigned char * strb, sc_core::sc_time & t):<br />

amba_pv::amba_pv_resp_t<br />

debug_read() Completes a debug read transaction from a given address without causing any<br />

side effects. Specify the number of bytes to read in the length parameter. The<br />

number of successfully read values is returned. Additional AMBA protocol<br />

control information can be specified in the ctrl parameter. The socket_id<br />

parameter must be set to 0 in this context. This behavior is empty by default and<br />

returns 0.<br />

debug_read(int socket_id, const sc_dt::uint64 & addr,<br />

unsigned char * data, unsigned int length,<br />

const amba_pv::amba_pv_control * ctrl):<br />

unsigned int<br />

debug_write()<br />

Completes a debug write transaction to a given address without causing any side<br />

effects. Specify the number of bytes to write in the length parameter. The number<br />

of successfully written values is returned. Additional AMBA protocol control<br />

information can be specified in the ctrl parameter. The socket_id parameter must<br />

be set to 0 in this context. This behavior is empty by default and returns 0.<br />

debug_write(int socket_id, const sc_dt::uint64 & addr,<br />

unsigned char * data, unsigned int length,<br />

const amba_pv::amba_pv_control * ctrl):<br />

unsigned int<br />

b_transport()<br />

This is an optional slave behavior for blocking transport for DMI. It completes a<br />

single transaction using the blocking transport interface. The<br />

amba_pv::amba_pv_extension must be added to the transaction before calling this<br />

behavior. The socket_id parameter must be set to 0 in this context.<br />

b_transport(int socket_id,<br />

amba_pv::amba_pv_transaction & trans, sc_core::sctime & t)<br />

get_direct_mem_ptr()<br />

This is an optional slave behavior for requesting a DMI access to a given address.<br />

It returns a reference to a DMI descriptor that contains the bounds of the granted<br />

DMI region. Returns true if a DMI region is granted, false otherwise.<br />

The amba_pv::amba_pv_extension must be added to the transaction before calling<br />

this behavior. The socket_id parameter must be set to 0 in this context.<br />

get_direct_mem_ptr(int socket_id,<br />

amba_pv::amba_pv_transaction & trans,<br />

tlm::tlm_dmi & dmi_data):<br />

bool<br />

<strong>ARM</strong> DUI 0423J Copyright © 2008-2011 <strong>ARM</strong>. All rights reserved. 5-20<br />

ID051811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!