Skip to content
Snippets Groups Projects
Commit 9a158b6e authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Bug #1230: Corrected title.

parent d7554076
No related branches found
No related tags found
No related merge requests found
""" Read the RSP status for one or all pid, based on TCL testcase 11.1""" """ Read or write external sync input edge and input delay, based on TCL testcase 2.2"""
################################################################################ ################################################################################
# - Verify options # - Verify options
rspId = tc.rspId rspId = tc.rspId
blpId = tc.bpId blpId = tc.bpId
blpId.extend(tc.blpId) blpId.extend(tc.blpId)
# Testcase specific options # Testcase specific options
arg_edge = arg_pps_edge arg_edge = arg_pps_edge
arg_delay = arg_pps_delay arg_delay = arg_pps_delay
tc.appendLog(11, '') tc.appendLog(11, '')
if arg_read: if arg_read:
tc.appendLog(11, '>>> Read PPS input delay status for RSP-%s, BLP-%s.' % (rspId, blpId)) tc.appendLog(11, '>>> Read PPS input delay status for RSP-%s, BLP-%s.' % (rspId, blpId))
tc.appendLog(11, '') tc.appendLog(11, '')
for ri in rspId: for ri in rspId:
for bi in blpId: for bi in blpId:
rsp.read_cr_sync_delay(tc, msg, [bi], [ri]) rsp.read_cr_sync_delay(tc, msg, [bi], [ri])
else: else:
if arg_delay==0: if arg_delay==0:
if arg_edge=='r': if arg_edge=='r':
tc.appendLog(11, '>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on rising edge.' % (rspId, blpId)) tc.appendLog(11, '>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on rising edge.' % (rspId, blpId))
rsp.write_cr_sync_delay(tc, msg, 0, 0, blpId, rspId) rsp.write_cr_sync_delay(tc, msg, 0, 0, blpId, rspId)
else: else:
tc.appendLog(11, '>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on falling edge.' % (rspId, blpId)) tc.appendLog(11, '>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on falling edge.' % (rspId, blpId))
rsp.write_cr_sync_delay(tc, msg, 0, 1, blpId, rspId) rsp.write_cr_sync_delay(tc, msg, 0, 1, blpId, rspId)
else: else:
if arg_edge=='r': if arg_edge=='r':
tc.appendLog(11, '>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on rising edge.' % (rspId, blpId, arg_delay)) tc.appendLog(11, '>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on rising edge.' % (rspId, blpId, arg_delay))
for ri in range(arg_delay): for ri in range(arg_delay):
rsp.write_cr_sync_delay(tc, msg, 1, 0, blpId, rspId) rsp.write_cr_sync_delay(tc, msg, 1, 0, blpId, rspId)
else: else:
tc.appendLog(11, '>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on falling edge.' % (rspId, blpId, arg_delay)) tc.appendLog(11, '>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on falling edge.' % (rspId, blpId, arg_delay))
for ri in range(arg_delay): for ri in range(arg_delay):
rsp.write_cr_sync_delay(tc, msg, 1, 1, blpId, rspId) rsp.write_cr_sync_delay(tc, msg, 1, 1, blpId, rspId)
tc.appendLog(11, '') tc.appendLog(11, '')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment