Commit graph

2,138 commits

Author SHA1 Message Date
Brian Glod
6bc6c23eef bladerf-micro: build: Delete obsolete build scripts 2017-12-21 12:21:15 -05:00
Brian Glod
49d888d24b bladerf: nios: Genericized makefiles 2017-12-21 12:21:15 -05:00
Brian Glod
6ff7424ef7 common: bladerf: Delete settings.bsp.in
This file can be generated during the build process.
2017-12-21 12:21:15 -05:00
Brian Glod
6b2e65391d bladerf: nios: Move software sources to common 2017-12-21 12:21:15 -05:00
Brian Glod
45248b26d5 bladerf: hdl: Move Nios top-level simulation file 2017-12-21 12:21:14 -05:00
Brian Glod
aabb6ea68a bladerf-micro: hosted: Update paths in .qip file 2017-12-21 12:21:14 -05:00
Brian Glod
0acb6ed219 bladerf-micro: qsys: Allow mixed case Nios impl 2017-12-21 12:21:14 -05:00
Brian Glod
bca111fc83 build: Fix some paths 2017-12-21 12:21:14 -05:00
Brian Glod
4fa3acada4 bladerf-micro: build script overhaul
First pass, lots of changes. Untested.
2017-12-21 12:21:07 -05:00
Brian Glod
e8d6270daf bladerf-micro: move nios_system.ipx to platform 2017-12-21 11:28:59 -05:00
Brian Glod
a753aa76d6 bladerf-micro: Moved nios_system.tcl to platform 2017-12-21 11:28:59 -05:00
Brian Glod
b9c2867f85 bladerf-micro: nios: Preliminary Qsys Tcl 2017-12-21 11:28:59 -05:00
Brian Glod
1143fe14f1 bladerf-micro: pins: Additions
- Power supply synchronization pins (ps_sync_1p1, _1p8)
- AD9361 SYNC pin (adi_sync_in)
- Power monitor I2C pins (pwr_sda, pwr_scl)
2017-12-21 11:28:59 -05:00
Brian Glod
ea15b40fe8 bladerf-micro: pins: Remove i2c1_*, Add *_bias_en
- Removed i2c1_sda, i2c1_scl (not used in HW).
- Added tx_bias_en, rx_bias_en for enabling Bias-T.
2017-12-21 11:28:59 -05:00
Brian Glod
a94e3ff60c bladerf-micro: pins: FX3_CTL[9] mod for DCLK
- Move fx3_gpif[14] to pin P7
- Move fx3_ctl[9] to pin V6

This mod allows fx3_ctl[9] to operate as DCLK during FPGA configuration,
and also as fx3_ctl[9] afterward. Pin moves to keep the stub as short as
possible. PIN_V6 is as close as we can get to DCLK (PIN_V3).
2017-12-21 11:28:59 -05:00
Brian Glod
c9f9d6d357 bladerf-micro: pins: Renamed sp4t to spdt
RF switches are SPDTs not SP4Ts.
2017-12-21 11:28:59 -05:00
Brian Glod
7f52ffdb16 bladerf-micro: pins: Remove adf_ado
Pin does not exist on ADF4001/2.
2017-12-21 11:28:59 -05:00
Brian Glod
0fcdfb80b4 bladerf-micro: sdc: Cleanup
- Delete obsolete constraints
- Fix clock names
2017-12-21 11:28:59 -05:00
Brian Glod
0ecb6bdb14 bladerf-micro: pins: delete dac_sdo
Pin does not exist.
2017-12-21 11:28:59 -05:00
Brian Glod
2147c29cbc bladerf-micro: Add sync to tx_trigger_line
Add synchronization block to tx_trigger_line to cross from Nios domain
to the tx_clock domain.
2017-12-21 11:28:59 -05:00
Brian Glod
ca07f122fd bladerf-micro: constraints: Remove LMS SPI
Obsolete
2017-12-21 11:28:59 -05:00
Brian Glod
dcb8db2897 bladerf-micro: Pinout
- Move i2c1_* to Bank 5A (2.5 V)
- Add adf_muxout to Bank 5B (3.3 V)
- Add adf_ce to Bank 5B (3.3 V)
- Rename exp_present to exp_present_n (active low)
- Move c5_clock_2 to Bank 7A
- Delete exp_spi_*
- Add exp_gpio[27:16]
2017-12-21 11:28:59 -05:00
Brian Glod
e02df52964 bladerf-micro: Pinout changes
Move dac_sdo and adf_sdo to Bank 5A because it will be fixed at 3.3 V
whereas Banks 7A & 8A may vary based on the expansion board used.
2017-12-21 11:28:59 -05:00
Brian Glod
da33494aaf bladerf-micro: Pinout
- Deleted i2c2_sda, i2c2_scl (one CYA I2C bus is enough)
- Bank 5A to 3.3 V (will require FX3 VIO4=3.3 V and 3.3 V flash)
- Moved i2c1_sda/scl to Bank 5A
- Moved adi_*sp4t* (RF switches) to Bank 5A

This change lets us move all the signals that absolutely need to be
3.3 V to a bank that will not have a variable voltage. The Expansion
Header banks 7A and 8A will be configurable.

These banks (7A & 8A) currently have the DAC SPI and ADF4001/2 SPI
buses. This is okay because the VIH of these parts is 1.4 V, so even a
1.8 V signal should be able to drive it with ease.
2017-12-21 11:28:59 -05:00
Brian Glod
9ed71fe409 bladerf-micro: Pinout changes
Moved around Bank 7A & 8A for better clock architecture and PLL access,
as well as I/O standard flexibility.
2017-12-21 11:28:59 -05:00
Brian Glod
e9a718659f bladerf-micro: constraints: Add AD9361 constraints
- SPI constraints
- TX data constraints
- RX data constraints

Design fails timing primarily due to tx_trigger signals not being
properly synchronized into the tx_clock domain.

There is a second type of timing violation on the LVDS link clock that
seems concerning. Hoping that fixing the previous major violation will
allow the fitter to prioritize these failing nets.
2017-12-21 11:28:59 -05:00
Brian Glod
7c75bdf34a bladerf-micro: gitignore: Add .qsys_edit 2017-12-21 11:28:59 -05:00
Brian Glod
7f9c1f25b7 bladerf-micro: Pinout changes
FX3 back to 1.8 V to save power. Using 3.3 V wastes about 1 W when the
interface is going at full speed. There is no need for the adi_rx_clock
to reach two PLLs, one is sufficient.

Not able to get adi_tx_clock to use the dedicated PLL CLKOUT ports on
Bank 5B because the bank does not have enough TX pin pairs for the data
and frame lines. Using regular I/O pin for adi_tx_clock seems okay.

Synthesis and fitting successful.
2017-12-21 11:28:58 -05:00
Brian Glod
bbc75e35da bladerf-micro: Pinout changes
Reorganized the pinout for optimal PLL usage according to
Figure 4-16 (PLL Locations for Cyclone V E A2 and A4 Devices)
in the Cyclone V Handbook.

This new pinout requires that the FX3 operates at 3.3 V, but doing this
adds some flexibility in the expansion GPIO interface.

Major changes:
- AD9361 LVDS lines are on Banks 7A & 8A. These are 2.5 V
  banks (required for the LVDS I/O standard).
  - Allows LVDS RX clock (CLK10p,n) access to the top two PLLs.
- Expansion GPIOs, RF switching, and miscellaneous I2C/SPI interfaces
  are now on Banks 4A & 5B. These are 3.3 V banks.
- FX3 interfaces on Banks 3A, 3B, and 5A are now 3.3 V (from 1.8 V).
  The reason for this is because the predriver voltage rails (VCCPD)
  are shared. VCCPD Groups: {1A & 2A}, {3B & 4A}, {7A & 8A}
2017-12-21 11:28:58 -05:00
Brian Glod
d1e16adced bladerf-micro: Constraints, top-level
- Define input clock frequencies
- Change FX3 GPIF interface to 3.3 V
- Add adi_ctrl_out[7:4]
- Add adi_enable
- Small tweaks to signal/port assignments to get rid of warnings
2017-12-21 11:28:58 -05:00
Brian Glod
b9cff9f52e bladerf-micro: Initial commit
Will synthesize, but cannot fit due to some problem with adi_tx_clock.
2017-12-21 11:28:58 -05:00
Brian Glod
c798b1f7a4 gitignore: Adding new .gitignore files 2017-12-21 11:28:58 -05:00
Brian Glod
d51884908f bladerf-micro: nios: Change device to Cyclone V
Using A2 variant as default.
2017-12-21 11:28:58 -05:00
Brian Glod
3d1249c8f3 bladerf-micro: nios: Update to Quartus 16.0 2017-12-21 11:28:58 -05:00
Brian Glod
5106ff192c bladerf-micro: Add nios_system_micro
Just a copy of the existing bladeRF nios_system.
2017-12-21 11:28:55 -05:00
Vanya A. Sergeev
8322c2b912 libbladeRF: add board discovery based on usb vid/pid 2017-12-15 18:15:57 -05:00
Vanya A. Sergeev
58130c184c libbladeRF: add get vid pid method to usb driver functions 2017-12-15 18:15:57 -05:00
Vanya A. Sergeev
5472b6f91d libbladeRF: add name field to backend functions 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
b76dba744c libbladeRF: simplify usb driver access in usb backend 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
364b7fe3e9 libbladeRF: refactor dac161s055 details from backend to driver
so we can reuse vctcxo_dac_write()/vctcxo_dac_read() for bladeRF2.
2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
c90e2d55e6 libbladeRF: add platform backend wrappers to ad9361 driver 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
9d30d77c9b libbladeRF: refactor spi and gpio objects in ad9361 driver 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
c7f3951882 libbladeRF: add ad9361 spi method to backend 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
604337d7d6 fpga_common: add 16x64 NIOS II packet format 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
130145bf0e libbladeRF: refactor version checking into common helper functions 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
64082ab64a libbladeRF: add bladerf2 stubbed board 2017-12-15 18:15:56 -05:00
Vanya A. Sergeev
d5c8906c98 libbladeRF: add adi no-os ad9361 driver 2017-12-15 18:15:56 -05:00
Rey Tucker
762b9890ad hdl/analogdevicesinc: prune unnecessary subdirectories from ADI repo 2017-12-15 18:15:13 -05:00
Rey Tucker
b8cc78744e Merge commit 'e6f74c47c0' as 'hdl/fpga/ip/analogdevicesinc/hdl' 2017-12-15 18:15:13 -05:00
Rey Tucker
e6f74c47c0 Squashed 'hdl/fpga/ip/analogdevicesinc/hdl/' content from commit ace09eb26
git-subtree-dir: hdl/fpga/ip/analogdevicesinc/hdl
git-subtree-split: ace09eb26eff03da44f1caae9743b26ab6a891b1
2017-12-15 18:15:13 -05:00