14.02.2013 Views

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

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.

Appendix I / Utilities / General<br />

_ _<br />

22.2 General Utilities<br />

22.2.1 System Clock Update<br />

Provision for up to 50 system clocks of which 23 are currently in use, each<br />

initialised to a different cyclic rate in CONSTANTS. The Master Clock runs<br />

at 16 kHz from which the sub-system clocks are derived. Thus the<br />

simulation reference time interval (∆tR) has a fixed value of 62.5 µs. To<br />

prevent time quantisation only clocks that are 16 kHz dividers are permitted.<br />

CLOCK<br />

( n )<br />

Table 22-1 : Simulation Clock Frequencies<br />

RATE<br />

ωC (Hz)<br />

CLOCK<br />

( n )<br />

22.2-1<br />

RATE<br />

ωC (Hz)<br />

CLOCK<br />

( n )<br />

RATE<br />

ωC (Hz)<br />

1 8000 9 400 17 20<br />

2 4000 10 200 18 10<br />

3 3200 11 125 19 8<br />

4 2000 12 100 20 5<br />

5 1600 13 80 21 4<br />

6 1000 14 50 22 2<br />

7 800 15 40 23 1<br />

8 500 16 25 NUPDAT := 23<br />

The clocks are synchronised during initialisation so that their leading edges<br />

are aligned. When the clocks are reset this represents their leading edge to<br />

which all simulation models are latched. During initialisation the clock<br />

rates in Table 22-1 are converted into the number of simulation reference<br />

cycles in I_TIMING. These indices control the clock reset and are stored in<br />

the 2 nd column of array UPDATE(n,2) U(n,2), where (n) is the clock<br />

identifier. For the time period after initialisation [ 0 , ∆tR [ ,<br />

ω<br />

CLK<br />

ω<br />

C<br />

<<br />

nint<br />

( n , 1 ) : = 1<br />

U k : = 1<br />

⎛<br />

⎜<br />

⎝ ω<br />

Equation 22.2-1<br />

1<br />

⋅ ∆t<br />

( ) ( ) ⎟ 1 ∆t<br />

⇒ U n , 2 : = nint ⎜<br />

R<br />

CLK<br />

( 1 ∆t<br />

) ⇒ U ( n , 2 ) : = nint ( 1 t )<br />

≥ n int<br />

∆<br />

R<br />

R<br />

⎞<br />

⎠<br />

Equation 22.2-2<br />

R<br />

Equation 22.2-3<br />

Vector TUPDAT(n) T(n) remains constant once initialised and contains the<br />

time interval between clock leading edges,

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

Saved successfully!

Ooh no, something went wrong!