Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
FMC ADC 100M 14b 4cha - Testing
Commits
1b70af7c
Commit
1b70af7c
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
86ab185e
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 @
86ab185e
#!/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 @
86ab185e
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 @
86ab185e
File deleted
tests.old/spec/python/test_clk.py
deleted
100755 → 0
View file @
86ab185e
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