Commit graph

3,727 commits

Author SHA1 Message Date
Ryan Thompson
b7a6173edd libbladeRF: added log message for failed FPGA image read 2024-08-06 17:30:40 -05:00
Ryan Thompson
a34f6aaf1b test: added clock select test 2024-08-06 17:30:40 -05:00
Ryan Thompson
ffb55acd05 libbladeRF: added log_debug_8x32_pkt for nios r/w failures 2024-08-06 17:27:32 -05:00
Ryan Thompson
03ccc0028a hdl: nios: debug print on failed pkt_8x32 r/w 2024-08-06 17:27:32 -05:00
Ryan Thompson
effe3eb2df libbladeRF: added error log for failed nios_config_write 2024-08-06 17:27:32 -05:00
Ben Morse
ffe66c5dfa host: update Eclipse instructions for NIOS software development on modern Quartus 20.1 2024-08-02 15:25:59 -05:00
Ryan Thompson
9f2f09fb76 libbladeRF: corrected bladeRF 2.0 gain mode count retrieval
bladerf_get_gain_modes() now returns the number of available
bladeRF 2.0 gain modes when the modes argument is NULL.

Fixes#968
2024-08-02 15:25:59 -05:00
Ryan Thompson
044fb54d61 test: libbladeRF: added bladerf_get_gain_modes to gain test
The bladeRF 1.0 should pass at this commit. The bladeRF 2.0 should pass
on the subsequent commit.
2024-08-02 15:25:59 -05:00
Ryan Thompson
24babc361e hdl: add clock control blocks for system and fx3 plls
Resolves Nios and FX3 lockup when SI53304 clock select assignments are
made. The FX3 pclk and Nios system PLLs lose lock when the SI53304
transitions between clock sources and this prevents invalid cycles from
making it through.
2024-08-02 15:25:59 -05:00
Ryan Thompson
fd5dde022f hdl: nios: add response delay if new clock is selected 2024-08-02 15:25:59 -05:00
Ryan Thompson
fcb33420a0 hdl: fix first sample drop in fifo_writer
This fixes the first sample being dropped in both meta and non-meta modes.
fifo_write is now asserted through procedure and executes on HOLDOFF exit.

Regression test results:

$ make test_libbladeRF
[       OK ] libbladeRF.scheduled_retune (19450 ms)
[----------] 29 tests from libbladeRF (297804 ms total)
[==========] 29 tests from 1 test suite ran. (297804 ms total)
[  PASSED  ] 29 tests.

$ make test_hdl
[----------] 31 tests from hdl (1354828 ms total)
[----------] 32 tests from hdl/verify (2319711 ms total)
[==========] 63 tests from 2 test suites ran. (3674539 ms total)
[  PASSED  ] 63 tests.
2024-08-02 15:25:59 -05:00
Ryan Thompson
58727ab7a1 hdl: init meta_fifo_empty to 1
[==========] 32 tests from 1 test suite ran. (1785986 ms total)
[  PASSED  ] 20 tests.
[  FAILED  ] 12 tests, listed below:
[  FAILED  ] hdl/verify.fx3_gpif_iq_8bit_tb/16b01, where GetParam() = (false, false, true)
[  FAILED  ] hdl/verify.fx3_gpif_iq_8bit_tb/16b10, where GetParam() = (false, true, false)
[  FAILED  ] hdl/verify.fx3_gpif_iq_8bit_tb/16b11, where GetParam() = (false, true, true)
[  FAILED  ] hdl/verify.fx3_gpif_iq_8bit_tb/8b01, where GetParam() = (true, false, true)
[  FAILED  ] hdl/verify.fx3_gpif_iq_8bit_tb/8b10, where GetParam() = (true, true, false)
[  FAILED  ] hdl/verify.fx3_gpif_iq_8bit_tb/8b11, where GetParam() = (true, true, true)
[  FAILED  ] hdl/verify.rx_counter_8bit_tb/16b01, where GetParam() = (false, false, true)
[  FAILED  ] hdl/verify.rx_counter_8bit_tb/16b10, where GetParam() = (false, true, false)
[  FAILED  ] hdl/verify.rx_counter_8bit_tb/16b11, where GetParam() = (false, true, true)
[  FAILED  ] hdl/verify.rx_counter_8bit_tb/8b01, where GetParam() = (true, false, true)
[  FAILED  ] hdl/verify.rx_counter_8bit_tb/8b10, where GetParam() = (true, true, false)
[  FAILED  ] hdl/verify.rx_counter_8bit_tb/8b11, where GetParam() = (true, true, true)

12 FAILED TESTS
2024-08-02 15:25:59 -05:00
Robert Ghilduta
cefdb2887c hdl: fixup more timing issues 2024-08-02 15:25:59 -05:00
Robert Ghilduta
f24abc356a debian: update change 2024-07-12 04:09:00 -04:00
Ryan Thompson
b40cd829be revert "libbladeRF: reinitialize the RFIC on FPGA load"
This reverts commit 0fcb4cfe03.
2024-05-01 16:02:35 -05:00
Robert Ghilduta
2fbae2c38b libbladeRF_test: bump dependency versions 2024-04-15 00:21:31 -07:00
Robert Ghilduta
4b62a41797 hdl: bladeRF-micro redefine JTAG SDC 2024-04-15 00:21:31 -07:00
Robert Ghilduta
473f5f0865 hdl: add false path for timing closure of common_dcfifo
Note: common_dcfifo impacts all bladeRF FIFOs, including sample and meta FIFOs.
2024-04-14 23:18:47 -07:00
Robert Ghilduta
88a1929394 libbladeRF: fix up sync TX initialization bug 2024-04-04 08:21:22 -05:00
Ryan Thompson
ac3e5aeb3f doc: updated default tuning mode to host 2024-04-04 08:21:22 -05:00
Ryan Thompson
0fcb4cfe03 libbladeRF: reinitialize the RFIC on FPGA load
This fixes a silent failure where an FPGA reload will loose
communication to the RFIC.
2024-04-04 08:21:22 -05:00
Ryan Thompson
1034fe0d41 test: added FPGA load test 2024-04-04 08:20:54 -05:00
Ben Morse
e50f28fba3 libbladeRF: fix compliation of regression tests with an older g++ 2024.05 2024-03-04 14:16:08 -08:00
Ryan Thompson
38ab0517bc test: regression: added cmake version guard for FetchContent 2024-03-01 14:19:44 -06:00
Ryan Thompson
5aa65256a7 hdl: fifo_writer: eight_bit_mode default value set
This fixes the adsb builds.
2024-03-01 13:00:21 -06:00
Ryan Thompson
4ec99ebd9d libbladeRF: added cmake find_package() support
Fixes #418
2024-01-18 16:01:15 -06:00
Ryan Thompson
0c611be416 libbladeRF: force rerun frequency calibration on module enable
Addresses #947
2023-12-06 17:24:35 -06:00
Robert Ghilduta
747b64ee70 cmake: defines for MSVC 2023-12-02 01:28:25 -08:00
Robert Ghilduta
e71bdb391a cmake: defines for MSVC 2023-12-02 01:22:35 -08:00
Ryan Thompson
05dafc8e7e doc: bladeRF-cli: clarify K/M/G as powers of 1024
Fixes #840
2023-11-30 13:06:48 -06:00
Robert Ghilduta
94f2159c87 windows: add a few missing depencies 2023-11-30 05:11:23 -08:00
Robert Ghilduta
82eabb2f0e libbladeRF_test: bump dependency 2023-11-29 13:16:00 -08:00
Ryan Thompson
1a2d9e3e02 test: txrx_hwloop: fix getopt_long warning by changing 'c' to int
Resolved the compiler warning caused by comparing
getopt_long's return value with a char. Changed 'c'
from char to int to correctly handle -1 return values.

Fixes #952
2023-11-28 23:32:11 +00:00
Ryan Thompson
d0fbe05690 test: device test label turned into libbladeRF label
Not really a need to separate tests as libbladeRF is intended to
interface with the device.
2023-10-31 11:01:04 -05:00
Ryan Thompson
2b655e9423 test: python virtual environment setup added to build output
The setup_env.sh and requirements.txt files are copied to build/output.

Ex:
$ ./output/setup_env.sh
$ source nuand/bin/activate
$ python ./output/libbladeRF_test_txrx_hwloop.py
2023-10-31 11:01:04 -05:00
Ryan Thompson
bfabd63566 libbladeRF: fix assignment between very fast and very slow sample rates
Failure info:
Failed going from 48,601,811 -> 1,228,911 MSPS.
Worked when first sample rate is < 40,000,001 MSPS.
Worked when the subsequent sample rate is > 2,083,334 MSPS.

ad9361_validate_enable_fir: Invalid: ratio ADC/2 / TX_SAMPL * 16 > TAPS(max 64, adc 388814480, tx 48601810)
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/rfic_host.c:888] _rfic_host_set_filter: ad9361_set_tx_fir_en_dis(phy, enable) failed: An unexpected error occurred
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:1100] bladerf2_set_sample_rate: could not set TX filter mode: An unexpected error occurred
2023-10-31 11:00:36 -05:00
Ryan Thompson
d4cdad16ff doc: note that quick_tune must be non-NULL for the bladeRF micro 2.0 2023-10-31 11:00:36 -05:00
Ryan Thompson
75fbcb7cd6 test: test_regression conditionally added with cmake option
This prevents the long build time grabbing googletest and abseil libs.
2023-10-31 11:00:34 -05:00
Ryan Thompson
b33a4a711a test: list available test targets with "make test" 2023-10-31 10:29:54 -05:00
Ryan Thompson
237d6240d4 test: test_general renamed to test_regression 2023-10-31 10:28:21 -05:00
Ryan Thompson
32f1378eec test: regression test synthesizes all FPGA images
Defaults
+---------------+------------+----------------+
|     Board     |  Revision  | Supported Size |
+---------------+------------+----------------+
| bladeRF       | hosted     | 40             |
| bladeRF       | hosted     | 115            |
| bladeRF-micro | hosted     | A4             |
| bladeRF-micro | hosted     | A9             |
| bladeRF-micro | wlan       | A9             |
+---------------+------------+----------------+

All (--gtest_also_run_disabled_tests)
+---------------+------------+----------------+
|     Board     |  Revision  | Supported Size |
+---------------+------------+----------------+
| bladeRF       | hosted     | 40             |
| bladeRF       | hosted     | 115            |
| bladeRF       | adsb       | 40             |
| bladeRF       | adsb       | 115            |
| bladeRF       | atsc_tx    | 40             |
| bladeRF       | atsc_tx    | 115            |
| bladeRF       | fsk_bridge | 40             |
| bladeRF       | fsk_bridge | 115            |
| bladeRF       | headless   | 40             |
| bladeRF       | headless   | 115            |
| bladeRF       | qpsk_tx    | 40             |
| bladeRF       | qpsk_tx    | 115            |
| bladeRF-micro | hosted     | A4             |
| bladeRF-micro | hosted     | A9             |
| bladeRF-micro | adsb       | A4             |
| bladeRF-micro | adsb       | A9             |
| bladeRF-micro | foxhunt    | A4             |
| bladeRF-micro | foxhunt    | A9             |
| bladeRF-micro | wlan       | A9             |
+---------------+------------+----------------+
2023-10-31 10:28:21 -05:00
Ryan Thompson
46f8fc52bd test: rx_timestamp_tb: continuous run support 2023-10-31 10:28:21 -05:00
Ryan Thompson
282859b93c test: rx_timestamp_tb: MIMO support
Divides the expected meta value data by 2 when MIMO enabled.
2023-10-31 10:28:21 -05:00
Ryan Thompson
2928d7fe8f test: rx_timestamp_tb: meta_verify process iteration limit added
This circumvents the rst asserted in the tb.
2023-10-31 10:28:21 -05:00
Ryan Thompson
f046180604 host: CMake minimum version bump to 3.5
Accommodates the following warning issued by CMake v3.27.1.

CMake Deprecation Warning:
  Compatibility with CMake < 3.5 will be removed from a 
  future version of CMake.
2023-10-31 10:28:21 -05:00
Ryan Thompson
fc73ab1c1b test: fx3_gpif_meta_8bit_tb: corrected adc_streams().data_v behavior
adc_streams(0 and 1).data_v engages regardless of which module is
enabled in libbladeRF.
2023-10-31 10:28:21 -05:00
Ryan Thompson
369228a4b1 test: rx_timestamp_tb: removed redudent FIFO tests in other test benches 2023-10-31 10:28:21 -05:00
Ryan Thompson
e18c59ca46 test: fx3_gpif_meta_8bit_tb: last_ts re-initializes after reset asserted
Iterator added to meta spacing check. This allows for last_ts to
re-initialize after the reset to fifo_writer is asserted.
2023-10-31 10:28:21 -05:00
Ryan Thompson
bfd82bfcca hdl: FPGA patch update v0.15.3 fpga_v0.15.3 2023-10-31 10:28:21 -05:00
Ryan Thompson
4b9906602e hdl: fifo_writer: proper META state transition for exclusive ch1 usage
Addresses an issue where the META state was not transitioning correctly
when only channel 1 (ch1) was enabled. The fix ensures that the META
state now correctly exits the META_WRITE state and enters the
META_DOWNCOUNT state when ch1 is exclusively enabled.
2023-10-31 10:28:21 -05:00