diff options
author | Trung Tran <trung.tran@ettus.com> | 2018-07-23 13:41:58 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-07-23 18:11:32 -0700 |
commit | a39b6680a560517a61be2a63c629d90d0cca6b08 (patch) | |
tree | 98881c503f06cbdf51c459a21e35e6dffbc8e1ef | |
parent | 458c1bb1229ab52bdac2d26c973a54780e925704 (diff) | |
download | uhd-a39b6680a560517a61be2a63c629d90d0cca6b08.tar.gz uhd-a39b6680a560517a61be2a63c629d90d0cca6b08.tar.bz2 uhd-a39b6680a560517a61be2a63c629d90d0cca6b08.zip |
mpm: n3xx: Allow to run without daughterboards connected
The product ID will fall back to the motherboard ID (n300, n310). This
will load FPGA images even if there is no daughterboard connected.
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n3xx.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py index 783ea4ca2..c770ecfd4 100644 --- a/mpm/python/usrp_mpm/periph_manager/n3xx.py +++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py @@ -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. |