Commit a32c4b78 authored by Christopher Turner's avatar Christopher Turner

Change external clock period to frequency

parent e6dee898
......@@ -34,18 +34,18 @@ class fmc(PandATest.PandATest):
inputy = raw_input()
while True:
print 'What is the external clock period ?'
print 'What is the external clock frequency (MHz) ?'
try:
custom_period = int(raw_input())
custom_freq = int(raw_input())
self.logger.info(
"{:<21}{}".format("EXTERN CLOCK PERIOD", custom_period))
"{:<21}{}".format("EXTERN CLCK FREQ MHz", custom_freq))
break
except ValueError:
pass
for cmd, expected in external_commands.items():
response = self.send_cmd(cmd)
expected = 'OK =' + str(((8192 * 8) / custom_period))
expected = 'OK =' + str(((8192 * 8) * custom_freq))
self.test_result.append(
self.check_response(response, expected, cmd, 1))
......
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