Embedded mod 4-programing tools Flashcards
What is the purpose of creating a model for an embedded system?
It provides a time-saving and cost-effective approach to the development of dynamic control systems.
What does graphical modelling languages use to represent concepts?
Named symbols and lines that connect the symbols.
What are the main benefits of software analysis and design?
- Description of the system requirement
- Description of how the system works
- Shows system validation
What is a data flow graph?
A model of a program with no conditionals.
What is a basic block in a high-level programming language?
A code segment with only one entry and exit point.
What is a disadvantage of data flow graphs (DFG)?
It gives a unit of a system with no control conditions, leading to a single path for program flow.
What does a control/data flow graph (CDFG) model?
Both data operations and control operations.
What types of nodes are present in a basic CDFG?
- Decision nodes
- Data flow nodes
What is an advantage of using a CDFG?
Guides testing for each path starting from a decision node.
What defines a finite state machine (FSM)?
A machine that has a limited or finite number of possible states.
What are the components of a state machine?
- A set of input events
- A set of output events
- A set of states
- A function mapping states and input to output
- A function mapping states and inputs to states
What is a sequential program model characterized by?
Use of multiple function calls executed sequentially.
What is an example of a sequential program model function?
Run function get_user_input() to obtain input.
What is the main difference between sequential and concurrent execution?
Sequential leads to poor processor utilization, while concurrent allows effective CPU usage by switching task execution.
What is a drawback of the concurrent processing model?
It requires additional overheads in task scheduling, synchronization, and communication.
What is an object in object-oriented modeling?
An entity used for representing or modeling a particular piece of the system.
What is a class in object-oriented modeling?
An abstract description of a set of objects, considered a ‘blueprint’ of an object.
Fill in the blank: Private member variables are accessible only _______.
within the class
True or False: Protected member functions can be accessed by classes derived from a parent class.
True
What is one of the main advantages of the object-oriented model?
It brings re-usability, maintainability, and productivity in system design.