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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Evaluation of Applying SpecC to the Integrated Design Method 149<br />

DMA circuit is realized by using intellectual property (IP). However, there<br />

are systems where the <strong>de</strong>vice cannot be the bus master or it cannot access a<br />

part of memory used by the processor. In these kinds of systems the DMA<br />

cannot be realized.<br />

Since the partition point is changed, the byte channel is converted into a<br />

hardware. The channel conversion rule to the hardware is <strong>de</strong>scribed in [7].<br />

6.3. Conversion result and discussion<br />

Figure 11-6 shows the relation between the transmitter part of SIO system in<br />

SpecC and the software and hardware obtained from the above conversion.<br />

The implementation behaves correctly on the prototype system. The hardware<br />

part with the receiver uses 951 cells in FPGA and a maximum frequency of<br />

40 MHz.<br />

By using a DMA circuit, changing the partition point of the SIO system<br />

into a PPP packet channel is possible. The results show that the number of<br />

cells in the FPGA implementation of the conversion with PPP packet channel<br />

is 3 times that of the conversion with the byte channel. This is because a DMA<br />

is inclu<strong>de</strong>d and the functions realized as hardware increased. Furthermore,<br />

since the interface converted from PPP packet channel <strong>de</strong>livers 32 bit data<br />

while the interface converted from the byte channel <strong>de</strong>livers only 8 bit data,<br />

the data size handled in the glue logics increased 4 times compared with the<br />

previous conversion. In this conversion, the behavior and the channel are<br />

converted to hardware module one to one. However, the behavior and the<br />

channel can be merged into one module <strong>for</strong> optimization.<br />

One problem of realizing the hardware using DMA is that the head address<br />

of the structure may vary when it is accessed from the processor or from the<br />

<strong>de</strong>vice. This is because the connections of the memory, the processor and the<br />

DMA circuit vary or the processor per<strong>for</strong>ms a memory translation. This<br />

problem can be solved by translating the address passed by the software to<br />

the addressed seen by the <strong>de</strong>vice.<br />

7. CONCLUSION<br />

In this paper, we have presented an integrated <strong>de</strong>sign method of a <strong>de</strong>vice and<br />

a <strong>de</strong>vice driver and we have evaluated the applicability of SpecC to the<br />

proposed method using the SIO system.<br />

Evaluations have shown that the SIO system can be mechanically converted<br />

by following the <strong>de</strong>scription gui<strong>de</strong>lines and preparing a library <strong>for</strong> channels.<br />

Since the SIO system can be <strong>de</strong>scribed using parallelism, synchronization and<br />

communication statements in SpecC, we have verified that SpecC can be used<br />

as the <strong>de</strong>scription language <strong>for</strong> the proposed integrated <strong>de</strong>sign method of a<br />

<strong>de</strong>vice driver and a <strong>de</strong>vice.<br />

Furthermore, we have verified that the conversion by changing the parti-

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

Saved successfully!

Ooh no, something went wrong!