Skip to content
Snippets Groups Projects
Commit e7e2e657 authored by Marek Gumiński's avatar Marek Gumiński
Browse files

Added watchdog test script (for debugging)

parent 70b0f243
Branches
No related merge requests found
#! /usr/bin/env python
# Copyright Creotech SA, 2016
# Author: Marek Guminski <marek.guminski@creotech.pl>
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
import spec
import fmcmasterfip as fmc
import utilities as util
import time
import ptsexcept
from time import sleep
from spec_identification import dut_bus
import sys
PLOT=True
def main (card=None, default_directory='.',suite=None,serial=""):
###############################################################################
############################ initialization ###################################
###############################################################################
util.section_msg("Hardware initialization")
abspath = util.find_prj_topdir(util.TOPDIRNAME);
carrier = spec.spec( abspath );
# FPGA bitstream and FMC presence are verified during initialization
dut = fmc.fmcmasterfip(carrier, abspath, util.FIRMWARE_PATH)
dut.rst_core()
dut.rst_fd()
while(1):
dut.send_id_dat(0x7F14, int( sys.argv[1], 16 ) )
time.sleep(0.1)
if __name__ == '__main__' :
main()
\ No newline at end of file
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