EverCheck EverTest EverView Workflow Training Guide Pricing Download Free Trial ✉ support@everbits.com

Software FMEA:
Find the Requirements Nobody Wrote

Every sig­nal in the soft­ware can fail. A soft­ware FMEA asks what hap­pens then, sig­nal by sig­nal. Every an­swer the team can­not give is a re­quire­ment no­body wrote. Eight steps, about three days, no code read­ing.

Lis­ten · read by the au­thor0:00 / 11:00

11 min lis­ten · 7 min read · Read in­stead ↓

Software FMEA annotations FM-01 to FM-04 on the signals of a Simulink architecture, shown in EverView in a web browser

EVERVIEW · FAILURE MODES PINNED TO THEIR SIGNALS

MATLAB & Simulink Partner
There is a sec­ond way

This ar­ti­cle runs in­side out: sig­nal by sig­nal, from the parts up. The fol­low-up starts at the func­tion and works top down, along the seven AIAG-VDA steps. That is the way to find the re­quire­ments no­body wrote. Read the out­side-in ver­sion →

A soft­ware FMEA asks one ques­tion for every sig­nal in the soft­ware: what hap­pens when this sig­nal fails? The an­swers you can­not give are the re­quire­ments no­body wrote. This ar­ti­cle shows how to find them in about three days, with­out read­ing code.

Pic­ture an FMEA ses­sion. The mod­er­a­tor is ex­pe­ri­enced. The safety man­ager knows every haz­ard. The hard­ware en­gi­neer has an­a­lyzed cir­cuits for twenty years.

Then the soft­ware comes up.

Some­one shares a screen. A screen­shot of the model ap­pears. It shows one level, and it is one week old. Some­body asks where the ve­hi­cle speed comes from. No­body knows. The one en­gi­neer who can open the model is in an­other meet­ing. The ques­tion goes into the ac­tion list, and the team moves on.

I have seen this many times, as a trainer and as an en­gi­neer. The peo­ple in the room are not the prob­lem. They know how to run an FMEA. The prob­lem is the soft­ware. It does not ar­rive in a form they can work with.

This ar­ti­cle is about both: what a soft­ware FMEA is, and how to bring the soft­ware into the room.

An FMEA session: a one-week-old screenshot of one model level on the screen, the question where the vehicle speed comes from, the model owner in another meeting, and the open item on the action list

Fig­ure 1 · The usual FMEA ses­sion: a screen­shot, an open ques­tion, an item on the ac­tion list

What an FMEA is #

FMEA stands for Fail­ure Mode and Ef­fects Anal­y­sis. It is a table. Every row holds one el­e­ment, one way it can fail, and the ef­fect of that fail­ure. In the last col­umns, the team writes down how to de­tect the fail­ure and what the sys­tem does about it.

Hard­ware en­gi­neers have used FMEA for decades. They take a com­po­nent, a re­sis­tor or a con­nec­tor, and ask: what if it is open? What if it is shorted? What if its value drifts? Then they fol­low the ef­fect through the cir­cuit to the ve­hi­cle.

A soft­ware FMEA uses the same table and the same logic. Only the el­e­ments and the fail­ure modes are dif­fer­ent.

Software FMEA table for the sf_car demo model with the columns FM-ID, element, interface, failure mode, effect, cause, safety measure, verification and model location

Fig­ure 2 · An FMEA is a table: one row per el­e­ment and fail­ure mode. Il­lus­tra­tive ex­am­ple on the MathWorks demo model sf_car

One question per signal #

A soft­ware FMEA works on the soft­ware ar­chi­tec­ture, not on the code. The ar­chi­tec­ture shows com­po­nents and the sig­nals be­tween them. In a model, a block is a com­po­nent and a line is a sig­nal.

For every sig­nal, you ask: what hap­pens if this sig­nal fails?

Soft­ware does not wear out. It fails in its own ways, and seven of them cover al­most every case. A sig­nal can be miss­ing. It can have a wrong value. It can be out of range. It can be stuck at an old value. It can ar­rive too late. It can ar­rive in the wrong order. Or it can be cor­rupted on the way.

Seven fail­ure modes, for every sig­nal that mat­ters. That is the whole method. The dif­fi­cult part is to apply it con­sis­tently.

One signal, vehicleSpeed, from sender to receiver, and the seven ways it can fail: missing, wrong value, out of range, stuck, too late, wrong order, corrupted

Fig­ure 3 · One sig­nal, seven ways to fail

The requirement nobody wrote #

Re­quire­ments de­scribe the nor­mal case. They say what the sys­tem does when all in­puts are cor­rect. The gear changes at the right speed. The en­gine fol­lows the pedal.

The FMEA asks about the ab­nor­mal case. What does the shift logic do when the ve­hi­cle speed is miss­ing? When it is stuck? When it ar­rives late? Very often, the hon­est an­swer is: we don’t know. No­body wrote it down.

This an­swer is the most valu­able re­sult of the whole anal­y­sis. Every “we don’t know” is a miss­ing re­quire­ment.

Test­ing can­not find it. A re­quire­ments-based test checks what some­body wrote. It can­not check a re­ac­tion that was never spec­i­fied. Unit tests prove that the code meets the spec­i­fi­ca­tion. The FMEA proves that the spec­i­fi­ca­tion is com­plete.

This be­comes more im­por­tant every year. Code is gen­er­ated from mod­els, and more and more of it is writ­ten by cod­ing agents, di­rectly from the re­quire­ments. What the re­quire­ments do not say, no­body builds. Not the en­gi­neer, not the code gen­er­a­tor, not the agent.

So a soft­ware FMEA is not only a safety tool. It is a re­quire­ments tool. A heat pump, a charg­ing sta­tion, a cof­fee ma­chine: they all have sig­nals that can go miss­ing. The same table pro­tects avail­abil­ity, war­ranty cost, and the trust of the user.

Signal vehicle speed, failure mode stuck, effect the gear does not change. Is a reaction defined? If not, the answer is we don't know, and that becomes a new requirement, which is then tested

Fig­ure 4 · Every “we don’t know” be­comes a new re­quire­ment, and every re­quire­ment gets a test

You already know this #

If you come from hard­ware, you are bet­ter pre­pared than you think.

A com­po­nent in your schematic is a sub­sys­tem in the model. A pin or a net is a sig­nal. Open, short and drift be­come miss­ing, wrong value and stuck. And your di­ag­nos­tic be­comes a check at the re­ceiver: the com­po­nent that uses a sig­nal checks it be­fore it trusts it.

The checks are the same fam­ily you know. A range check. A plau­si­bil­ity check against a sec­ond sig­nal. A check­sum. An alive counter that shows the sender is still run­ning. A time­out. If you know the di­ag­nos­tic ta­bles in your safety stan­dard, you have seen all of them.

One thing is new. In hard­ware, two com­po­nents in­ter­act through a wire. In soft­ware, two com­po­nents can share mem­ory, a task, or a data path. If one of them mis­be­haves, the other can fail too, al­though no sig­nal con­nects them. This is called in­ter­fer­ence, and the method has a sep­a­rate step for it.

Hardware FMEA with two chips and a resistor next to software FMEA with two blocks and a signal; below, interference: A and B share memory and a task, and B fails with A although no signal connects them

Fig­ure 5 · The same idea one level up, and the one thing that is new: in­ter­fer­ence with­out a wire

For the pro­fes­sion­als

ISO 26262 never uses the words “soft­ware FMEA”. Part 6, clause 7.4.10 re­quires a safety-ori­ented anal­y­sis of the soft­ware ar­chi­tec­tural de­sign, ap­plied as de­scribed in Part 9; Part 6, Annex E shows how. In­ter­fer­ence is cov­ered by the de­pen­dent fail­ure anal­y­sis in Part 9 and by free­dom from in­ter­fer­ence in Part 6, Annex D. The checks at the re­ceiver are the com­mu­ni­ca­tion mech­a­nisms of Part 5, Annex D; for soft­ware, no­body asks for a di­ag­nos­tic cov­er­age per­cent­age. IEC 61508-3 and IEC 62304 ask for the same kind of anal­y­sis in their own words.

Eight steps, three days #

Here is the com­plete work­flow. For a typ­i­cal ar­chi­tec­ture it takes two to three days. Most of that time goes into step four.

One. Freeze the ar­chi­tec­ture. Take one level of the model as a fixed snap­shot. Blocks are com­po­nents, lines are sig­nals. Do not open the units.

Two. Se­lect the sig­nals. Mark only the sig­nals that can vi­o­late a safety goal or a top-level re­quire­ment.

Three. Fix the fault model. Use the same seven fail­ure modes for every sig­nal and for every per­son in the room.

Four. Fill the table. One row per sig­nal and fail­ure mode, in your own FMEA tool. Fol­low each ef­fect up to the ve­hi­cle.

Five. De­cide the re­ac­tion at the re­ceiver. Range, plau­si­bil­ity, check­sum, alive counter, time­out. Each re­ac­tion be­comes a re­quire­ment.

Six. Look for in­ter­fer­ence. Shared mem­ory, shared tasks, shared data paths.

Seven. Feed it back. The new re­quire­ments go into the spec­i­fi­ca­tion and into the model.

Eight. Try to break it. More on that at the end.

One thing is not on the list: a risk pri­or­ity num­ber. Soft­ware faults are sys­tem­atic, not ran­dom. A fail­ure rate for the oc­cur­rence is hard to jus­tify. Most teams keep the anal­y­sis qual­i­ta­tive. Use what your method pre­scribes. The eight steps stay the same.

Fig­ure 6 · The eight steps as slides. Swipe, or use the ar­rows

Two files instead of a meeting #

Back to the meet­ing at the be­gin­ning. The method was not the prob­lem. The input was.

The FMEA team needs the ar­chi­tec­ture it­self, not a pic­ture of it. Some­thing they can open on their own lap­top, click into, search, and keep. No mod­el­ing tool, no li­cense, no in­stal­la­tion, and no C code. Gen­er­ated code hides the sig­nals under thou­sands of lines. Safety, sys­tem and hard­ware en­gi­neers should not have to read it.

That is why we built EverView. The soft­ware team ex­ports the ar­chi­tec­ture once, as a sin­gle HTML file. The FMEA team opens it in any browser and moves through it like the model: dou­ble-click into a com­po­nent, search for a sig­nal, fol­low it from the sender to the re­ceiver.

Dur­ing the ses­sion, every fail­ure mode is pinned to its sig­nal, with the same ID as the row in the FMEA table. These com­ments go into a sec­ond, small file. So the anal­y­sis leaves two files be­hind. One holds the exact ar­chi­tec­ture the team an­a­lyzed. The other holds the re­view: who said what, about which sig­nal, and when. Both are text files, and both go into ver­sion con­trol. Six months later, when an as­ses­sor asks which ver­sion you an­a­lyzed, you open the file and show it.

Your FMEA tool does not change. Your tem­plate does not change. Your method does not change. Only the input changes.

EverView of the sf_car model in a web browser with four FMEA annotations on the signals: FM-01 gear stuck, FM-02 vehicle speed too high, FM-03 throttle missing, FM-04 engine speed too late, with the reviewer role and date of each comment

Fig­ure 7 · Four fail­ure modes pinned to their sig­nals, with the same IDs as the FMEA rows in Fig­ure 2

For the pro­fes­sion­als

The EverView ex­port is a frozen snap­shot of the model, so the FMEA al­ways refers to one de­fined ver­sion. The com­ment file is JSON, small enough to diff and merge; sev­eral re­view­ers can work in par­al­lel and merge their files af­ter­wards. EverView is a stand­alone app for 500 € per user and year — see EverView or re­quest a free trial at sup­port@ever­bits.com.

Try to break it #

The last step changes the ques­tion.

After the FMEA, you have a list of re­ac­tions. If the ve­hi­cle speed is stuck, the shift logic does this. If the throt­tle sig­nal is miss­ing, the en­gine does that. Each re­ac­tion is a claim. In step eight, you test your own claims.

You in­ject each fault on pur­pose. You freeze the gear sig­nal. You delay the en­gine speed by a few sam­ples. You cut the throt­tle. Then you check whether the ve­hi­cle still does what it must.

If it does, you have not proven that the sys­tem is safe. No­body can prove that. You have tried to break it and failed. That is the strong­est state­ment an en­gi­neer can hon­estly make.

Keep these fault in­jec­tions. They be­come in­te­gra­tion tests, and they run again with every change. The FMEA is no longer a doc­u­ment in a folder. It be­comes part of the build.

Fault injection into the gear signal, through shift logic and vehicle, to the question whether the goal still holds; if yes, the system failed to be falsified, and the injections are kept as integration tests

Fig­ure 8 · Try to break it. If the goal holds, keep the fault in­jec­tions as in­te­gra­tion tests

Which of the eight steps does your team skip today? An­a­lyze · React · Break it

Frequently asked questions

Is a software FMEA required by ISO 26262?

ISO 26262-6 re­quires a safety-ori­ented anal­y­sis of the soft­ware ar­chi­tec­tural de­sign. It does not pre­scribe the name FMEA, but an FMEA of the in­ter­faces is one of the most com­mon ways to meet this re­quire­ment.

Do I have to change my FMEA tool or method?

No. The FMEA stays in the tool and tem­plate you al­ready use. EverView only adds the soft­ware ar­chi­tec­ture as one file that opens in any browser.

Is a software FMEA only useful for safety-critical systems?

No. Every sys­tem has sig­nals that can go miss­ing or ar­rive late. The same anal­y­sis pro­tects avail­abil­ity, war­ranty cost and user trust, be­cause it finds the re­ac­tions the re­quire­ments never de­scribed.

Does the FMEA team need a license or programming skills?

No. The EverView file opens in any web browser, with no in­stal­la­tion and no li­cense. It shows the ar­chi­tec­ture with sig­nals as in­ter­faces, and no C or C++ code.

Which step does your team skip today?

Tell me on LinkedIn — or open the sf_car ex­am­ple in your browser, the way an FMEA team sees it.

Discuss on LinkedIn Open the live example

Writ­ten by Ev­geni Ver­bit­ski, func­tional safety trainer and founder of EverBits · sup­port@ever­bits.com

0:00 / 11:00