Commit graph

571 commits

Author SHA1 Message Date
Rey Tucker
dd622a646d hdl: fx3_gpif: fix off-by-one in metafifo handling
As written, the overrun bits were clobbering the timestamp MSW.  This
should fix everything up.
2018-03-22 18:42:40 -04:00
Brian Glod
b6d8a415b2 hdl: bladeRF: Update suppressed messages
- Ignore tx_pilot being assigned but not read in atsc_tx.vhd
- Ignore warning 10542, using initial value expression for variable
2018-03-06 13:56:45 -05:00
Brian Glod
9f6c696442 hdl: bladeRF: Assign initial values to FIFO signals 2018-03-06 13:56:45 -05:00
Brian Glod
d9a237ca9c hdl: bladeRF: Clean up warnings atsc_tx 2018-03-06 13:56:45 -05:00
Brian Glod
4790d9261c hdl: bladeRF: Fix latches in DAC SPI process 2018-03-06 13:56:45 -05:00
Brian Glod
017b294a54 hdl: bladeRF-all: Change direction of Nios control PIO
Changed from "output" to "inout" to accept inputs. In this mode, the
GPIO has two independent buses, one for input, one for output. In order
to maintain previous behavior, which allowed the Nios to read the
current values being output, we must explicitly feed back the output bus
to the input bus.
2018-03-01 15:20:19 -05:00
Brian Glod
3b670ca799 hdl: bladeRF: nios_gpio_t, fifo_t, bladerf_p.vhd
Add bladerf_p.vhd package, which handles nios_gpio packing and unpacking
between bits and record elements. This consolidates bit-to-function
mapping, making it easier to modify the mapping in the future.

This package also defines the FIFO record types and the nios_system
component for easier re-use.
2018-03-01 15:20:19 -05:00
Brian Glod
a4681812ca ip: nuand/atsc_tx: Fix power-up/reset value mismatch 2018-02-22 15:57:32 -05:00
Brian Glod
9632450d40 hdl: build: Add build time output
Prints total time taken to build the FPGA image.
2018-02-16 18:45:48 -05:00
Brian Glod
37de987a36 hdl: build: Delete empty SOPC directories
Delete empty SOPC directories created by Quartus during IP core
generation. These empty directories are created in the user's home
directory and can accumulate if left unchecked. Use `find' with
approprate filters to (hopefully) avoid deleting anything important!
2018-02-16 13:29:23 -05:00
Brian Glod
c86fb65bff hdl: bladeRF-all: Rename lms_spi to rffe_spi
Quick change so that LMS references are not present in the bladeRF-micro
platform.
2018-02-14 18:14:07 -05:00
Brian Glod
3a71aee58a hdl: build: Add build flow support
Quartus supports different build flows. Adding support for that so that
a user can choose to simply generate the project files, run synthesis
only (e.g. to check syntax), or do the full place and route to generate
programming files.
2018-02-09 17:57:25 -05:00
Brian Glod
236a639021 hdl: build: Fix Quartus project revision parameter
The project revision option specified on the command line was not being
passed to the build Tcl file.

Changed handling of message suppression files. Filename should be the
same as the revision name. Instead of managing potentially several
identical or nearly identical .srf files, just manage the one and have
the build script rename it when copying it to the build directory.

Fixed references to the nios_system.qip file in bladerf-fsk_bridge.qip
and bladerf-qpsk_tx.qip.
2018-02-09 17:54:20 -05:00
Brian Glod
4faf3d172a hdl: build: Better checking for Quartus binaries
- Check for qsys-* binaries
- Check for nios2-* binaries

These binaries do not exist in the same directory as quartus_sh.
2018-02-09 17:42:06 -05:00
Brian Glod
3b5c432f0c hdl: build: getopts, help text
- Add "board" as a required option in help text
- The description of the SignalTap force option was vague.
- Added check for null argument.
- Do not print full usage information for an invalid option.
2018-02-09 17:37:38 -05:00
Brian Glod
8a162b337e hdl: build: Remove NiosII/s option
Beginning in Quartus 14.0, the NiosII processor split into two versions:
Classic and Gen 2. Development of new features for the Classic ceased in
Quartus 14.0. Nuand upgraded to the Gen 2 core for the release of the
bladeRF micro. The Gen 2 core does not have an option for the
Small (NiosII/s) implementation, so the option was removed from the
build script.

Nuand may add a NiosII/s approximation of the NiosII/f in the
future. This will happen quicker if we get requests to do so. :)
2018-02-09 13:01:27 -05:00
Brian Glod
a975f782e6 hdl: bladerf: Suppress fifo_reader null range warning
A null range in this function is expected for SISO platforms.
2018-02-07 20:04:16 -05:00
Brian Glod
c027a47697 hdl: ip/nuand: Fix edge detector reset value
Fixes presettable/clearable register to latch conversion warning 13004.
2018-02-07 20:02:55 -05:00
Brian Glod
0e74d15784 hdl: bladerf: Fix signal assignment warnings
Removed unused signals and fixed implicit defaults.
2018-02-07 19:37:56 -05:00
Brian Glod
b143190aae nios: Add agc_dc_corr_write() to devices.h
Add function declaration to devices.h
2018-02-07 18:16:45 -05:00
Brian Glod
3a5ec43b25 hdl: ip/nuand: Initialize sync output to RESET_LEVEL 2018-02-07 18:01:17 -05:00
Brian Glod
8692edff2e hdl: ip/nuand: Add async reset to sensitivity list 2018-02-07 17:27:50 -05:00
Brian Glod
e492403d7a hdl: ip/nuand: Add MIT License to pps_counter.vhd
This license should have been present from the start.
2018-02-07 17:25:30 -05:00
Brian Glod
e2876203c0 hdl: ip/nuand: Fix implicit default arbiter.vhd
The waitreq output port was never assigned a value.
2018-02-07 17:17:51 -05:00
Brian Glod
0be88bb868 hdl: build: Fix adding FPGA size to work dir name
This commit should be squashed into:

4f9a59aafd
  "hdl/build: Fix clearing of work directory"
2018-02-07 17:02:36 -05:00
Brian Glod
5832522f68 hdl: ip/nuand: Move arbiter source files to .qip 2018-02-01 15:05:13 -05:00
Brian Glod
21f6c5a7cb hdl: ip/adi: Move util_upack source files to .qip
This is for cleanup purposes; util_upack is not used in either bladeRF
platform.
2018-02-01 15:05:10 -05:00
Brian Glod
201712d487 hdl: ip/adi: Move util_cpack source files to .qip
This is for cleanup purposes; util_cpack is not used in either bladeRF
platform.
2018-02-01 15:05:06 -05:00
Brian Glod
aad5f4314a hdl: ip/adi: Move axi_dmac source files to .qip
This is for cleanup purposes; axi_dmac is not used in either bladeRF
platform.
2018-02-01 15:04:16 -05:00
Brian Glod
5174a7f9e3
hdl: Update README.md
- Update Quartus version
- Update Altera --> Intel
2018-01-31 14:18:07 -05:00
Brian Glod
4ac61d1a3f hdl/build: Add FPGA size to work directory name
Allows even more builds to occur simultaneously.
2018-01-26 20:07:40 -05:00
Brian Glod
4f9a59aafd hdl/build: Fix clearing of work directory
Don't wipe the entire work directory, only wipe the work/$platform
directory. This allows us to run builds of multiple platforms
simultaneously.
2018-01-26 17:47:04 -05:00
Brian Glod
52db62b53b hdl: Clarify Quartus version comment
The Quartus version specified in the platform.conf file is the minimum
expected Quartus version for the platform to build successfully.
Older versions may or may not work, your mileage may vary!!
2018-01-26 13:53:18 -05:00
Rey Tucker
4333df103f hdl: bladerf-micro: simulation fixes/updates
Add missing stuff for simulation

Add a loopback testbench
2018-01-12 17:41:49 -05:00
Rey Tucker
e7c8ef33af hdl: bladerf-micro: reduce loopback FIFO length
We can get by with a smaller loopback FIFO, which will save some RAMs.
2018-01-12 17:40:57 -05:00
Rey Tucker
b4c52b67bc hdl: ip/nuand: update sample_stream_tb for MIMO 2018-01-12 17:40:27 -05:00
Rey Tucker
252e9ac243 hdl: ip/nuand: update simulation build script 2018-01-12 17:39:22 -05:00
Rey Tucker
89d2309253 hdl: bladerf-micro: add flow control for loopback
When performing loopback tests, it is likely that the loopback FIFO will
fill up, causing undetected sample loss. This commit checks for this
condition and pauses the flow of TX samples until the RX side can catch
up.
2018-01-12 17:35:44 -05:00
Rey Tucker
6acfb6a700 hdl: fifo_reader: add flow control for FIFO reads
Adds a fifo_holdoff port that, when asserted, will pause the flow of
fifo_reads until de-asserted.
2018-01-12 17:32:11 -05:00
Rey Tucker
72a605f16e hdl: bladerf-micro: add timing constraints
Add timing constraints for FX3, AD9361, and I2C/SPI accessories.
2017-12-22 15:56:59 -05:00
Brian Glod
51255913f4 hdl: Move message suppression files
To platform's build dir
2017-12-21 15:44:54 -05:00
Robert Ghilduta
d44dc27b0a bladerf: add AGC related cores to Nios 2017-12-21 12:55:09 -05:00
Rey Tucker
051c34d2ec hdl: bladeRF_nios: fix bladeRF2 builds invof arbiter and AGC 2017-12-21 12:55:09 -05:00
Brian Glod
d061c19a7a hdl/bladerf: Add message suppression file 2017-12-21 12:55:09 -05:00
Brian Glod
b6f0cb2075 hdl/bladerf-micro: Update message suppression file
The line numbering of the Qsys SPI component changed in Quartus
17.1. Updating the suppressed message filter accordingly.
2017-12-21 12:55:09 -05:00
Brian Glod
61de796852 hdl/ip/fifo_writer: Fix bug in pack function
Fix bit indices when assembling a sample stream into a FIFO word.
2017-12-21 12:55:09 -05:00
Rey Tucker
4da379f5f9 hdl: bladerf-micro: plumb adf_muxout thru RFFE PIO 2017-12-21 12:55:09 -05:00
Brian Glod
ddebbab9f1 hdl: bladeRF1/2: Fix inferred latch in fx3_gpif.vhd 2017-12-21 12:55:09 -05:00
Brian Glod
eba81441d3 hdl: bladeRF2: Enable ADP2384 SYNC freq hopping
Enabling SYNC frequency hopping seems to reduce spurs with no obvious
side effects.

Using RT = 332 kohm, we have 7 valid hop frequencies between 200 kHz and
215.73 kHz. Spend 100 periods at each frequency before moving to the
next.
2017-12-21 12:55:09 -05:00
Brian Glod
ee26810505 hdl: bladeRF2: Use new ps_sync module
Only uses one frequency, 213.333 kHz, for the time being.
2017-12-21 12:55:09 -05:00