Re:Legacy Train Control System Stabilisation (2012) [pdf]
by sydthrowaway on Tuesday November 09, 2021 @12:25AM
(#29158044)
I mean, with a list of all test input vectors and expected outputs, you could derive the entire chip right? It’s just logic gates.
[ Parent
| on HN ]
Re:Legacy Train Control System Stabilisation (2012) [pdf]
by duskwuff on Tuesday November 09, 2021 @02:37AM
(#29158849)
Not even close. The STM32Fxxx is a series of microcontrollers. They have tons of internal state which isn't exhaustively covered by test vectors. (For example, a basic 16-bit timer peripheral has roughly 60 bits of internal state, and there certainly aren't going to be 2^60 test vectors to cover that.)
Re:Legacy Train Control System Stabilisation (2012) [pdf]
by ComputerGuru on Tuesday November 09, 2021 @12:37AM
(#29158123)
You can for some things, but that wouldn’t be a very efficient result (it’s basically going to give you a massive lookup table). It’s also not that simple since we are not talking about stateless behavior - think more along the lines of interrupts, counters, events, dma, analog input/output, etc. none of which really map into a straightforward input:output relationship, most of which can be used together to some extent to form a gestalt. Even with the test vectors it is a Herculean task.
Re:Legacy Train Control System Stabilisation (2012) [pdf]
by rkangel on Tuesday November 09, 2021 @06:31AM
(#29160275)
No, there's too much complexity. What you can do is reverse engineer it more manually using data sheets etc., and then use the test vectors to ensure that you got it right. They're likely to be designed to cover all the interesting corner cases that might cause problems.