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.

Mo<strong>de</strong>ling and Integration of Peripheral Devices 73<br />

instance and environment; and outputs the <strong>de</strong>vice driver (C program) <strong>for</strong> a<br />

particular <strong>de</strong>vice in a particular environment.<br />

The <strong>de</strong>vice specification provi<strong>de</strong>s all the in<strong>for</strong>mation about the <strong>de</strong>vice<br />

required by the driver core function synthesis process (Core Gen). Core<br />

functions are implemented in the virtual environment. The mapper maps core<br />

functions in the virtual environment to the target environment. This mapping<br />

process does (1) plat<strong>for</strong>m mapping‚ by binding virtual OS service functions<br />

to the targeted OS‚ and virtual hardware functions to the targeted hardware;<br />

(2) registry mapping by translating core functions to the OS specific registry<br />

functions. It does this using the <strong>de</strong>veloper specified driver configuration. The<br />

driver configuration <strong>de</strong>fines the target plat<strong>for</strong>m and necessary parameters. It<br />

inclu<strong>de</strong>s the OS name‚ processor name‚ bus name‚ <strong>de</strong>vice instance parameters<br />

(such as interrupt vector number‚ base address)‚ driver type (such as char<br />

<strong>de</strong>vice‚ network <strong>de</strong>vice)‚ driver type specific parameters (such as maximum<br />

transfer unit <strong>for</strong> a network <strong>de</strong>vice) etc. These configurations are specified by<br />

keywords. Figure 6-3 shows the sketch of an example. This direct specification<br />

is sufficient <strong>for</strong> the mapper to target the core functions to a specific<br />

plat<strong>for</strong>m. While this requires the specification writer to have specific knowl-

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

Saved successfully!

Ooh no, something went wrong!