Presentation for Marmara Üni.
Sebahattin BABUR, Ph.D.
06.03.2025
Model-Based System and Software Architecture Design
Agenda
01 Traditional & Model-Based Design
02 Model-Based System Engineering
03 System Composer
- Architecture Authoring
- Simulink Integration
- Requirements Allocation and Traceability
- Model Reuse and Packaging
04 Simulink Fault Analyzer
05 Demo
Traditional Development Process
Manual steps introduce errors and slow down the
RESEARCH REQUIREMENTS development process
SPECIFICATIONS Requirement Documents
• Difficult to analyze
• Difficult to manage as they change
Paper Specifications
• Easy to misinterpret
DESIGN • Difficult to integrate with design
Algorithm MCAD/
EDA Physical Prototypes
Design MCAE
• Incomplete and expensive
Electrical Embeddable Mechanical • Prevents rapid iteration
Components Algorithms Components • No system-level testing
Manual Coding
• Time consuming
• Introduces defects and variance
IMPLEMENTATION
• Difficult to reuse
C/C++
Traditional Testing
• Design and integration issues found late
Embedded
• Difficult to feed insights back into design
Software
process
• Traceability
1
INTEGRATION AND TEST
BİZİ TAKİP EDİN!
Model-Based Design
Requirements capture and artifact traceability throughout the process
Model-Based Design
System
Functionality and Operations and
Requirements Design Implementation Integration
Architecture Sustainment
and Test
Models are at the center of your development process 2
Create a digital thread
BİZİ TAKİP EDİN!
Model-Based Design
BİZİ TAKİP EDİN!
Model-Based System Engineering
Early in the Process Later in the Process
Concepts / Descriptions Models
NEED
Traceability
Synchronization
Analysis & Simulation
4
Model-Based Systems Engineering BİZİ TAKİP EDİN!
Model-Based Systems Engineering at MathWorks
Requirements
Toolbox System Composer MATLAB, Simulink,
Hand Code, FMU,
requirements
and use cases
c and more
Run
implementation
system analysis and test
and optimization system
MATLAB decomposition
+ Python PhysicalStereotype
cost 800 USD behavioral
weight 2 lbs modeling
power 150 W
extensible 5
connectivity and query-based
properties views
data flow
BİZİ TAKİP EDİN!
System Composer
Editing
Canvas
Model Property
Browser Inspector
Interface 6
Editor
System Composer BİZİ TAKİP EDİN!
System Composer
Basic architecture metamodel:
• 4 basic elements
• Component (Box)
• Port (Door)
• Interface (What goes through the door – Generalized Bus Object)
• Connector (Pipe)
• This is the architectural modeling language
Interface
Component Connector Port 7
BİZİ TAKİP EDİN!
Architecture Authoring
Composition Hierarchies:
• Sketch hierarchical system and
software decompositions of
components using a familiar
component, port, and connector
modeling approach.
How to Create Compositions in System Composer
BİZİ TAKİP EDİN!
Author and View Architecture Models
Architecture Authoring
Profile editor:
• New UI
• Toolstrip
• Browser
• Pane
• New additions
• Define datatype
• Define & edit min/max/units in property
view
• Stereotypes: Set constraints and
visualize relationships
• Perform copy/paste/undo/redo
• Keyboard commands (Ctrl + N / S / O)
BİZİ TAKİP EDİN!
Architecture Authoring
Stereotypes:
• Add custom properties to architectural elements using stereotypes.
• Group and extend interrelated stereotypes in a profile that can be applied to an architecture.
Define required values
Define project-specific
profiles with
Styling
stereotypes, properties,
and styling
Stereotypes
Properties
Select stereotypes and specify
design properties for
components, ports, connectors,
Specify
and interfaces properties 10
Extend Your Architecture with Domain-Specific Design Data
BİZİ TAKİP EDİN!
Define Profiles and Stereotypes
Architecture Authoring
Interface Management:
• Specify and refine interfaces on
ports to define the information
exchanged between components.
• Verify interface compatibility
between ports by checking units,
types, and other characteristics.
• Manage interfaces in dictionaries
to facilitate reuse across multiple
models of a project.
11
BİZİ TAKİP EDİN!
Manage Interfaces
Architecture Authoring
Architecture Import:
• Reuse your existing design
artifacts and Interface
Control Document (ICD)
information by connecting
external repositories and files
to MATLAB and using an API
to import the information into
System Composer. Connect external repositories and files to MATLAB and
use an API to import the information.
12
Composition Basics
BİZİ TAKİP EDİN!
Import and Export Architectures
Architecture Authoring
System Composer supports multiple languages
SysML v1
System Composer
SysML v2
AADL DDS
protobuf
and more!
13
System Composer BİZİ TAKİP EDİN!
Architecture Authoring
Activity Diagrams:
• Author activity diagrams to
describe a system or its
components with tokens,
flow lines, action & control
nodes, pins
• Use a MATLAB function or
a nested activity diagram to
describe the behavior of an
action node
• Validate (via simulation)
system behaviors defined as
a controlled flow of actions
14
BİZİ TAKİP EDİN!
Architecture Authoring
Sequence Diagrams:
• Use programmatic interfaces to build
sequence diagrams
• Use the addInteraction function in the
systemcomposer.arch.model object
• Create and edit the sequence diagram elements
represented as objects in the
systemcomposer.interaction.* namespace
15
BİZİ TAKİP EDİN!
Simulink Integration
• Create, link, and manage Simulink behavioural components and interfaces as part of your top-down
architecture design.
Descriptive models in System Composer
How to Create and Link Simulink Components
Design models in Simulink
16
Behavioral models in
System Composer Views BİZİ TAKİP EDİN!
Simulink Integration
Creating Behavioral Specifications:
• Capture and simulate desired system
behavior in Simulink and Stateflow to
refine and validate your requirements
and architecture in System Composer.
• System Design and Simulation Solutions Use Stateflow with MATLAB App Designer to create
• Simulink executable prototypes that are used to refine and validate
• Stateflow requirements.
17
BİZİ TAKİP EDİN!
Simulink Integration
Create AUTOSAR architecture model from
existing component.
• Convert an architecture component or
software component to an AUTOSAR
architecture model
• Classic Platform
• Data interfaces supported
• Adaptive Platform
• Data and service interfaces supported
18
BİZİ TAKİP EDİN!
All behavior languages operate harmoniously within the overall system architecture – interfaces are kept
consistent
Simulink
Simscape
State chart
defined by
defined by defined by
Sequence Diagram
defined by constrained by
Activity Diagram
defined by
19
BİZİ TAKİP EDİN!
Requirements Allocation and Analysis
20
Documentation: Track Requirement Links with a Traceability Matrix BİZİ TAKİP EDİN!
Work with Requirements in Simulink Using Requirements Perspective
Model Reuse and Packaging
Architecture Projects:
• For large architectures, use
projects to facilitate component
reuse
• Projects support large-scale
componentization by enabling
you to reference other projects
from a parent project.
• Simulink Project References Projects can be referenced by other projects supporting
• Project Setup large scale componentization.
• MATLAB and Simulink Projects 21
BİZİ TAKİP EDİN!
New and enhanced ways
System Composer: generate standard report
to architect your model
Create printable reports for System
Composer Architecture Models, Software
Architecture Models, and AUTOSAR Models
Get information about all the elements
(components, ports, connectors, interfaces
etc.) in the model
Create custom reports using the APIs built
for different model elements
22
BİZİ TAKİP EDİN!
Why Verify Robustness?
23
BİZİ TAKİP EDİN!
Simulink Fault Analyzer Supports “End to End” Safety Analysis
End-to-End Traceability
and Reports
System System
Requirements Test
Hazard Identification
System System Safety
Safety
Architecture Integration & Engineer
Engineer Testing
System-level Fault
Injection, FMEA
Component
Component Embedded Testing
Requirements
Systems
Engineer Component Component
Architecture Integration & Test
Systems
Engineer
Component Component x
Unit Design &
Unit Test
Implementation
Systematic Fault Injection, FMEA
Fault 24
Component level: SW + HW
Control Systems Engineer
BİZİ TAKİP EDİN!
Demo: Simulink Fault Analyzer
25
BİZİ TAKİP EDİN!
Demo: Simulate component design including logical & physical
part
26
BİZİ TAKİP EDİN!
Demo: System Architecture Tradeoffs
27
BİZİ TAKİP EDİN!
Customers achieve significant ROI with Model-Based Design
Just some of them:
▪ Airbus: Software testing time cut by two-thirds
▪ BAE: 1.5–2x more efficient than hand-coding
▪ Embraer: Development time cut by 6 months or more
▪ Honeywell: 5x improvement in productivity
▪ KARI: Development time halved; Design iterations minimized
▪ Lockheed Martin: Development efficiency doubled; Design updates completed in a day
40-50% savings
often realized 28
Read about them and more at User Stories
BİZİ TAKİP EDİN!
Useful Links
System Composer Onramp
• Documentation
• Examples
• Functions
• Videos and Webinars
• Product Requirements
Model-Based Systems Engineering for Space-Based Applications Simulate Mobile Robot with System Composer Workflow 29
BİZİ TAKİP EDİN!
Q&A
BİZİ TAKİP EDİN!
TEŞEKKÜRLER