25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

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.

Debugger Files<br />

/* 02 bytes logical width, 01 byte physical width */<br />

00000000 /* reserved */<br />

0x12 /* 1st data word, DM data is 8 bits */<br />

0x56<br />

0x9A<br />

0xDE /* 4th (last) data word */<br />

CRC16 /* optional, controlled by the -checksum switch */<br />

Debugger Files<br />

Debugger files provide input to the debugger to define support for simulation<br />

or emulation of your program. The debugger consumes all the<br />

executable file types produced by the linker (.dxe, .sm, .ovl). To simulate<br />

IO, the debugger also consumes the assembler data file format (.dat) <strong>and</strong><br />

the loadable file formats (.ldr).<br />

The st<strong>and</strong>ard hexadecimal format for a SPORT data file is one integer<br />

value per line. Hexadecimal numbers do not require a 0x prefix. A value<br />

can have any number of digits but is read into the SPORT register as<br />

follows.<br />

The hexadecimal number is converted to binary.<br />

The number of binary bits read in matches the word size set for the<br />

SPORT register <strong>and</strong> starts reading from the LSB. The SPORT register<br />

then zero-fills bits shorter than the word size or conversely truncates<br />

bits beyond the word size on the MSB end.<br />

In the following example (Table A-9), a SPORT register is set for 20-bit<br />

words, <strong>and</strong> the data file contains hexadecimal numbers. The simulator<br />

converts the hex numbers to binary <strong>and</strong> then fills/truncates to match the<br />

SPORT word size. The A5A5 is filled <strong>and</strong> 123456 is truncated.<br />

A-16 <strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!