Skip to content
Snippets Groups Projects
Commit d5fcdce4 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #9893: RSP channel capacity is for all 4 boards

parent c8bc10b2
No related branches found
No related tags found
No related merge requests found
......@@ -375,15 +375,15 @@ with open("add_virtual_instrument.sql", 'w+') as output:
## RSPs
for i in xrange(num_splitter_stations):
resource_capacities[ resources[stations[i] + 'chan0'][0] ] = (SqlKeyword('DEFAULT'), 61 * 16, 61 * 16)
resource_capacities[ resources[stations[i] + 'bw0'][0] ] = (SqlKeyword('DEFAULT'), 3*1000*1000*1000, 3*1000*1000*1000)
resource_capacities[ resources[stations[i] + 'chan1'][0] ] = (SqlKeyword('DEFAULT'), 61 * 16, 61 * 16)
resource_capacities[ resources[stations[i] + 'chan0'][0] ] = (SqlKeyword('DEFAULT'), 4 * 61 * 16, 4 * 61 * 16) # 4 RSP boards, 61 subbands/board, 16 bits/subband
resource_capacities[ resources[stations[i] + 'bw0'][0] ] = (SqlKeyword('DEFAULT'), 3*1000*1000*1000, 3*1000*1000*1000) # 3 Gbit/s
resource_capacities[ resources[stations[i] + 'chan1'][0] ] = (SqlKeyword('DEFAULT'), 4 * 61 * 16, 4 * 61 * 16)
resource_capacities[ resources[stations[i] + 'bw1'][0] ] = (SqlKeyword('DEFAULT'), 3*1000*1000*1000, 3*1000*1000*1000)
for i in xrange(num_non_splitter_stations):
j = i + num_splitter_stations
resource_capacities[ resources[stations[j] + 'bw'][0] ] = (SqlKeyword('DEFAULT'), 3*1000*1000*1000, 3*1000*1000*1000)
resource_capacities[ resources[stations[j] + 'chan'][0] ] = (SqlKeyword('DEFAULT'), 61 * 16, 61 * 16)
resource_capacities[ resources[stations[j] + 'chan'][0] ] = (SqlKeyword('DEFAULT'), 4 * 61 * 16, 4 * 61 * 16)
if len(resource_capacities) != len(resources):
raise Exception('Error: resource_capacities and resources must have the same size!')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment