Docsity

Embedded Software Co-Design Examination, Exams of Embedded Systems

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIƚID TEICNEOLAƍOCHTA CHORCAƍ
Semester 1 Examinations 2009/10
Module Title: Embedded Software Co-Design
Module Code: ELTR9009
School: Electrical and Electronic Engineering
Programme Title: Master of Engineering in Embedded Systems Engineering
Programme Code: EMBED_9_Y5
External Examiner(s): Mr. P. French, Dr. P. Quinlan, Mr. D. Heffernan
Internal Examiner(s): Mr. D. O Donovan
Instructions: Answer ANY 2 questions.
Duration: 1 hour 30 minutes
Sitting: Winter 2009
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have
received the correct examination paper.
If in doubt please contact an Invigilator.
pf3
pf4
pf5

Partial preview of the text

Download Embedded Software Co-Design Examination and more Exams Embedded Systems in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIƚID TEICNEOLAƍOCHTA CHORCAƍ

Semester 1 Examinations 2009/

Module Title: Embedded Software Co-Design

Module Code: ELTR

School: Electrical and Electronic Engineering

Programme Title: Master of Engineering in Embedded Systems Engineering

Programme Code: EMBED_9_Y

External Examiner(s): Mr. P. French, Dr. P. Quinlan, Mr. D. Heffernan

Internal Examiner(s): Mr. D. O Donovan

Instructions: Answer ANY 2 questions.

Duration: 1 hour 30 minutes

Sitting: Winter 2009

Requirements for this examination:

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have

received the correct examination paper.

If in doubt please contact an Invigilator.

Q1. (a) Figure 1.1 illustrates the jobs associated with a task. Assume the use of

shared memory and the schedulers keep one common priority queue of ready jobs. Demonstrate the application of priority-driven scheduling using two

processors P 1 and P 2 for the task using Pre-emptive multitasking. [10 %]

Figure 1. (b) Prove that any feasible schedule may be transformed into an earliest

deadline first (EDF) schedule. [6 %]

(c) The following function prototype may be used as a basis for supplying information to an implementation of the Quicksort algorithm:

void qsort(void * field, size_t nElements, size_t sizeOfAnElement, int(_USERENTRY *cmpFunc)(const void , const void));

In connection with the first and last parameters of the function prototype, in particular: i. Discuss the general principles behind the use of these parameter types. [6 %] ii. Describe the benefits associated with each approach. [4 %] iii. Give examples of other programming situations where these approaches may be employed. [6 %]

(d) Describe the factors that need to be taken into account when estimating the interrupt response time. [6 %]

Figure 2. (c) Compare each of the following concepts used for inter-task communications

in a typical RTOS: i. Semaphores

ii. Event flag group iii. Queues [9 %]

(d) Consider a system of four independent pre-emptable periodic tasks:

T 1 = (3, 1), T 2 = (6, 1), T 3 = (9, 2), and T 4 = (18, 4).

All jobs have a phase equal to zero, and a relative deadline equal to their

period. Demonstrate that the schedule is feasible. [12 %]

(e) Construct a cyclic schedule for the tasks in Q2 (d), demonstrating that the system meets all deadlines. [6 %]

(f) A revised system specification requires that a periodic calibration task is

added to the set of tasks and needs to execute every 10 time units with an execution time of 1 unit. Is the schedule still feasible? [4 %]

Q3. (a) Describe the time demand analysis technique used to test the feasibility of a

fixed-priority schedule. [10 %]

(b) State two assumptions associated with the test in 3.(a) and explain how they

may be accommodated in practice. [4 %]

(c) Illustrate the operation of the schedule feasibility test in 3.(a) using: T 1 = (4, 2), T 2 = (6, 2) and T 3 = (12, 3). [6 %]

(d) i. Briefly outline the steps that constitute a hardware/software co-design

philosophy. [6 %]

ii. Subsequently, discuss the issues involved in the hardware/software partitioning of a potential design. Your discussion should include:

i. The goals of the partitioning process. [3 %] ii. Typical tools involved for each partition. [6 %] iii. Granularity approaches. [8 %] iv. Various hardware options available. [7 %]