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.

Simulation Trace Verification <strong>for</strong> Quantitative Constraints 283<br />

Table 21-1. Results of Constraint (8) on EXPR.<br />

Lines of traces<br />

Time used (s)<br />

Memory usage<br />

< 1<br />

8 KB<br />

1<br />

8 KB<br />

12<br />

8 KB<br />

130<br />

8 KB<br />

4.2. FIR filter<br />

Figure 21-7 shows a 16-tap FIR filter that reads in samples when the input is<br />

valid and writes out the result when output is ready. The filter <strong>de</strong>sign is divi<strong>de</strong>d<br />

into a control FSM and a data path. The test bench feeds sampled data of<br />

arbitrary length and the output is displayed with the simulator.<br />

We utilize our automatic trace checker generator and verify the properties<br />

specified in constraints (1)–(5). The same trace files are used <strong>for</strong> all the<br />

analysis. The time and memory requirements are shown in Table 21-2. We<br />

can see that the time required <strong>for</strong> analysis grows linearly with the size of the<br />

trace file, and the maximum memory requirement is <strong>for</strong>mula <strong>de</strong>pen<strong>de</strong>nt but<br />

stays fairly constant. Using LOC <strong>for</strong> verification of common real-time<br />

constraints is in<strong>de</strong>ed very efficient.<br />

Table 21-2. Result of constraints (1–5) on FIR.<br />

Lines of traces<br />

Constraint (1)<br />

Time(s)<br />

Memory<br />

< 1<br />

28 B<br />

1<br />

28 B<br />

8<br />

28 B<br />

89<br />

28 B<br />

Constraint (2)<br />

Time(s)<br />

Memory<br />

< 1<br />

28 B<br />

1<br />

28 B<br />

12<br />

28 B<br />

120<br />

28 B<br />

Constraint (3)<br />

Time(s)<br />

Memory<br />

< 1<br />

24 B<br />

1<br />

24 B<br />

7<br />

24 B<br />

80<br />

24 B<br />

Constraint (4)<br />

Time(s)<br />

Memory<br />

< 1<br />

0.4 KB<br />

1<br />

0.4 KB<br />

7<br />

0.4 KB<br />

77<br />

0.4 KB<br />

Constraint (5)<br />

Time(s)<br />

Memory<br />

< 1<br />

4 KB<br />

1<br />

4 KB<br />

7<br />

4 KB<br />

79<br />

4 KB

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

Saved successfully!

Ooh no, something went wrong!