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/chdr_endpoint.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/chdr_endpoint.py')
-rw-r--r-- | mpm/python/usrp_mpm/simulator/chdr_endpoint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/simulator/chdr_endpoint.py b/mpm/python/usrp_mpm/simulator/chdr_endpoint.py index 17d707ae7..bca7f9c69 100644 --- a/mpm/python/usrp_mpm/simulator/chdr_endpoint.py +++ b/mpm/python/usrp_mpm/simulator/chdr_endpoint.py @@ -36,7 +36,8 @@ class ChdrEndpoint: self.send_queue = SelectableQueue() self.send_wrapper = SendWrapper(self.send_queue) - self.graph = RFNoCGraph(self.get_default_nodes(), self.log, 1, self.send_wrapper, CHDR_W) + self.graph = RFNoCGraph(self.get_default_nodes(), self.log, 0, self.send_wrapper, + CHDR_W, config.hardware.rfnoc_device_type) self.thread = Thread(target=self.socket_worker, daemon=True) self.thread.start() |