Martin Braun
a69ab0c23a
cmake: Update coding style to use lowercase commands
...
Also updates our coding style file.
Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.
Run the following shell code (with GNU compliant sed):
cmake --help-command-list | grep -v "cmake version" | while read c; do
echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done > convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \
'*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed
(Make sure the backslashes don't get mangled!)
2018-11-14 14:10:09 -08:00
Mark Meserve
ec2977d8cb
nijesdcore: add PRBS-31 testing
2018-10-25 10:30:59 -07:00
Mark Meserve
a49a03aa60
nijesdcore: add eyescan utility
2018-10-25 10:30:59 -07:00
Mark Meserve
fad36514e5
nijesdcore: add variable configuration support
2018-10-25 10:30:59 -07:00
Daniel Jepson
77631f3603
mpm: tdc: update PDAC BIST and flatness test to use latest APIs
2018-09-05 15:04:02 -07:00
Brent Stapleton
5b18614d39
uio: mpm: Fixup for opening mboard-regs UIO
...
- Fix the syntax to open mboard-regs UIO objects, and change the open()
and close() functions to be private.
- We were calling open() twice in every context manager line- once
manually, and once in __enter__. This commit corrects those usages, and
allows the context manager to fully manage the opening and closing of
UIO objects.
2018-07-23 10:33:34 -07:00
Daniel Jepson
d107f0e775
jesd: add rx and tx SYSREF delay control in MPM
2018-04-10 09:58:34 -07:00
Daniel Jepson
7ced80becc
n3xx: add White Rabbit support
...
Reviewed-by: Martin Braun <martin.braun@ettus.com>
2018-03-30 11:32:07 -07:00
Daniel Jepson
caf3cb87d2
tdc: support for White Rabbit
2018-03-07 12:40:28 -08:00
djepson1
7d0aec1890
tdc: support for tdc 2.0
2018-03-07 12:40:28 -08:00
Martin Braun
f9a8098cae
mpm: Fix some Pylint warnings
...
No functional changes.
2018-03-06 15:45:15 -08:00
Martin Braun
ed2d1ac3e4
mpm: Demote some log messages
...
The log output at level 'INFO' was pretty cluttered. This cleans up the
log messages at the higher levels. In some cases, log message typos or
capitalizations were also fixed.
2018-03-06 15:28:33 -08:00
Martin Braun
e9288a439c
mpm: Update all license headers
...
- Fix typo in company name (missing 'a')
- Updated SPDX license identifier to version 3.0
2018-02-19 16:55:08 -08:00
djepson1
ebfd551c35
mpm: tdc: add signature/revision checks and master reset routine
...
Reviewed-by: Martin Braun <martin.braun@ettus.com>
2018-01-12 13:14:05 -08:00
djepson1
476f888392
jesd: mg bug fix: default state of the RX link is scrambled
...
Reviewed-by: Trung Trang <trung.tran@ettus.com>
2018-01-05 14:05:17 -08:00
djepson1
d36c3a7f8c
jesd: add in detailed error reporting for JESD204b links
...
- add version control checks and bump to match latest core
- add detailed mykonos reporting
- add detailed fpga deframer reporting
- misc cleanup
Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
Reviewed-by: Martin Braun <martin.braun@ettus.com>
2018-01-04 07:27:00 -08:00
Daniel Jepson
6e1213149a
mpm: tdc: fixed typos in comments
...
Reviewed-By: Martin Braun <martin.braun@ettus.com>
2017-12-22 15:05:58 -08:00
Daniel Jepson
cb44bccd1e
mpm: tdc: compensate for the trace delay differences between daughterboards
...
Reviewed-By: Martin Braun <martin.braun@ettus.com>
2017-12-22 15:05:58 -08:00
Martin Braun
8815098747
mpm: Harmonize all license header
...
Now uses SPDX headers everywhere.
2017-12-22 15:05:58 -08:00
Martin Braun
d3e6dd1140
mpm: Harmonize imports, tidy + sort modules
...
- Moved nijesdcore to cores/
- Moved udev, net, dtoverlay, uio to sys_utils/
- Made all imports non-relative (except in __init__.py files)
- Removed some unnecessary imports
- Reordered some imports for Python conventions
2017-12-22 15:05:58 -08:00
Daniel Jepson
7766d5ef39
tdc: fix bug in pps capture reporting
...
Reviewed-By: Martin Braun <martin.braun@ettus.com>
2017-12-22 15:05:57 -08:00
Martin Braun
f14b49ff5b
n3xx: add support for 122.88 and 153.6 MHz sample clock rates
...
- re-wrote portions of the LMK driver for flexible rates and configuration
- tweaked TDC driver for compatibility and ease of debugging
- updated comments and log statements throughout for uniformity
2017-12-22 15:05:07 -08:00
djepson1
d302015966
sync: add PDAC BIST test
2017-12-22 15:04:03 -08:00
Martin Braun
4bcdcbdd90
mpm: tdc_sync: Fix number of samples, formatting issues
...
- Number of samples for TDC measurement bumped back up to 512 (was
previously reduced because of slow sampling speed)
- Non-functional changes: Modified formatting to pacify PyLint
2017-12-22 15:04:02 -08:00
Martin Braun
f2bcec5945
mpm: Replace MMCM lock and TDC PPS sleeps with poll_with_timeout
...
This increases init speed by replacing worst-case sleeps with polls.
2017-12-22 15:04:02 -08:00
Martin Braun
219b04e99d
mpm: tdc_sync: Remove sleeps in offset polling
...
On the N310, there's a penalty for calling time.sleep(). This means the
polling loop was extremely slow for polling TDC updates. Now, it simply
polls as fast as possible. Note: This could hog the bus if run outside
of an initialization sequence, where no one else is using the bus.
2017-12-22 15:04:02 -08:00
djepson1
9a9759e2cf
Sync: Improved range checking for offset measurements.
2017-12-22 15:04:02 -08:00
djepson1
ca847bb474
mg: Preliminary clock sync support
...
Signed-off-by: djepson1 <daniel.jepson@ni.com>
2017-12-22 15:04:02 -08:00
Daniel Jepson
3b716315fe
mpm: Update TDC sync code to make it generic for N dboards
2017-12-22 15:04:01 -08:00
djepson1
07b8682239
mpmd/cores: Removed PPS disable logic from TDC routine and added comments
2017-12-22 15:03:59 -08:00
djepson1
eae3ab9c7f
mpmd/cores: Adding TDC range check and removing clock enable/disable logic
2017-12-22 15:03:59 -08:00
Martin Braun
3f47aeaf13
mpm/tdc: Re-enable PPS after synchronization procedure is complete
2017-12-22 15:03:58 -08:00
Martin Braun
6183d9eeaa
mpm: Made code Python3-compatible
2017-12-22 15:03:58 -08:00
Martin Braun
dbfc85e097
mpm: Remove numpy dependency
2017-12-22 15:03:58 -08:00
Martin Braun
2bd564ca22
mpm: Replaced xrange with range for better Python future-proofing
2017-12-22 15:03:58 -08:00
Martin Braun
fc89cd3c42
mpm: Added TDC clock sync driver
2017-12-22 15:03:58 -08:00