The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

Self tests: what do they actually do?
Message #1 Posted by megarat on 6 July 2010, 7:06 p.m.

Hey all,

I was performing the "ON"-"x" self test for my HP 15c lately and it caused me wonder just what is going on behind the "Running" message.

The keyboard/display tests on modern HP calculators are pretty self-explanatory, but what about the other (ROM/RAM) tests? I suppose the actions taken by the test will vary by model, but for ROM/"circuitry" tests: does it do a checksum on the ROM to make sure it isn't corrupt? Or perform a battery of operations and make sure the results are as expected? For RAM tests, does it read/write to all/some addresses/registers to make sure they work?

Just curious.

      
Re: Self tests: what do they actually do?
Message #2 Posted by Thomas Falk on 8 July 2010, 1:52 a.m.,
in response to message #1 by megarat

Hello,

self test for the rom check typically the checksum of the content of the memory. They do not check the correctness of the software. This must be tested during the developement and in going to production, but not later anymore.

For testing RAM certain patterns are written into the memory and read back. If you read the same as you have writtem the memory is assumed to be ok. The releability of this test depends on the patterns used.

What a definit calculator does in its self test only HP can say. The above is how we are doing it for comparable systems.

Best regards,

Thomas

      
Re: Self tests: what do they actually do?
Message #3 Posted by Vieira, Luiz C. (Brazil) on 8 July 2010, 8:07 a.m.,
in response to message #1 by megarat

Hi;

the big question might also be:

In case a self-test procedure returns an error/faulty message, could it be an error in the self-test routine itself, hence the circuit/routine under test is OK?

I have seen, and I guess many others here too, such circumstance in regular, hardware-based supervisory circuits. I worked in a switching network system (telephony) about 15 years ago (Siemens ESK), and from time to time we needed to change the contacts of some relays. I remember once in a while having to replace contacts in relays signaling false errors: it happened that they were the error themselves.

But this is something I saw in a 'hardwired' switching network. Never found such event in solid state, software controlled systems.

Have any of you?

Cheers.

Luiz (Brazil)

Edited: 8 July 2010, 8:08 a.m.

      
Re: Self tests: what do they actually do?
Message #4 Posted by Marc Ferrer (France) on 8 July 2010, 12:11 p.m.,
in response to message #1 by megarat

Hello,

As a personal story, I remember back in the 80s some systems which at power-up ran BISTs (Built-in Self-Tests) during hours ! before booting -Intel systems running iRMX.

Besides that, I read an HP Journal issue related to some "big" HP processors in HP 9000 systems; they gave a very interesting description of a thorough self-test for a microcoded CPU :

1- a hardwired sequencer triggers CPU functional blocks while a hardware check is done on various output signals. Then the microcode ROM is checked the same way.

2- using as few instructions as possible, a first routine tests register banks or caches, then some RAM and so on...

3- if everything is still OK, extensive tests are done on the whole RAM array.

A funny note : If I remember well, in some systems of that era the first test was done using an on-board microcontroller -which of course had to run, first of all, its own BIST... eh ? who said "matrioshka ?"

As you can see it's a hierarchical process in the way that you can only rely on already-tested devices. And if you really want to test everything, it can take forever to complete.

Returning to our calculators, Eric Smith (please Eric, correct me if I'm wrong) told that the Spice series added new instructions to their CPU, devoted to the ROM test, and even a hardware CRC checker I think. I suppose that the goal was to use as few CPU hardware as possible at this stage of testing.

By the way, it means also that if the CPU is defective, the calculator won't even start, as you already guessed.

Luiz : I worked with people who did maintenance on relay-based switching telephone equipment, they all said it quickly could become a real nightmare, crowded with false errors :-)

Regards from France,

Marc

Edited: 8 July 2010, 12:20 p.m.

            
Re: Self tests: what do they actually do?
Message #5 Posted by Eric Smith on 12 July 2010, 2:08 p.m.,
in response to message #4 by Marc Ferrer (France)

The self-test code in the Spice and Voyager series mainly check the ROM and the RAM. In the Spice, they added a special instruction to the CPU which causes it to compute the CRC10 of a 1Kx10 "quad" of ROM. The Nut CPU used in Voyager does not have a comparable instruction, so it uses a loop that computes a checksum of the ROM.

The RAM test is very cursory. It really just makes sure that each RAM location can be written and read back, but does not test all the bits of a word independently nor does it test for pattern sensitivity.

      
Re: Self tests: what do they actually do?
Message #6 Posted by Mike (Stgt) on 9 July 2010, 9:29 a.m.,
in response to message #1 by megarat

If you like I may log the trace in my emulator/CPU-simulator. I will do it this WE and could send it on Monday. But I have only a copy of the ROM at hand Eric Smith removed 2008 from his Nonpareil distribution and which is most probably modified.

Just an other story: The Service ROM for the HP-41 made my emulator/simulator display "CPU OK" but the Time Module calculated the 1-Jan-1900 to be a Sunday, it was a Monday (I am told). So you may only be sure that there _is_ something wrong if it displays "CPU BAD" but not that everythings fine if you see "CPU OK".

Nice WE.....Mike

            
Re: Self tests: what do they actually do?
Message #7 Posted by Ron Ross on 9 July 2010, 9:59 a.m.,
in response to message #6 by Mike (Stgt)

That anomaly may be attributed to the fact that 1900 was not a Leap year. That would offset all days before Feb 28th by one day.

Just an FYI and my $0.02

                  
Re: Self tests: what do they actually do?
Message #8 Posted by Mike (Stgt) on 9 July 2010, 11:19 a.m.,
in response to message #7 by Ron Ross

No-no, it was an error in my emulator/CPU-simulator. But even with this error the Service ROM testet the CPU OK.

Ciao.....Mike

            
Re: Self tests: what do they actually do?
Message #9 Posted by Mike (Stgt) on 12 July 2010, 10:31 a.m.,
in response to message #6 by Mike (Stgt)

To megarat: if you are interested (if yes I need your mail address) I have a 10k-ZIP with two trace logs for sending you. The first is just the ON/OFF sequence (from deep sleep back to deep sleep) and the second one is the ON+* sequence. Alas it is without contents of the CPU registers, it shows only the address and command.

As I assumed, I have only a modified ROM at hand where the checksum is not corrected. So the selftest ends with "Error 9" in the display and the number 2 in register X. In contrast Nonpareil 0.77 shows the same message but has the number 3 in the regsiter X. So my question to Eric Smith is if his Nonpareil allows log tracing.

Ciao.....Mike

                  
Re: Self tests: what do they actually do?
Message #10 Posted by megarat on 12 July 2010, 1:36 p.m.,
in response to message #9 by Mike (Stgt)

Quote:
To megarat: if you are interested (if yes I need your mail address) I have a 10k-ZIP with two trace logs for sending you.

Thanks, a personal message will be sent shortly.

                        
Re: Self tests: what do they actually do?
Message #11 Posted by Mike (Stgt) on 15 July 2010, 2:38 p.m.,
in response to message #10 by megarat

Hello Craig! Did you get the log files?

Ciao.....Mike

                  
Re: Self tests: what do they actually do?
Message #12 Posted by Eric Smith on 12 July 2010, 2:10 p.m.,
in response to message #9 by Mike (Stgt)

Yes, Nonpareil can generate trace logs when it is compiled with HAS_GUI_DEBUGGER=1.

                        
Re: Self tests: what do they actually do?
Message #13 Posted by Mike (Stgt) on 13 July 2010, 6:40 a.m.,
in response to message #12 by Eric Smith

Thank you for the hint. BTW, do you have a list about the meaning of the number in the X-register after the error in the self test?

Ciao.....Mike

                              
Re: Self tests: what do they actually do?
Message #14 Posted by Eric Smith on 14 July 2010, 1:57 a.m.,
in response to message #13 by Mike (Stgt)

No, sorry.

                                    
Re: Self tests: what do they actually do?
Message #15 Posted by Mike (Stgt) on 14 July 2010, 6:38 a.m.,
in response to message #14 by Eric Smith

Someone else here in the community has a clue?

TIA......Mike


[ Return to Index | Top of Index ]

Go back to the main exhibit hall