diff options
author | Samuel O'Brien <sam.obrien@ni.com> | 2020-07-30 13:53:44 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-28 15:25:48 -0500 |
commit | 5df8202c0cb88fb5c7629fbf0ce5bed32c96e70d (patch) | |
tree | db1755242b6f8267bb918c860bd0b2350c229ae9 /mpm/python/usrp_mpm/simulator/rfnoc_graph.py | |
parent | 687ed5bba07559a314d56e70b0eb727c7c8d9cbf (diff) | |
download | uhd-5df8202c0cb88fb5c7629fbf0ce5bed32c96e70d.tar.gz uhd-5df8202c0cb88fb5c7629fbf0ce5bed32c96e70d.tar.bz2 uhd-5df8202c0cb88fb5c7629fbf0ce5bed32c96e70d.zip |
sim: Move Hardware Specific to Config File
This commit moves various magic numbers and hardware specific settings
into the configuration file. It also provides default presets for said
configuration files which can be inherited from.
Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'mpm/python/usrp_mpm/simulator/rfnoc_graph.py')
-rw-r--r-- | mpm/python/usrp_mpm/simulator/rfnoc_graph.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/simulator/rfnoc_graph.py b/mpm/python/usrp_mpm/simulator/rfnoc_graph.py index ada6e70b0..a2b536ed2 100644 --- a/mpm/python/usrp_mpm/simulator/rfnoc_graph.py +++ b/mpm/python/usrp_mpm/simulator/rfnoc_graph.py @@ -148,7 +148,7 @@ class RFNoCGraph: It serves as an interface between the ChdrEndpoint and the individual blocks/nodes. """ - def __init__(self, graph_list, log, device_id, send_wrapper, chdr_w): + def __init__(self, graph_list, log, device_id, send_wrapper, chdr_w, rfnoc_device_id): self.log = log.getChild("Graph") self.device_id = device_id self.stream_spec = StreamSpec() @@ -173,8 +173,8 @@ class RFNoCGraph: (NocBlockPort(0, 1), StreamEndpointPort(0, 1)) ] self.regs = NocBlockRegs(self.log, 1 << 16, True, 1, [radio], len(self.stream_ep), 1, - 0xE320, adj_list, 8, 1, self.get_stream_spec, self.radio_tx_cmd, - self.radio_tx_stop) + rfnoc_device_id, adj_list, 8, 1, self.get_stream_spec, + self.radio_tx_cmd, self.radio_tx_stop) def radio_tx_cmd(self, sep_block_id): """Triggers the creation of a ChdrOutputStream in the ChdrEndpoint using |