Commit graph

2,221 commits

Author SHA1 Message Date
Vanya A. Sergeev
ca0dc6b348 fpga_common: fix overrun in 16x64 NIOS II packet packing 2017-12-21 12:54:57 -05:00
Brian Glod
83038c725f bladerf-micro: hdl: rx_enable use GPIF control line 2017-12-21 12:54:57 -05:00
Brian Glod
3fec2cd2f2 bladerf-micro: hdl: Connect nios_gpio(1) for rx_enable 2017-12-21 12:54:57 -05:00
Brian Glod
fab1bf7e0b bladerf-micro: hdl: Connect TX FIFO to AD9361 Core 2017-12-21 12:54:57 -05:00
Brian Glod
1b9b41cfc6 ip: adi: Fix PLL resets
The separate resets for the RX PLL and TX PLL prevented the PLLs from
being merged and thus prevented fitting in the device due to lack of
valid PLL locations. Because we want them to be merged, just use one
reset block to reset "both" PLLs.

In the future (after the TX/RX interfaces have been validated), we can
configure the LVDS cores to have an external PLL to make it explicit.
2017-12-21 12:54:57 -05:00
Brian Glod
e81e16eda9 ip: adi: Connect PLL reset controllers 2017-12-21 12:54:56 -05:00
Brian Glod
26483454f3 bladerf-micro: hdl: Add PLL reset controller to U_pll and U_fx3_pll 2017-12-21 12:54:56 -05:00
Brian Glod
eaeabfaa97 ip: altera: Enable areset port on PLLs 2017-12-21 12:54:56 -05:00
Rey Tucker
4e6f20e788 hdl: add Nuand PLL Reset Controller IP
Provides a properly-timed reset for an Altera PLL when it loses lock.
2017-12-21 12:54:56 -05:00
Brian Glod
ba356bf72f ip: adi: Use .qip in axi_ad9361_hw.tcl fileset
When Qsys generates a system, it copies all the fileset files into its
output directory. This commit changes the file set to be a single .qip
so that only the .qip is copied and the HDL files are referenced from
their original location(s) making modification and debug substantially
easier.
2017-12-21 12:54:56 -05:00
Brian Glod
82fa7d18be bladerf-micro: hdl: Connect RX bus to FIFO
Use nios_gpio(17) to select the channel.
'0' = channel 0
'1' = channel 1

Also removed a bunch of cruft from bladeRF 'OG'.
2017-12-21 12:54:56 -05:00
Robert Ghilduta
026e4d11f6 Add INA219 FPGA read/write elements 2017-12-21 12:54:56 -05:00
Brian Glod
9d465ad916 bladerf-micro: hdl: Add sync to adi_ctrl_out inputs
Add synchronizers to adi_ctrl_out inputs to the NIOS system clock
domain.
2017-12-21 12:54:56 -05:00
Brian Glod
53ceff3cb4 bladerf-micro: stp: Add AD9361 sample data buses 2017-12-21 12:54:56 -05:00
Robert Ghilduta
14c9b64594 Add ADI AXI accessors to host libraries 2017-12-21 12:54:56 -05:00
Robert Ghilduta
b8719317b2 Add ADI AXI FPGA read/write elements 2017-12-21 12:54:56 -05:00
Robert Ghilduta
a19380479d Add nios_32x32 read and write functions to nios_access 2017-12-21 12:54:56 -05:00
Robert Ghilduta
d2c0e55be6 Add bladeRF2.0's USB PID to udev rules 2017-12-21 12:54:56 -05:00
Robert Ghilduta
d2ebb3782d Fixup C99 violations 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
324734422c libbladeRF/bladerf2: implement preliminary sync streaming methods 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
5575924b8a libbladeRF/bladerf2: migrate to fdd independent control mode for ad9361 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
f26ec2c032 libbladeRF/bladerf2: implement ad9361 portion of enable_module() 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
98c4a7c96f libbladeRF/bladerf2: set ad9361 to alert state in initialize 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
747b0415e3 libbladeRF/bladerf2: disable fdd mode in ad9361 params 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
65f118686e libbladeRF/bladerf2: specify rffe control reset gpio in ad9361 params 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
d307fc7165 libbladeRF/driver: use rffe control in ad9361 platform wrapper 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
f30f672e58 libbladeRF/backend: add adf400x accessors 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
8fd28df7c3 libbladeRF/backend: add ad56x1 vctcxo trim dac 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
a18a9f52c5 libbladeRF/backend: add rffe control 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
7474561711 libbladeRF/backend: fix ad9361 spi read docstring 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
68fe51e2f1 libbladeRF/backend: add verbose prints to ad9361 spi accessors 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
f6f05ccd77 libbladeRF/bladerf2: add device initialization state 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
c4a13a634a libbladeRF/bladerf1: add device initialization state 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
a73f4bdb2b libbladeRF/bladerf2: remove unneeded error goto in open() 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
3164ba2337 libbladeRF/bladerf1: remove unneeded error goto in open() 2017-12-21 12:54:56 -05:00
Robert Ghilduta
9bb7fe7d16 hdl: disable altera spi controller insertSync parameter for ad9361
this parameter was corrupting bits on read.
2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
1043df94df hdl: add 16x64 packet magic to command uart block 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
be8fa6c55f libbladeRF/bladerf2: fix reference clock in ad9361 params 2017-12-21 12:54:56 -05:00
Vanya A. Sergeev
8aa061191c libbladeRF/bladerf2: add usb pid detection to matches() 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
6277b9a95b libbladeRF/backend: add bladerf2 usb pid detection 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
5f06a3565a firmware_common: add bladerf2 usb pid 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
6a22533b76 libbladeRF/backend: refactor ad9361 spi methods into separate read/write ones 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
e6fe2846b9 libbladeRF/bladerf2: update version compatibility table 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
4670b33650 libbladeRF/bladerf2: set upgraded fpga protocol in open() 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
fe29f1ffef libbladeRF/bladerf2: fix error message status code in open() 2017-12-21 12:54:55 -05:00
Vanya A. Sergeev
53bd8da7f8 libbladeRF/bladerf2: fix order of memory frees in close() 2017-12-21 12:54:55 -05:00
Brian Glod
fd97568124 bladerf-micro: hdl: Add AD9361 top-level controller
This includes the LVDS blocks, IQ correction, and DDS.
Channel 0 and 1 I and Q are routed to top-level HDL.
Applied keep and noprune attributes so they stick around (hopefully).
Intent is to monitor with STP.
2017-12-21 12:54:55 -05:00
Brian Glod
8b55115b7d ip: adi: Fix up_core_preset initialization value
The reset value was different from the initialization value. This causes
Quartus to complain about power-up default settings. Corrected the issue
so the power-up default and reset values match.
2017-12-21 12:54:55 -05:00
Brian Glod
7d60546252 ip: adi: Change clock resource to 'AUTO'
LVDS/PLL clock resource can be:
- AUTO
- REGIONAL CLOCK
- GLOBAL CLOCK

Set to "AUTO" for compatibility with some devices that do not have
enough resources available to a regional clock.
2017-12-21 12:54:55 -05:00
Brian Glod
47f9531b99 bladerf-all: nios: AD9361 fix SPI shift bug
Courtesy of @vsergeev
2017-12-21 12:54:55 -05:00