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.

138 Chapter 11<br />

Another cause is that verification and <strong>de</strong>bugging of a <strong>de</strong>vice driver is<br />

difficult since a <strong>de</strong>vice driver must operate un<strong>de</strong>r the timing <strong>de</strong>termined by<br />

the <strong>de</strong>vice. In general, verification of time-<strong>de</strong>pen<strong>de</strong>nt software takes a long<br />

time since the operation must be verified <strong>for</strong> every possible timing. Moreover,<br />

even though an error occurred in a software, finding the bug is difficult since<br />

the repetition of a bug is low.<br />

To solve this problem, we have conducted a research on an integrated<br />

<strong>de</strong>sign method of a <strong>de</strong>vice driver (<strong>Software</strong>) and a <strong>de</strong>vice (Hardware) <strong>for</strong> the<br />

efficient <strong>de</strong>velopment of <strong>de</strong>vice drivers <strong>for</strong> embed<strong>de</strong>d systems. This method<br />

uses system level <strong>de</strong>sign and co-<strong>de</strong>sign technologies to <strong>de</strong>scribe the <strong>de</strong>vice<br />

and the <strong>de</strong>vice driver as a unit in one language and generate the implementation<br />

<strong>de</strong>scriptions from the integrated <strong>de</strong>scription. This method is expected<br />

to improve the communication between <strong>de</strong>vice <strong>de</strong>signers and <strong>de</strong>vice driver<br />

<strong>de</strong>signers and to increase the efficiency of <strong>de</strong>vice driver <strong>de</strong>velopment. Also<br />

another merit that can be expected by applying co-<strong>de</strong>sign technology is that<br />

the bor<strong>de</strong>r between the <strong>de</strong>vice and the <strong>de</strong>vice driver can be flexibly changed.<br />

In this paper, we evaluate whether SpecC [2] is applicable to the<br />

integrated <strong>de</strong>scription in the proposed <strong>de</strong>sign method. Applicability means the<br />

ability of SpecC to <strong>de</strong>scribe the <strong>de</strong>vice and the <strong>de</strong>vice driver as a unit and<br />

automatically generate implementation <strong>de</strong>scriptions from the integrated<br />

<strong>de</strong>scription. SpecC is C language-based with additional concepts and statements<br />

<strong>for</strong> enabling hardware <strong>de</strong>scriptions. It is proposed as a language to cover<br />

the range from system level <strong>de</strong>scription to implementation <strong>de</strong>sign. However,<br />

the semantics of the ad<strong>de</strong>d concept and statements were mainly discussed from<br />

the viewpoint of hardware <strong>de</strong>scription and hardware generation and the method<br />

to generate the software using a real-time kernel was not consi<strong>de</strong>red. Since a<br />

real-time kernel is essential to construct software on a large scale system<br />

LSI, the <strong>de</strong>vice driver generated by the proposed <strong>de</strong>sign method is assumed<br />

to use a real-time kernel. Thus, evaluating whether SpecC is applicable to<br />

the proposed <strong>de</strong>sign method is necessary.<br />

To evaluate the applicability of SpecC, we use a serial I/O system (SIO<br />

system) that inclu<strong>de</strong>s the Point-to-Point Protocol (PPP) function used in<br />

sending a TCP/IP packet on a serial line. We choose the SIO system in our<br />

evaluation because it has a simple but typical architecture used in communication<br />

systems which is important application of system LSI.<br />

The rest of the paper is organized as follows: Section 2 presents the<br />

proposed integrated <strong>de</strong>sign method of a <strong>de</strong>vice driver and a <strong>de</strong>vice. Section<br />

3 <strong>de</strong>scribes evaluation points and methods to evaluate the applicability of<br />

SpecC to the integrated <strong>de</strong>sign method. Section 4 <strong>de</strong>scribes <strong>de</strong>scription of<br />

the SIO system in SpecC and SpecC <strong>de</strong>scription gui<strong>de</strong>lines. Section 5 discusses<br />

the conversion of SpecC <strong>de</strong>scription to implementation <strong>de</strong>scription. In<br />

Section 6, we shows the conversion when partition point is changed.

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

Saved successfully!

Ooh no, something went wrong!