25.12.2013 Aufrufe

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

E.2. Loopback Core<br />

67<br />

// reads t h e l a s t b y t e from a b l o c k and t e r m i n a t e s t h e b l o c k r e a d<br />

byte lastBlockRead ( ) ;<br />

// e r a s e s t h e s e c t o r in wich t h e g i v e n a d r e s s i s<br />

72 void s e c t o r E r a s e ( long a d r e s s ) ;<br />

// e r a s e s t h e whole f l a s h<br />

void bulkErase ( ) ;<br />

77 // w r i t e s a 256 b y t e l o n g array to t h e a d r e s s e d page<br />

void pageProgram ( long adress , byte ∗ c o n t e n t a r r a y ) ;<br />

82<br />

// page program f u n t i o n s to f i l l t h e page i t e r a t i v e<br />

void startPageProgram ( long adress , byte content ) ;<br />

void writePageProgram ( byte content ) ;<br />

void lastPageProgram ( byte content ) ;<br />

/∗ ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗<br />

∗ Diplomwork :<br />

∗ <strong>Gecko3</strong> SoC HW/SW Development Board<br />

∗<br />

5 ∗ ( ‘ \ ( ) ( ) ( )<br />

∗ | ( ) ) | ( | | | | Berne U n i v e r s i t y o f Applied S c i e n c e s<br />

∗ | < ’| ) | | School o f Engineering and<br />

∗ | ( ) ) | | | | | | Information Technology<br />

∗ ( / ’( ) ( ) ( )<br />

10 ∗<br />

∗<br />

∗ Author : Matthias Zurbrügg<br />

∗ Date o f c r e a t i o n : 30.10.2006<br />

∗ D e s c r i p t i o n :<br />

15 ∗ Header with f u n c t i o n p r o t o t y p e s o f SPI Flash read / w r i t e and t h e<br />

∗ a u t o c o n f i g u r a t i o n<br />

∗<br />

∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ ∗/<br />

20 // i n i t i a l i s a t i o n f o r SPI Flash communication<br />

void s p i f l a s h i n i t ( void ) ;<br />

25<br />

// SPI Flash w r i t e f u n c t i o n<br />

void s p i f l a s h w r ( void ) ;<br />

// SPI Flash read f u n c t i o n<br />

void s p i f l a s h r d ( void ) ;<br />

// Booload f u n c t i o n t h a t c o n f i g u r e t h e FPGA from SPI Flash<br />

30 void b o o t l o a d c f g ( void ) ;<br />

E.2. Loopback Core<br />

E.2.1. Top<br />

−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

−− Diplomwork :<br />

−− <strong>Gecko3</strong> SoC HW/SW Development Board<br />

−−<br />

5 −− ( ‘ \ ( ) ( ) ( )<br />

−− | ( ) ) | ( | | | | Berne U n i v e r s i t y o f Applied S c i e n c e s<br />

−− | < ’| ) | | School o f Engineering and<br />

Project Report 95

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!