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 />

Library dependencies<br />

The PVBusDecoder component has no dependencies on external libraries.<br />

5.2.3 PVBusMaster component<br />

The PVBusMaster component acts as a source for all transactions over the PVBus. If you want<br />

a component to act as a bus master, instantiate a PVBusMaster subcomponent and then use its<br />

control port to create one or more transaction generators to generate transactions on the bus.<br />

Figure 5-3 shows a view of the component in System Canvas.<br />

This component is written in C++.<br />

Figure 5-3 PVBusMaster in System Canvas<br />

Ports<br />

Table 5-3 provides a brief description of the PVBusMaster ports.<br />

Name Port protocol Type Description<br />

Table 5-3 PVBusMaster ports<br />

pvbus_m PVBus Master Sends out generated transactions.<br />

control PVTransactionMaster Slave Enables the owning component to<br />

instantiate pv::TransactionGenerator<br />

objects. See PVTransactionMaster<br />

protocol.<br />

PVTransactionMaster protocol<br />

The PVBusMaster component has one additional protocol.<br />

This protocol is used to instantiate a pv::TransactionGenerator object from a PVBusMaster:<br />

createTransactionGenerator( ) : pv::TransactionGenerator *<br />

Instantiates a new transaction generator to control this bus master. A caller can<br />

allocate as many TransactionGenerators as it wants. It is up to the caller to delete<br />

TransactionGenerators when they are no longer needed. For example:<br />

behavior init() {<br />

tg = master.createTransactionGenerator();<br />

}<br />

behavior destroy() {<br />

delete tg;<br />

}<br />

Parameters<br />

The PVBusMaster component has no parameters.<br />

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

ID051811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!