Author Topic: Would FPGAs have saved Volkswagen?  (Read 13463 times)

0 Members and 1 Guest are viewing this topic.

Offline ez24Topic starter

  • Super Contributor
  • ***
  • Posts: 3082
  • Country: us
  • L.D.A.
Would FPGAs have saved Volkswagen?
« on: September 21, 2015, 07:33:07 pm »
I do not really understand FPGAs.  I watch Dave's videos and read some posts related to FPGAs to try and understand them.  Right now they are black magic to me.

In one post someone says "use a FPGA because it requires less software".   Since it was software that VW used to defeat regulations (according to news reports), I was wondering if FPGAs can be more successful to defeat detection of unwanted functions. 

It seems we have a "black magic' chip (some that have 1,000s of pins and cost $39,000) in the electronics field can be used for nefarious uses because they are so complex.  Am I paranoid or not?

In other words if VW had used a FPGA would they have been caught (assume using a chip that costs less than the car)?  I assume the NSA can understand this chip (or there would be no chip) but I am thinking that even at state levels this chip cannot be understood.

Any thoughts?


YouTube and Website Electronic Resources ------>  https://www.eevblog.com/forum/other-blog-specific/a/msg1341166/#msg1341166
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5127
  • Country: nl
Re: Would FPGAs have saved Volkswagen?
« Reply #1 on: September 21, 2015, 07:35:37 pm »
They were not caught because someone reversed the ECU software, they were caught because real use data was so much different from the measurement data.
Nothing you can do on the hard/software side can prevent that.
Keyboard error: Press F1 to continue.
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Would FPGAs have saved Volkswagen?
« Reply #2 on: September 21, 2015, 08:12:21 pm »
Nothing you can do on the hard/software side can prevent that.

Except fixing the "bug" of course ;)
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 614
Re: Would FPGAs have saved Volkswagen?
« Reply #3 on: September 21, 2015, 09:16:40 pm »
I think (I suspect) that law requires proving that VW is guilty of using a "defeat device" purposely. It is not the VW responsibility to prove innocence and as the source code is a closed source, it is close to impossible to prove this was not just a software bug or an act of sabotage.

Code: [Select]
if(here()-nearest_EPA_testing_facility()>10km)
 do_not_bother_with_emission_rules();

Even removing epoxy, reading out flash content and disassembly is not a proof of their unlawful action but merely the proof of manufacturing flaw (IMHO).
 

Offline MT

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: aq
Re: Would FPGAs have saved Volkswagen?
« Reply #4 on: September 21, 2015, 09:25:22 pm »
Cars today are so complicated it cost a fortune to fix anything because you need a specialcomputer to tell if a bearing is on its way
or not! In the god ol days e.g 1877 we could just listen to the noise a bearing made during turns and decide if it was time to change!  :scared: 
« Last Edit: September 21, 2015, 09:30:52 pm by MT »
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Would FPGAs have saved Volkswagen?
« Reply #5 on: September 21, 2015, 10:35:36 pm »
Everyone does some form of emmisions shenanigans! Someone even mentioned Honda CBR bikes on hackaday I think. Manufacturers will claim its for product longetivity - oh, we do this thing here that recirculates exhaust gases while EPA test in pro^^^^^^^^engine is cold to make it last longer!!1
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Would FPGAs have saved Volkswagen?
« Reply #6 on: September 21, 2015, 11:08:47 pm »
Even removing epoxy, reading out flash content and disassembly is not a proof of their unlawful action but merely the proof of manufacturing flaw

Eh, Eh, nothing else we can say
sadly the Truth.
 

Offline vodka

  • Frequent Contributor
  • **
  • Posts: 518
  • Country: es
Re: Would FPGAs have saved Volkswagen?
« Reply #7 on: September 22, 2015, 04:54:48 am »
Always a Judge may sign an order for forcing to corporation to show your firmware or allow to make  reverse engineering
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19506
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Would FPGAs have saved Volkswagen?
« Reply #8 on: September 22, 2015, 07:51:49 am »
The problem appears to be organisational, not technical. Thus a technical "solution" would not have changed anything.

In respect of this topic, there is no conceptual difference whatsoever in using C to program bits in memory that control a processor versus using VHDL to program bits in memory that control gates.

So no, FPGAs would not have helped.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9504
  • Country: gb
Re: Would FPGAs have saved Volkswagen?
« Reply #9 on: September 22, 2015, 09:31:01 am »
Quote
I think (I suspect) that law requires proving that VW is guilty of using a "defeat device" purposely. It is not the VW responsibility to prove innocence and as the source code is a closed source, it is close to impossible to prove this was not just a software bug or an act of sabotage.

According to the BBC news this morning VW's US boss appears to have admitted the company was dishonest with the regulators, so reverse engineering is probably a moot point.  :palm:

http://www.bbc.co.uk/news/business-34322016
Best Regards, Chris
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 614
Re: Would FPGAs have saved Volkswagen?
« Reply #10 on: September 22, 2015, 11:31:35 am »
I can understand that the closed software can or even should include some sort of „defeating device” as the trick improves the sales (their product takes advantage over competing companies). This is not a new subject and as EPA is so stupid they believe closed software has morality then that is their problem, not VW's.

The „defeating device” is unlawful only when:
 a) revealed and
 b) proved/admitted it was installed purposely.
And somehow VW managed screw up both cases  :palm:

 a) The EPA standards impose strict measuring methodology, it is only a matter of sophistication of the software that we would learn about Dieselgate close never and not in 2015. Was it that hard to write a decent „defeating device”, Mr. Volkswagen?
 b) „this kind of behavior (..) is completely inconsistent with our core values.” ??
When people are caught with pants down, they scapegoat others to avoid responsibility, Mr. Horn.. Was it that difficult to blame a buggy software, phase of the moon or Muslims? DOH..

I do not understand the VW action as it seems irrational. The risk they took was unproportional to the advantage they gained. They are not stupid, aren't they?

So what is the whole point of a confession?
The only rational idea that comes to my mind is that VW wants to avoid the EPA order of revealing the code and binary (+ compilation environment settings) at all costs. If it contained some other nasty tricks or unlicensed code, that would have grounded all their fleet, not only TDI 2.0
 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 797
  • Country: lt
Re: Would FPGAs have saved Volkswagen?
« Reply #11 on: September 22, 2015, 11:52:11 am »
It might be true, that some underwater agreements are going now... Maybe CEO was pushed to admit this software "feature", but save the other hidden things. On the other hand, from the law point of perspective it would be completely obvious to issue a subpoena for VW to reveal everything and do independent expert analysis on the code to check for other hidden things.

Let the heads roll down...
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Would FPGAs have saved Volkswagen?
« Reply #12 on: September 22, 2015, 11:58:05 am »
In respect of this topic, there is no conceptual difference whatsoever in using C to program bits in memory that control a processor versus using VHDL to program bits in memory that control gates.

but you can reverse the ROM content into machine code (e.g. through IDA, which is a superlative disassembler), while you can't reverse a bitstream
VHDL or Verilog is beyond the RTL, reversing a bitstream you get the fpga interconnect map, which is also chip specific (vendor::family::product), no public information available, every chip has its own map

CPU: the ISA is public, you can read opcodes from the datasheet
FPGA: just the synthetizer knows the map, the datasheet doesn't
 

Online BradC

  • Super Contributor
  • ***
  • Posts: 2106
  • Country: au
Re: Would FPGAs have saved Volkswagen?
« Reply #13 on: September 22, 2015, 12:02:03 pm »
Everyone does some form of emmisions shenanigans!

This is the thing. Since 1973 it has been happening and it will continue to happen. Every time someone gets caught, everyone else modifies the way they do what they do. The problem in this case is the prescriptive test environment being easy to detect and work around. It has always been this way and the only way VW got caught is someone decided to run some tests outside of the regulatory test framework. Let the arms race continue.
 

Offline GNU_Ninja

  • Regular Contributor
  • *
  • Posts: 200
  • Country: gb
  • Mostly Harmless
Re: Would FPGAs have saved Volkswagen?
« Reply #14 on: September 22, 2015, 12:08:42 pm »
Quote
I think (I suspect) that law requires proving that VW is guilty of using a "defeat device" purposely. It is not the VW responsibility to prove innocence and as the source code is a closed source, it is close to impossible to prove this was not just a software bug or an act of sabotage.

According to the BBC news this morning VW's US boss appears to have admitted the company was dishonest with the regulators, so reverse engineering is probably a moot point.  :palm:

http://www.bbc.co.uk/news/business-34322016

A quote from that BBC article:
Quote
It's way too early to say just yet. But the pressure is now on the car industry to prove that cheating the pollution figures isn't a widespread problem stretching across both sides of the Atlantic.

Maybe it's not just VW USA that should be worried. This could bite the ENTIRE car industry in the ass. :popcorn:
« Last Edit: September 22, 2015, 12:25:10 pm by GNU_Ninja »
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19506
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Would FPGAs have saved Volkswagen?
« Reply #15 on: September 22, 2015, 12:24:31 pm »
Maybe it's not just VW USA that should be worried. This could bite the ENTIRE global car industry in the ass.  :popcorn:

Oh, yes indeed. That could be very entertaining, but unfortunately we won't see that play out in public.

Another example is that to get the claimed mpg figures, some carmakers remove wing mirrors and tape up all gaps around doors (to reduce the drag).

There have been many cases in the computer industry where compiler/hardware manufacturers have been caught detecting that they are compiling a standard benchmark, and have emitted/run unrealistically well-optimised code.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Throy

  • Regular Contributor
  • *
  • Posts: 53
  • Country: de
Re: Would FPGAs have saved Volkswagen?
« Reply #16 on: September 22, 2015, 12:34:36 pm »
Another example is that to get the claimed mpg figures, some carmakers remove wing mirrors and tape up all gaps around doors (to reduce the drag).

I've yet to see a car obtain the MPG that is advertised.
 

Offline GNU_Ninja

  • Regular Contributor
  • *
  • Posts: 200
  • Country: gb
  • Mostly Harmless
Re: Would FPGAs have saved Volkswagen?
« Reply #17 on: September 22, 2015, 12:41:14 pm »
I've yet to see a car obtain the MPG that is advertised.

Maybe the car industry should contact Batteriser (http://batteriser.com/) 800% 80% more MPG  ;D
 

Offline Throy

  • Regular Contributor
  • *
  • Posts: 53
  • Country: de
Re: Would FPGAs have saved Volkswagen?
« Reply #18 on: September 22, 2015, 12:50:32 pm »
Maybe the car industry should contact Batteriser (http://batteriser.com/) 800% 80% more MPG  ;D
:-+ :-DD
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9504
  • Country: gb
Re: Would FPGAs have saved Volkswagen?
« Reply #19 on: September 22, 2015, 01:33:57 pm »
Quote
Maybe it's not just VW USA that should be worried. This could bite the ENTIRE car industry in the ass. :popcorn:

I certainly hope so, I'd be a bit upset if my car's manufacturer hadn't been trying as hard as VW to maximize my driving enjoyment while still meeting the emissions spec.  :-DD 
Best Regards, Chris
 

Offline vodka

  • Frequent Contributor
  • **
  • Posts: 518
  • Country: es
Re: Would FPGAs have saved Volkswagen?
« Reply #20 on: September 22, 2015, 06:34:52 pm »
Perhaps the sanction to Volkswagen Groups have been a Vendeta by General Motor ,for having broken the omerta in Spain.

i go to explain, Volkswagen revealed to Spanish Agency Competency that General Motor and others automotive corporations pacted the car prices at the  spanish trade.

And this agency imposed to all corporations (less a Volkswagen by snitch ,although they participated) a penalty of 171 Million euros .

The most affected were General Motor with 23.87 Millions € and Ford with 20.23 Millions €.

http://economia.elpais.com/economia/2015/07/28/actualidad/1438087674_837381.html
« Last Edit: September 22, 2015, 06:39:12 pm by vodka »
 

Offline jancumps

  • Supporter
  • ****
  • Posts: 1272
  • Country: be
  • New Low
Re: Would FPGAs have saved Volkswagen?
« Reply #21 on: September 22, 2015, 07:07:29 pm »
Haha. Chrysler had to pay a 266€ fine in Spain.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Would FPGAs have saved Volkswagen?
« Reply #22 on: September 22, 2015, 07:21:52 pm »
Haha. Chrysler had to pay a 266€ fine in Spain.

Probably they forgot to turn some paperwork in time or something stupid like that.
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Would FPGAs have saved Volkswagen?
« Reply #23 on: September 22, 2015, 07:46:57 pm »
In respect of this topic, there is no conceptual difference whatsoever in using C to program bits in memory that control a processor versus using VHDL to program bits in memory that control gates.

but you can reverse the ROM content into machine code (e.g. through IDA, which is a superlative disassembler), while you can't reverse a bitstream
VHDL or Verilog is beyond the RTL, reversing a bitstream you get the fpga interconnect map, which is also chip specific (vendor::family::product), no public information available, every chip has its own map

CPU: the ISA is public, you can read opcodes from the datasheet
FPGA: just the synthetizer knows the map, the datasheet doesn't

Most FPGAs have bitstream encryption options too...
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1999
  • Country: us
    • netstuff
Re: Would FPGAs have saved Volkswagen?
« Reply #24 on: September 22, 2015, 08:07:20 pm »
benchmarked pc hardware also has a history of 'playing games' (lol) with the numbers.

way back in the pci video card days, I remember nvidia and matrox playing some kind of benchmark detection games with their video cards.  ethernet cards and scsi cards also could be made to detect when a benchmark is running and then change logic so that an artifical fast-path was routed thru.

if a corporation can cheat, it will.  welcome to how raw, unfettered capitalism works ;(   aka, "all's fair as long as you don't get caught".

pathetic, but then again, I stopped trusting large corporations a long LONG time ago.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf