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
8c0345d2
Commit
8c0345d2
authored
Jan 10, 2012
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add max number of DMA items check.
parent
49922282
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
spec_fmc_adc.py
test/fmcadc100m14b4cha/python/spec_fmc_adc.py
+3
-0
No files found.
test/fmcadc100m14b4cha/python/spec_fmc_adc.py
View file @
8c0345d2
...
...
@@ -239,6 +239,9 @@ class CSpecFmcAdc100Ms:
def
get_data
(
self
,
carrier_addr
,
length
):
# Configure DMA
items_required
=
int
(
math
.
ceil
(
length
/
float
(
self
.
DMA_LENGTH
)))
if
(
128
<
items_required
):
print
(
'Required items:
%
d'
)
%
items_required
raise
Exception
(
'Current gn4124 class only supports up to 128 items.'
)
#print('Required items: %d')%items_required
for
num
in
range
(
items_required
):
if
(
items_required
==
num
+
1
):
...
...
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