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.

Signaling and Clocking Protocols<br />

Verification and testing<br />

The MasterClock component has been tested as part of the VE example system using VE test<br />

suites and by booting operating systems.<br />

Performance<br />

The MasterClock component has no effect on the performance of a PV system.<br />

Library dependencies<br />

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

3.3.2 ClockDivider component<br />

The ClockDivider component uses a configurable ratio to convert the ClockSignal rate at its<br />

input to a new ClockSignal rate at its output. Changes to the input rate or ratio take effect<br />

immediately and clocking components dependent on the output rate continue counting at the<br />

new rate.<br />

For examples of the use of ClockDividers, see the VEMotherBoard.lisa component in the<br />

%PVLIB_HOME%\examples\RTSM_VE\LISA directory of your <strong>Fast</strong> <strong>Models</strong> distribution. On Linux, use<br />

the $PVLIB_HOME/examples/RTSM_VE/LISA directory instead.<br />

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

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

Figure 3-2 ClockDivider in System Canvas<br />

Ports<br />

Table 3-2 provides a brief description of the ClockDivider component ports.<br />

Name Port protocol Type Description<br />

clk_in ClockSignal slave source clock rate<br />

clk_out ClockSignal master output clock rate<br />

Table 3-2 ClockDivider ports<br />

rate ClockRateControl slave allows the clock divider ratio to be<br />

changed dynamically<br />

ClockRateControl protocol<br />

The ClockRateControl protocol can be used to set the ratio of a ClockDivider component.<br />

set(uint32_t mul, uint32_t div) : void<br />

sets the multiplier/divider that determines the clock divider ratio:<br />

clk_out freq = clk_in freq * mul / div<br />

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

ID051811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!