Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite
Commits
49a3490f
Commit
49a3490f
authored
Jun 01, 2011
by
Samuel Iglesias Gonsalvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tps: remove unneeded and very old test files
parent
e257e47b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
435 deletions
+0
-435
test_load_firmware_flash.py
test_load_firmware_flash.py
+0
-61
README
tests.old/spec/python/README
+0
-2
test_clk.bin
tests.old/spec/python/test_clk.bin
+0
-0
test_clk.py
tests.old/spec/python/test_clk.py
+0
-372
No files found.
test_load_firmware_flash.py
deleted
100755 → 0
View file @
e257e47b
#!/acc/src/dsc/drivers/cohtdrep/siglesia/Python-2.7/python
# It needs Python 2.7 or higher!
import
sys
import
rr
import
time
import
os
from
ctypes
import
*
class
CGennumFlash
:
GENNUM_FLASH
=
1
;
GENNUM_FPGA
=
2
;
FPGA_FLASH
=
3
;
def
__init__
(
self
,
bus
):
self
.
bus
=
bus
;
self
.
lib
=
cdll
.
LoadLibrary
(
"./libfpga_loader.so"
);
self
.
lib
.
rr_init
();
self
.
lib
.
gpio_init
();
if
__name__
==
'__main__'
:
gennum
=
rr
.
Gennum
();
flash
=
CGennumFlash
(
gennum
);
start
=
time
.
time
();
flash
.
lib
.
gpio_bootselect
(
flash
.
GENNUM_FLASH
);
version
=
hex
(
flash
.
lib
.
flash_read_id
());
if
(
version
!=
"0x202016"
):
raise
Exception
(
'Error: version of the flash is not correct: '
+
version
);
# Load a new firmware to the Flash memory.
print
"Starting the process to load a FW into Flash memory"
flash
.
lib
.
load_mcs_to_flash
(
"./test_flash.bin"
);
time
.
sleep
(
1
);
print
"Forcing to load FW from Flash memory to FPGA"
# Force the FPGA to load the FW from the Flash memory
flash
.
lib
.
force_load_fpga_from_flash
();
finish
=
time
.
time
();
print
"Time elapsed: "
+
str
(
finish
-
start
)
+
" seconds"
ask
=
""
;
while
((
ask
!=
"Y"
)
and
(
ask
!=
"N"
))
:
ask
=
raw_input
(
"Are the LEDs blinking? [Y/N]"
)
if
(
ask
==
"N"
)
:
raise
Exception
(
"Error loading FW through the Flash memory"
);
tests.old/spec/python/README
deleted
100644 → 0
View file @
e257e47b
This directory contains the sources of the python scripts
for testing the SPEC board.
tests.old/spec/python/test_clk.bin
deleted
100755 → 0
View file @
e257e47b
File deleted
tests.old/spec/python/test_clk.py
deleted
100755 → 0
View file @
e257e47b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment