Ch05 Functional Decomposition
Ch05 Functional Decomposition
need:
An abstraction of the system
An unambiguous communication medium
A way to describe the subsystems
◦ Inputs
◦ Outputs
◦ Behavior
Functional Decomposition
◦ Function – transformation from inputs to
outputs
◦ Decomposition – reduce to constituent parts
2
By the end of this chapter, you should:
Understand the differences between bottom-
3
Given constituent parts
Develop a working system
◦ Build modules to accomplish specific tasks
◦ Integrate modules together into working system
For example
◦ Given a supply AND, OR and NOT gates.
◦ Build a computer
Pros
◦ Leads to efficient subsystem
Cons
◦ Complexity is difficult to manage
◦ Little thought to designing reusable modules
◦ Redesign cycles
4
Given the specification of a system
Develop a working system
5
Recursively divide and conquer
– Split a module into several submodules
– Define the input, output, and behavior
– Stop when you reach realizable components
No
N=N+1
6
The design process is iterative
Upfront time saves redesign time later
Submodules should have similar complexity
Precise input, output, and behavior
specifications
Look for innovation
Don’t decompose ad infinitium
Use suitable abstraction to describe
submodules
7
Look at how it has been done before
Use existing technology
Keep it simple
Communicate results
8
The system must
Accept an audio input signal source with a
speaker.
Be powered by a standard 120V 60Hz AC
outlet.
9
Module Audio Power Amplifier
Inputs Audio input signal: 0.5V peak.
Power: 120 volts AC rms, 60Hz.
User volume control: variable control.
Outputs Audio output signal: ?V peak value.
Functionality Amplify the input signal to produce a 50W maximum output
signal. The amplification should have variable user
control. The output volume should be variable between
no volume and a maximum volume level.
10
Audio Amplifier Design
voltage
buffered
amplified
audio input input audio output
Buffer Amplifier High Gain Amplifier signal Power Output Stage
signal signal
DC voltages
Power Supply
11
Module Buffer Amplifier
Inputs - Audio input signal: 0.5V peak.
- Power: 25V DC.
Outputs - Audio signal: 0.5V peak.
Functionality Buffer the input signal and provide unity voltage
gain. It should have an input resistance >1M
and an output resistance <100.
12
Module High Gain Amplifier
Inputs - Audio input signal: 0.5V peak.
- User volume control: variable control.
- Power: 25V DC
13
Electronics Design
Digital Design
Software Design
See the book for more in-depth examples
14
The system must
Measure temperature between 0 and 200C.
Have an accuracy of 0.4% of full scale.
Display the temperature digitally, including one
digit beyond the decimal point.
Be powered by a standard 120V 60Hz AC outlet.
Use an RTD (thermal resistive device) that has an
accuracy of 0.55C over the range. The resistance
of the RTD varies linearly with temperature from
100Ω at 0C to 178Ω at 200C.
15
Ambient
Temperature Digital
Digital Thermometer Temperature
Power, Display
120 VAC
16
Module Digital Thermometer
17
BCD0
b0
Ambient b1 BCD1
Temperature VT Analog to Digital . Binary Coded
Temperature 7-Segment LED
Conversion Unit Converter . Decimal (BCD) BCD2
Driver
. Conversion Unit
bN-1 BCD3
+/- x V DC
Power,
120 VAC Power Supply
18
Module Temperature Conversion Unit
19
A/D Converter
Module
20
How would you determine the
unknown details in the previous 2
slides?
21
What is coupling?
22
What is cohesion?
23
Design Level 0
◦ Present a single module block diagram with inputs and outputs
identified.
◦ Present the functional requirements: inputs, outputs, and
functionality.
Design Level 1
◦ Present the Level 1 diagram (system architecture) with all modules
and interconnections shown.
◦ Describe the theory of operation. This should explain how the
modules work together to achieve the functional objectives.
◦ Present the functional requirements for each module at this level.
Design Level N (for N>1)
◦ Repeat the process from design Level 1 as necessary.
Design Alternatives
◦ Describe the different alternatives that were considered, the
tradeoffs, and the rationale for the choices made. This should be
based upon concept evaluation methods in Chapter 4.
24
Design approach: top-down and bottom-up
Functional Decomposition
◦ Iterative decomposition
◦ Input, output, and function
◦ Applicable to many problem domains
Coupling – interconnectedness of modules
Cohesion – focus of modules
25