Skip to content

Commit

Permalink
mpm: n3xx: Allow to run without daughterboards connected
Browse files Browse the repository at this point in the history
The product ID will fall back to the motherboard ID (n300, n310). This
will load FPGA images even if there is no daughterboard connected.
  • Loading branch information
Trung Tran authored and mbr0wn committed Jul 24, 2018
1 parent 458c1bb commit a39b668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mpm/python/usrp_mpm/periph_manager/n3xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ class n3xx(ZynqComponents, PeriphManagerBase):
# manager class. The format of this map is:
# (motherboard product code, (Slot-A DB PID, [Slot-B DB PID])) -> product
product_map = {
('n300', tuple()) : 'n300',
('n300', (MG_PID, )): 'n300', # Slot B is empty
('n310', tuple()) : 'n310',
('n310', (MG_PID, MG_PID)): 'n310',
('n310', (MG_PID, )): 'n310', # If Slot B is empty, we can
# still use the n310.bin image.
Expand Down

0 comments on commit a39b668

Please sign in to comment.