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
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-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
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
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
bfd82bfcca
hdl: FPGA patch update v0.15.3
2023-10-31 10:28:21 -05:00
Ryan Thompson
10ee1f24d8
test: rx_timestamp_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
5dccc5cd97
test: rx_counter_8bit_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
47f1879dad
test: loopback_tb added to regression test
...
No assertions found, therefore the test is empirical at commit. It
instantiates a sample_stream_tb instance essentially serving as a
sample_stream_tb wrapper.
2023-10-31 10:28:21 -05:00
Ryan Thompson
429c78f1d8
test: fx3_gpif_meta_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
fe9917784e
test: fx3_gpif_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
e5e94476e9
test: fx3_gpif_packet_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
e6a0919c3b
test: fx3_gpif_meta_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
bf2f3c18c7
test: fx3_gpif_iq_tb added to regression test
2023-10-31 10:28:21 -05:00
Ryan Thompson
94988ca2fd
test: fx3_gpif_8bit_tb test matrix generated by googletest
2023-10-31 10:28:21 -05:00
Ryan Thompson
f90181373c
test: Abseil CMake build
2023-10-31 10:28:21 -05:00
Ryan Thompson
d072e2140c
test: verify hdl macro and FX3 IQ 8bit test matrix added
...
General_test catches vsim failure assertions and runs the
fx3_gpif_iq_8bit_tb test matrix.
Test Matrix
+------+---------+---------+
| Mode | EN_CH0 | EN_CH1 |
+------+---------+---------+
| 8b | 0 | 1 |
| 8b | 1 | 0 |
| 8b | 1 | 1 |
| 16b | 0 | 1 |
| 16b | 1 | 0 |
| 16b | 1 | 1 |
+------+---------+---------+
2023-09-27 16:38:58 -05:00
Ryan Thompson
4ca4f0b306
test: Quartus version check in regression test
...
Throws an error if the expected nois2_shell_command.sh has been found,
but in a different version of Quartus. Change NIOS2SHELL directive to
the appropriate nios2_shell_command.sh location.
2023-09-27 16:38:58 -05:00
Ryan Thompson
da67a6e27a
test: add the rest of the bladeRF micro .do files
2023-09-27 16:38:58 -05:00
Ryan Thompson
9f4b55e626
test: test.do wrapper quits ModelSim if passed .do file has fails
...
test.do wraps existing .do files. This will exit vsim with a pass (0)
or fail (1) exit code accessible through the nios_command_shell.
Parameters will be passed to the child file.do.
Usage:
do test.do <file.do> [params]
Example:
~/intelFPGA_lite/20.1/nios2eds/nios2_command_shell.sh
cd ~/bladeRF/hdl/fpga/platforms/bladerf-micro/modelsim
vsim .
do test.do compile.do
2023-09-27 16:38:58 -05:00
Ryan Thompson
67059fa6d5
test: test_sync added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
64bbfd3bbc
test: rx_scheduled added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
e0cda03288
test: fast test implemented in timestamp rx_scheduled
2023-09-27 16:38:57 -05:00
Ryan Thompson
15ca326537
test: rx_gaps added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
de5263d13c
test: fast test implemented in timestamp rx_gaps
2023-09-27 16:38:57 -05:00
Ryan Thompson
7fae389cbf
test: print timestamps added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
447a516a38
test: fast parameter added to test_timestamps
...
Used to limit print, rx_gaps, and rx_scheduled test iterations.
2023-09-27 16:38:57 -05:00
Ryan Thompson
5df19937bd
test: scheduled_retune added to regression test
...
Failing at time of commit.
2023-09-27 16:38:57 -05:00
Ryan Thompson
f784d5000d
test: generate hop set if none provided in scheduled retune
...
Generating a hop set allows us to integrate the test elsewhere.
2023-09-27 16:38:57 -05:00
Ryan Thompson
7df024b240
test: samplerate and threads test added
...
These two tests are failing at time of commit. Disabling threads test by
default in regression test. Refer to issue #705 .
2023-09-27 16:38:57 -05:00