Intel 81342 Developer's Manual page 493

Table of Contents

Advertisement

A p p l i c a t i o n D M A U n i t — I n t e l
T h e X O R a l g o r i t h m a n d m e t h o d o l o g y f o l l o w e d o n c e a c h a i n d e s c r i p t o r h a s b e e n
c o n f i g u r e d i s d e t a i l e d b e l o w :
1 . T h e A p p l i c a t i o n D M A a s a m a s t e r o n t h e b u s i n i t i a t e s d a t a t r a n s f e r f r o m t h e
a d d r e s s p o i n t e d a t b y t h e F i r s t S o u r c e A d d r e s s R e g i s t e r ( S A R 0
n u m b e r o f b y t e s t o X O R - t r a n s f e r i s s p e c i f i e d b y t h e B y t e C o u n t ( B C ) f i e l d i n t h e
c h a i n d e s c r i p t o r .
a . T h i s i s d e s i g n a t e d a s t h e f i r s t b l o c k o f d a t a i n t h e c u r r e n t X O R o p e r a t i o n , a n d
t h e d a t a i s t r a n s f e r r e d d i r e c t l y t o t h e X O R s t o r e q u e u e . T h e n u m b e r o f b y t e s
t r a n s f e r r e d t o t h e X O R s t o r e q u e u e i s 1 K B y t e .
N o t e :
W h e n t h e B y t e C o u n t R e g i s t e r c o n t a i n s a v a l u e g r e a t e r t h a n t h e b u f f e r s i z e , t h e A D M A
c o m p l e t e s t h e X O R - t r a n s f e r o p e r a t i o n o n t h e f i r s t b u f f e r o f d a t a o b t a i n e d f r o m e a c h
S o u r c e R e g i s t e r ( S A R 0 , S A R 2 - S A R 1 5 ) , t h e n p r o c e e d s w i t h t h e n e x t b u f f e r o f d a t a . T h i s
p r o c e s s i s r e p e a t e d u n t i l t h e B C R c o n t a i n s a z e r o v a l u e .
2 . A p p l i c a t i o n D M A t r a n s f e r s t h e f i r s t e i g h t b y t e s o f d a t a f r o m t h e a d d r e s s p o i n t e d a t
b y t h e S e c o n d S o u r c e A d d r e s s R e g i s t e r ( S A R 1 ) .
3 . X O R u n i t p e r f o r m s b i t - w i s e X O R a l g o r i t h m o n i n p u t o p e r a n d s . T h e i n p u t o p e r a n d s
a r e t h e f i r s t e i g h t b y t e s o f d a t a r e a d f r o m S A R 0 ( b y t e s 1 - 8 ) w h i c h a r e s t o r e d i n t h e
q u e u e a n d t h e f i r s t e i g h t b y t e s o f d a t a j u s t r e a d f r o m S A R 1 ( b y t e s 1 - 8 ) .
4 . X O R - e d r e s u l t i s t r a n s f e r r e d t o t h e X O R s t o r e q u e u e a n d s t o r e d i n t h e f i r s t e i g h t
b y t e s ( b y t e s 1 - 8 ) o v e r w r i t i n g p r e v i o u s l y s t o r e d d a t a .
5 . A p p l i c a t i o n D M A t r a n s f e r s t h e n e x t e i g h t b y t e s o f d a t a ( b y t e s 9 - 1 6 ) f r o m a d d r e s s
p o i n t e d a t b y t h e S e c o n d S o u r c e A d d r e s s R e g i s t e r ( S A R 1 ) .
6 . X O R u n i t p e r f o r m s t h e b i t - w i s e X O R a l g o r i t h m o n t h e i n p u t o p e r a n d s . T h e i n p u t
o p e r a n d s a r e t h e n e x t e i g h t b y t e s o f d a t a r e a d f r o m S A R 0 ( b y t e s 9 - 1 6 s t o r e d i n t h e
q u e u e ) a n d t h e e i g h t b y t e s o f d a t a r e a d f r o m S A R 1 i n S t e p - 5 .
7 . S t e p - 5 a n d S t e p - 6 ( D a t a t r a n s f e r & X O R ) a r e r e p e a t e d u n t i l a l l d a t a p o i n t e d a t b y
S A R 1 i s X O R - e d w i t h t h e c o r r e s p o n d i n g d a t a p o i n t e d a t b y S A R 0 . T h e X O R s t o r e
q u e u e n o w c o n t a i n s a b u f f e r f u l l o f X O R - e d d a t a , t h e s o u r c e a d d r e s s e s f o r w h i c h
w e r e s p e c i f i e d i n S A R 0 a n d S A R 1 .
8 . S t e p s 1 - 7 a r e r e p e a t e d f o r a l l e n a b l e d S o u r c e A d d r e s s R e g i s t e r s ( S A R 2 - S A R 1 5 ) .
9 . O n c e S t e p s 1 - 8 a r e c o m p l e t e d , t h e X O R o p e r a t i o n i s c o m p l e t e f o r t h e f i r s t f u l l
b u f f e r o f t h e c u r r e n t c h a i n d e s c r i p t o r . T h e d a t a i n t h e X O R s t o r e q u e u e i s t h e n
w r i t t e n t o m e m o r y a t t h e a d d r e s s p o i n t e d t o b y t h e D e s t i n a t i o n L o w e r / U p p e r
A d d r e s s R e g i s t e r ( D L A D R / D U A D R ) p a i r .
1 0 . B y t e C o u n t i s d e c r e m e n t e d b y o n e f u l l b u f f e r a s t h e d a t a i n t h e X O R s t o r e q u e u e i s
w r i t t e n t o m e m o r y .
1 1 . R e p e a t s t e p s 1 - 1 0 u n t i l t h e b y t e c o u n t h a s d e c r e m e n t e d t o z e r o .
2 0 . S A R 0 ... S A R 1 5 r e p r e s e n t t h e u p p e r / l o w e r a d d r e s s r e g i s t e r p a i r a s s o c i a t e d w i t h t h a t s o u r c e ( e . g . ,
S A R 0 c o r r e s p o n d s t o t h e S L A R 0 / S U A R 0 r e g i s t e r p a i r )
D e c e m b e r 2 0 0 7
O r d e r N u m b e r : 3 1 5 0 3 7 - 0 0 2 U S
®
8 1 3 4 1 a n d 8 1 3 4 2
2 0
) . T h e t o t a l
®
I n t e l
8 1 3 4 1 a n d 8 1 3 4 2 I / O P r o c e s s o r s
D e v e l o p e r ' s M a n u a l
4 9 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

81341

Table of Contents