aboutsummaryrefslogtreecommitdiffstats
path: root/fpga
Commit message (Collapse)AuthorAgeFilesLines
* x300: add front-panel GPIO source controleklai2020-02-182-7/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a ZPU register to control the FP GPIO source. These are 2bits per GPIO pin, totalling 24 bits. 0 corresponds to RF-A, 1 corresponds to RF-B. The following Python code will control the upper 6 bits of the front-panel GPIO from the B-side radio on an X300: >>> import uhd >>> U = uhd.usrp.MultiUSRP("type=x300") >>> U.get_gpio_src_banks() ['FP0'] >>> U.get_gpio_src("FP0") ['RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA'] >>> U.set_gpio_src("FP0", ['RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFB', 'RFB', 'RFB', 'RFB', 'RFB', 'RFB']) >>> U.get_gpio_src("FP0") ['RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFA', 'RFB', 'RFB', 'RFB', 'RFB', 'RFB', 'RFB'] >>> # Make all GPIOs outputs: >>> U.set_gpio_attr("FP0A", "DDR", 0xFFF) >>> U.set_gpio_attr("FP0B", "DDR", 0xFFF) >>> # Control all GPIOs from software (not ATR): >>> U.set_gpio_attr("FP0A", "CTRL", 0x000) >>> U.set_gpio_attr("FP0B", "CTRL", 0x000) >>> # Bottom 3 pins go high from radio A >>> U.set_gpio_attr("FP0A", "OUT", 0x007) >>> # Top 3 pins go high from radio B >>> U.set_gpio_attr("FP0B", "OUT", 0xE00) Amends the gpio.cpp example to allow switching the source. Co-authored-by: Brent Stapleton <brent.stapleton@ettus.com>
* rfnoc: Update blocks to use autogenerated noc_shellWade Fife2020-02-0623-1825/+2407
|
* fixup! lib: add option for output register in pps generatorHumberto Jimenez2020-02-051-1/+1
|
* lib: add option for output register in pps generatorMax Köhler2020-01-281-2/+23
| | | | | | The pps_generator module receives a new parameter (PIPELINE) which can optionally add a register on the output. The default behaviour is unchanged.
* Merge FPGA repository back into UHD repositoryMartin Braun2020-01-283090-0/+2912909
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FPGA codebase was removed from the UHD repository in 2014 to reduce the size of the repository. However, over the last half-decade, the split between the repositories has proven more burdensome than it has been helpful. By merging the FPGA code back, it will be possible to create atomic commits that touch both FPGA and UHD codebases. Continuous integration testing is also simplified by merging the repositories, because it was previously difficult to automatically derive the correct UHD branch when testing a feature branch on the FPGA repository. This commit also updates the license files and paths therein. We are therefore merging the repositories again. Future development for FPGA code will happen in the same repository as the UHD host code and MPM code. == Original Codebase and Rebasing == The original FPGA repository will be hosted for the foreseeable future at its original local location: https://github.com/EttusResearch/fpga/ It can be used for bisecting, reference, and a more detailed history. The final commit from said repository to be merged here is 05003794e2da61cabf64dd278c45685a7abad7ec. This commit is tagged as v4.0.0.0-pre-uhd-merge. If you have changes in the FPGA repository that you want to rebase onto the UHD repository, simply run the following commands: - Create a directory to store patches (this should be an empty directory): mkdir ~/patches - Now make sure that your FPGA codebase is based on the same state as the code that was merged: cd src/fpga # Or wherever your FPGA code is stored git rebase v4.0.0.0-pre-uhd-merge Note: The rebase command may look slightly different depending on what exactly you're trying to rebase. - Create a patch set for your changes versus v4.0.0.0-pre-uhd-merge: git format-patch v4.0.0.0-pre-uhd-merge -o ~/patches Note: Make sure that only patches are stored in your output directory. It should otherwise be empty. Make sure that you picked the correct range of commits, and only commits you wanted to rebase were exported as patch files. - Go to the UHD repository and apply the patches: cd src/uhd # Or wherever your UHD repository is stored git am --directory fpga ~/patches/* rm -rf ~/patches # This is for cleanup == Contributors == The following people have contributed mainly to these files (this list is not complete): Co-authored-by: Alex Williams <alex.williams@ni.com> Co-authored-by: Andrej Rode <andrej.rode@ettus.com> Co-authored-by: Ashish Chaudhari <ashish@ettus.com> Co-authored-by: Ben Hilburn <ben.hilburn@ettus.com> Co-authored-by: Ciro Nishiguchi <ciro.nishiguchi@ni.com> Co-authored-by: Daniel Jepson <daniel.jepson@ni.com> Co-authored-by: Derek Kozel <derek.kozel@ettus.com> Co-authored-by: EJ Kreinar <ej@he360.com> Co-authored-by: Humberto Jimenez <humberto.jimenez@ni.com> Co-authored-by: Ian Buckley <ian.buckley@gmail.com> Co-authored-by: Jörg Hofrichter <joerg.hofrichter@ni.com> Co-authored-by: Jon Kiser <jon.kiser@ni.com> Co-authored-by: Josh Blum <josh@joshknows.com> Co-authored-by: Jonathon Pendlum <jonathan.pendlum@ettus.com> Co-authored-by: Martin Braun <martin.braun@ettus.com> Co-authored-by: Matt Ettus <matt@ettus.com> Co-authored-by: Michael West <michael.west@ettus.com> Co-authored-by: Moritz Fischer <moritz.fischer@ettus.com> Co-authored-by: Nick Foster <nick@ettus.com> Co-authored-by: Nicolas Cuervo <nicolas.cuervo@ettus.com> Co-authored-by: Paul Butler <paul.butler@ni.com> Co-authored-by: Paul David <paul.david@ettus.com> Co-authored-by: Ryan Marlow <ryan.marlow@ettus.com> Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com> Co-authored-by: Sylvain Munaut <tnt@246tNt.com> Co-authored-by: Trung Tran <trung.tran@ettus.com> Co-authored-by: Vidush Vishwanath <vidush.vishwanath@ettus.com> Co-authored-by: Wade Fife <wade.fife@ettus.com>
* Removed copy of FPGA source files.Martin Braun2014-10-073343-3119114/+0
|
* Merge branch 'maint'Martin Braun2014-09-24275-292796/+13460
|\
| * fpga: Multiple X300 FPGA bugfixes and enhancementsAshish Chaudhari2014-09-24275-292796/+13460
| | | | | | | | | | | | | | - Fixed 10GigE firmware communication issues and sequence errors for TX - Multiple changes to help ease timing closure - Cleaned up build scripts - Switched to Xilinx ISE 14.7 as the default build tool for X300
* | fpga: Added FPGA code for B200 AD9361 host driver additionAshish Chaudhari2014-08-202-8/+19
|/
* fpga: Added FPGA code for X300 MIMO alignment bugfixAshish Chaudhari2014-08-195-50/+22
|
* fpga: Updating FPGA code for UHD-3.7.2-rc1Ben Hilburn2014-07-2258-3128/+3153
|
* fpga: updating b200 and x300 FPGA source code for latest imagesBen Hilburn2014-05-1471-4093/+117072
|
* x300 fpga: updating FPGA code with latest bug fixesBen Hilburn2014-03-206-3411/+3432
|
* Merge branch 'maint'Nicholas Corgan2014-03-1743-112988/+0
|\
| * fpga: removed superfluous B2x0 filesNicholas Corgan2014-02-2043-112988/+0
| |
* | Adding bootram.coe file from latest firmware changes.michael-west2014-03-031-2377/+2377
|/
* Pushing the bulk of UHD-3.7.0 code.Ben Hilburn2014-02-142194-1083/+1489296
|
* b2xx: Updating FPGA source with recent bugfixes.Ben Hilburn2013-12-03103-626/+2019
|
* Squashed B200 FPGA Source. Code from Josh Blum, Ian Buckley, and Matt Ettus.Ben Hilburn2013-10-10591-0/+292056
|
* Merge branch 'fpga_master' into master_converter_workJosh Blum2013-08-285-13/+13
|
* Merge branch 'fpga_master' into maintJosh Blum2013-05-092-4/+8
|
* Merge branch 'fpga_master' into maintJosh Blum2013-04-021-0/+1
|
* Merge branch 'fpga_master' into maintJosh Blum2013-03-259-43/+58
|
* Merge branch 'fpga_master'Josh Blum2012-10-103-9/+28
|
* Merge branch 'fpga_master'Josh Blum2012-10-053-6/+15
|
* Merge branch 'b100_2rx_fpga' into b100_2rxJosh Blum2012-09-044-1/+134
|
* Merge branch 'fpga_next' into nextJosh Blum2012-07-194-4/+4
|
* Merge branch 'fpga_next' into nextJosh Blum2012-07-191-1/+8
|
* Merge branch 'fpga_next' into nextJosh Blum2012-07-1713-724/+219
|
* Merge branch 'master' into nextJosh Blum2012-07-163-43/+6
|\
| * Merge branch 'fpga_master'Josh Blum2012-07-163-43/+6
| |
| * Merge branch 'fpga_master'Josh Blum2012-07-0213-393/+4134
| |
* | Merge branch 'fpga_next' into nextJosh Blum2012-07-0223-1214/+4958
|/
* Merge branch 'fpga_master'Josh Blum2012-05-221-1/+38
|
* Merge branch 'fpga_master'Josh Blum2012-05-102-7/+9
|
* Merge branch 'fpga_master'Josh Blum2012-04-2512-922/+29
|
* Merge branch 'timed_cmds_work_fpga' into timed_cmds_workJosh Blum2012-04-216-416/+429
|
* Merge branch 'fpga_next' into nextJosh Blum2012-04-104-3/+63
|
* Merge branch 'master' into nextJosh Blum2012-04-032-5/+5
|\ | | | | | | | | Conflicts: host/examples/CMakeLists.txt
| * Merge branch 'fpga_maint' into maintJosh Blum2012-04-022-5/+5
| |
* | Merge branch 'master' into nextJosh Blum2012-03-264-85/+92
|\|
| * Merge branch 'fpga_maint' into maintJosh Blum2012-03-264-85/+92
| |
* | Merge branch 'fpga_next' into nextJosh Blum2012-03-2312-426/+1454
|/
* Merge branch 'fpga_master'Josh Blum2012-03-129-13/+16
|
* Merge branch 'fpga_master'Josh Blum2012-03-114-101/+3
|
* Merge branch 'fpga_master'Josh Blum2012-02-183-4/+26
|
* Merge branch 'fpga_next' into nextJosh Blum2012-02-1754-1070/+2565
|
* uhd: added/renamed various readme filesJosh Blum2012-02-041-4/+0
|
* Merge branch 'fpga_master'Josh Blum2012-01-111-377/+377
|
* Merge branch 'fpga_master' into uhd_masterJosh Blum2011-11-292-4/+4
|