tps/test: added one-line comment to indicate what checks each test

parent efe5bdd5
......@@ -16,11 +16,11 @@ This batch of test makes a connectivity test of the SPEC's components.
- test01: checks the low speed pins of FMC connector (low count connector).
- test02: checks the EEPROM of the GENNUM chip.
- test03: loads a firmware file to Flash memory and boots from it. The FW just blink the leds.
- test04: not present now. It should be SFP connectivity test.
- test05: check SATA ports and high speed pins on FMC connector (low count connector).
- test06: check Silabs SI570 oscillator.
- test07: check data and address lines of DDR memory.
- test08: check PLL and rest of oscillators on SPEC board.
- test04: not present yet. It should be SFP connectivity test.
- test05: checks SATA ports and high speed pins on FMC connector (low count connector).
- test06: checks Silabs SI570 oscillator.
- test07: checks data and address lines of DDR memory.
- test08: checks PLL and rest of oscillators on SPEC board.
This tests are made to work stand-alone too. So, it is possible to call each one using 'python test0x.py'
......
......@@ -6,6 +6,10 @@ import time
import os
from tpsexcept import *
"""
test00: checks voltage of the power pins in FMC connector.
"""
BASE_GPIO = 0x40000
BASE_MINIC = 0xc0000
GPIO_CODR = 0x0
......
......@@ -8,6 +8,10 @@ import errno
from tpsexcept import * # jdgc
"""
test01: checks the low speed pins of FMC connector (low count connector).
"""
tests_path = '.'
default_log_path = '.'
......
......@@ -6,6 +6,10 @@ import rr
import time
import os
"""
test02: checks the EEPROM of the GENNUM chip.
"""
class EEPROM_GENNUM:
LB_CTL = 0x804;
......
......@@ -9,6 +9,10 @@ import os.path
from ctypes import *
from tpsexcept import *
"""
test03: loads a firmware file to Flash memory and boots from it. The FW just blinks the leds.
"""
class CGennumFlash :
GENNUM_FLASH = 1;
GENNUM_FPGA = 2;
......@@ -59,7 +63,7 @@ def main (default_directory='.'):
sys.stdout = tmp_stdout;
sys.stdin = tmp_stdin;
if (ask == "N") :
raise TpsError("Error loading FW through the Flash memory");
raise TpsError("Error loading FW through the Flash memory or there is a problem with the LEDs");
if __name__ == '__main__' :
main();
......@@ -10,7 +10,9 @@ import time
import os
from tpsexcept import *
"""
test05: check SATA ports and high speed pins on FMC connector (low count connector).
"""
TX_SIZE = 32; # Number of Bytes to TX
RX_SIZE = TX_SIZE; # Number of Bytes to RX
......
......@@ -7,6 +7,10 @@ import time
import os
from tpsexcept import *
"""
test06: checks Silabs SI570 oscillator.
"""
BASE_GPIO = 0x40000
BASE_MINIC = 0xc0000
GPIO_CODR = 0x0
......
......@@ -10,6 +10,9 @@ import i2c
import gn4124
import os
"""
test07: checks data and address lines of DDR memory.
"""
GN4124_CSR = 0x0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment