Skip to content
Snippets Groups Projects
Commit 06c46a49 authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

small modification to get is working on HW

parent 387ce96b
Branches
No related tags found
1 merge request!3Apsct production
...@@ -17,7 +17,7 @@ Check APSCT_CLK ...@@ -17,7 +17,7 @@ Check APSCT_CLK
import apsct_lib import apsct_lib
import sys import sys
READ_ALL = True READ_ALL = False # True
CLK_FREQ = '200MHz' CLK_FREQ = '200MHz'
...@@ -28,32 +28,16 @@ if len(sys.argv) < 2: ...@@ -28,32 +28,16 @@ if len(sys.argv) < 2:
apsct = apsct_lib.ApsctClass(CLK_FREQ) apsct = apsct_lib.ApsctClass(CLK_FREQ)
print*("Check APSCT in 200MHz mode") modi = ["200MHz", "160MHz", "OFF"]
apsct.frequency = "200MHz" for mode in modi:
print(f"Check APSCT in {mode} mode")
apsct.frequency = mode
apsct.set_apsct() apsct.set_apsct()
apsct.pll_200.read_lock() apsct.pll_200.read_lock()
apsct.pll_200.read_lol()
apsct.pll_160.read_lock() apsct.pll_160.read_lock()
apsct.pll_160.read_lol()
apsct.sensors.apsct_sensors() apsct.sensors.apsct_sensors()
apsct.check_apsct()
print*("Check APSCT in 160MHz mode")
apsct.frequency = "160MHz"
apsct.set_apsct()
apsct.pll_200.read_lock()
apsct.pll_200.read_lol()
apsct.pll_160.read_lock()
apsct.pll_160.read_lol()
apsct.sensors.apsct_sensors()
print*("Check APSCT in off mode")
apsct.frequency = "OFF"
apsct.set_apsct()
apsct.pll_200.read_lock()
apsct.pll_200.read_lol()
apsct.pll_160.read_lock()
apsct.pll_160.read_lol()
apsct.sensors.apsct_sensors()
if READ_ALL: if READ_ALL:
apsct.pll_200.read_all_regs_pll() apsct.pll_200.read_all_regs_pll()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment