CH 2
CH 2
Challenges
• Safety
Minimize the frequency of mishaps
Require strict requirements and limitations in terms of quality,
testing, and engineering expertise
• Stability
• Long-term stable performance;
• Security
• Design Limitations
• Small form factor;
• Low energy;
• Real time Requirement;
• Cost
• Compatibility and Integrity
Bộ môn Kỹ Thuật Điện Tử - ĐHBK Chapter 2 2
Chapter 2 1
1/4/2023
SW development
HW design
•Application SW Interface design
•HW architecture
•Device Driver •User interface
•Physical design
•Operating System
SW developer HW designer
Integration and testing Reused
components
No Meet
requirement?
Yes
Delivery and maintenance
Bộ môn Kỹ Thuật Điện Tử - ĐHBK Chapter 2 4
Chapter 2 2
1/4/2023
Design Goals
Chapter 2 3
1/4/2023
Stepwise Refinement
5. Test Specification
Chapter 2 4
1/4/2023
Requirements
A user requirement is a statement that specifies WHAT a product
should do, but it does not define HOW it should do it
WHAT:
HOW:
Requirements
[While/Where ] [when/if then] shall
Ubiquitous: The touch screen shall have a response time of less
than 250 msec.
State-driven: WHILE an external speaker is connected, the internal
speaker shall mute.
Event-driven: WHEN a card is inserted, the card reader shall verify
credentials.
Optional feature: WHERE a convertible roof is installed, a park/roof
motion interlock function shall be provided.
Unwanted: IF an invalid value is entered THEN an error message
shall be displayed.
Complex: combinations of the above
10
Chapter 2 5
1/4/2023
Good Requirements
Precise and minimally constrained
Describes what system should do, not how it does it
Uses “shall” to require an action; “should” to state a goal
If possible has a numeric target instead of qualitative
term
• Has tolerance (e.g., 500 msec +/- 10%, “less than X”)
11
Good Requirements
Traceable & testable
12
Chapter 2 6
1/4/2023
Non-functional requirements
time required to compute output
cost
size, weight, etc.
power consumption
reliability
13
Non-functional Requirements
Performance
Major consideration for the usability of the system and
its ultimate cost
May be a combination of soft performance metrics and
hard deadlines
Cost
Manufacturing costs (e.g. components, assembly)
Nonrecurring engineering (NRE) costs (e.g. personnel,
designing the system)
Environment and Installation
The environment that the device will operate
How to install the device
Those requirements are important for designing the
PCB, the enclosure.
Bộ môn Kỹ Thuật Điện Tử - ĐHBK Chapter 2 14
14
Chapter 2 7
1/4/2023
Non-functional Requirements
Physical size and weight
Depends on the application
Power consumption
Important not only in battery-powered systems
Specified in terms of battery life or Wh
Certification
For international market, device need to have
certification to enter the market.
Several important certifications are UL, FCC, CE,
ROHS, IP
15
16
Chapter 2 8
1/4/2023
input/output? costs
17
Requirements Validation
• Validity checks: The functions proposed by stakeholders
should be aligned with what the system needs to perform.
• Consistency checks: Requirements in the document shouldn’t
conflict or different description of the same function
• Completeness checks: The document should include all the
requirements and constrains.
• Realism checks: Ensure the requirements can actually be
implemented using the knowledge of existing technology, the
budget, schedule, etc.
• Verifiability: Requirements should be written so that they can
be tested. This means you should be able to write a set of
tests that demonstrate that the system meets the specified
requirements.
18
Chapter 2 9
1/4/2023
Chess Clock
• Description:
The chess clock is used to keep track of the total time each player takes
for their own moves and ensure that neither player overly delays the
game. Chess clocks are set at the start of the game to count down from
the agreed time. Just one of the two clocks runs at a time, with players
starting their opponent's clock (and pausing their own) by pressing a
button after making each move
19
Chess Clock
• Functional Requirement:
Number Description Note
PR1.1 Shall be able to set the limit game time
PR1.2 If limit move time is enabled, shall be able to set the limit
move time
PR1.3 Shall display remaining time of 2 player, format is hh:mm:ss
PR1.8 Shall be able to configure and control using mobile app via
bluetooth
Bộ môn Kỹ Thuật Điện Tử - ĐHBK Chapter 2 20
20
Chapter 2 10
1/4/2023
Chess Clock
• Non-functional Requirement:
Number Description Note
PR2.8 Time accuracy is +-1 sec per hour
PR2.9 Shall have LCD display, no smaller than 2 inch
PR2.10 Buzzer sound pressure at distance of 1 m is 60dB
21
Chess Clock
• Non-functional Requirement:
Number Description Note
PR2.17 Shall last more than 1 week with battery 9V 300mAh
PR2.18 Size is smaller than 14x10x5 cm
PR2.19 BOM cost (only components) less than 20 USD/device
with manufacturing quantity of 1000
22
Chapter 2 11