Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
masterfip-tst
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
cern-fip
masterfip
masterfip-tst
Commits
e7e2e657
Commit
e7e2e657
authored
7 years ago
by
Marek Gumiński
Browse files
Options
Downloads
Patches
Plain Diff
Added watchdog test script (for debugging)
parent
70b0f243
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/test_wdg.py
+44
-0
44 additions, 0 deletions
python/test_wdg.py
with
44 additions
and
0 deletions
python/test_wdg.py
0 → 100644
+
44
−
0
View file @
e7e2e657
#! /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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment