29.01.2015 Views

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

412 Chapter 30<br />

processor P3. Moreover‚ this application simulates with a cycle-count of<br />

422‚933‚748 and an instruction-count of 338‚079‚172 in an Xtensa processor<br />

with minimal configurable core options and with no additional instructions.<br />

The simulation time of this application is about 46 minutes and thus is a<br />

quite time consuming. The application consists 20 source files written in ANSI<br />

C‚ which inclu<strong>de</strong> 50 subroutines and about 3500 lines of co<strong>de</strong>. The compiled<br />

source co<strong>de</strong> size is 620 Kbytes.<br />

5. VERIFICATION METHODOLOGY & RESULTS<br />

We have pre-configured three Xtensa processors‚ namely P1‚ P2 and P3‚ <strong>for</strong><br />

this case study as explained above. As mentioned be<strong>for</strong>e‚ although Xtensa can<br />

be configured with other hardware parameters such as register file size‚ cache<br />

size etc.‚ in our case‚ all processors are configured with the same register file<br />

size‚ cache size etc. We consi<strong>de</strong>red constructing an Xtensa processor P4 with<br />

DSP Engine and FP unit together‚ but this proved to be inefficient. The<br />

hardware cost and initial simulation result <strong>for</strong> the speech recognition application<br />

<strong>for</strong> each of these processors are shown in Table 30-3. Nine specific<br />

functional units (ten TIE instructions) are implemented and the corresponding<br />

Table 30-2. Percentage of time spent <strong>for</strong> functions.<br />

Function<br />

Description<br />

P1<br />

P2<br />

P3<br />

Sqrtf<br />

Mod3<br />

Logf<br />

Divf<br />

Addf<br />

Multf<br />

Single precision square root<br />

Modular 3<br />

Single precision natural logarithm<br />

Single precision division<br />

Single precision addition<br />

Single precision multiplication<br />

1.30%<br />

0.20%<br />

2.70%<br />

0.80%<br />

13.6%<br />

58.3%<br />

2.30%<br />

0.60%<br />

2.60%<br />

1.80%<br />

25.1%<br />

31.1 %<br />

13.4%<br />

3.00%<br />

2.40%<br />

7.30%<br />

10.0%<br />

16.3%

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

Saved successfully!

Ooh no, something went wrong!