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!
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.
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.
- 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.
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. :)
Suppress some warnings that we have no control over. For example, some
nets within Quartus-generated HDL:
- avalon_merlin_width_adapter
- avalon_merlin_axi_slave_ni
- interconnect_2_router
- Altera's SPI controller
- Altera's LVDS controller
- etc...
More accurate description of what the flow is. The 'gen' flow only
generates the Quartus projects and other dependencies. It does not
perform synthesis, fitting, etc. As a result 'gen' is a more appropriate
flow name than 'none'.
This commit adds all the files required for using the FPGA on
the bladeRF as an ADSB message decoder. The decoder uses a low
IF approach for decoding the PPM messages from ADSB. The FPGA
processing expects a samplerate of 16 MHz and the IF to be at
4 MHz. The FPGA will mix, filter and turn the result into a
power value. This power value is then compared against a noise
floor, the preamble is searched and, if found, one of a number
of message decoders are used to decode the data. If the CRC
does not pass, a bit flipping technique is used to flip the
lowest 5 soft decisions and re-try the CRC. If successful,
the message is sent into a holding area and into a FIFO which
collects the ADSB messages. After a timeout period, if messages
have not filled the FIFO, zeros are stuffed until the FIFO is
full enough for a DMA transfer to the host.
An example of a host application for receiving the ADSB messages
is located in the example directory.
Simply enabling SignalTap and specifying the .stp file in the project
settings is not sufficient for getting SignalTap into the build. The
.stp file must be translated into project assignments that get appended
to the .qsf file. This is done by calling 'quartus_stp' with the project
name, revision, the .stp file, and the parameter to enable SignalTap in
the project. Quartus_stp must run successfully before Analysis &
Synthesis.
Also added an exception to let non-Web Editions (e.g. Standard and Pro)
of the Quartus tools to add SignalTap files without enabling TalkBack.
The tune reference MUX select inputs were connected to a version of the
tune mode signal synchronized to the tune_ref clock domain. This was an
oversight that would cause a 2-3 second delay after resetting the
counters when tuning against a 1PPS reference (because the synchronizer
block contains two flops clocked at 1 Hz). This was corrected and the
MUX now uses the system-synchronous tune_mode signal from the control
register in the Avalon-MM interface.
Renamed the tune_mode signals to include the clock domain (prefixed with
tune_ref_*).
Added ability for the Avalon-MM master to read back the control register
contents.
Updated tcxopps.stp SignalTap file with new signal names.
Enable/Disable the TalkBack feature of Quartus based on SignalTap
insertion and if the user really wants to force the script to enable
and disable it at the end of building.
If TalkBack is disabled, and SignalTap is requested to be added to
the project, then the build will now fail instead of warn about
TalkBack not being enabled.
The NIOS II code that handles requests/response from the host
(via the FX3 UART) has been redesigned and rewritten to improve
its readability and extensibility.
Many, many thanks go out to Cameron Karlsson for providing his NIOS II
code re-design and feedback, upon which this effort was based.
These items have become out-of-date with the current design and
no longer build. As such, they have been removed to avoid confusion.
Issue #360 has been opened to track the updating of these. These
items shall be re-added as they are updated.
FPGA build artifacts are now copied to a <rev>x<size>-<timestamp>
directory. The .rbf, SHA256 & MD5 checksums, and reports/summaries are
copied into this directory.
This is intended to help keep files with their associated FPGA images, as
items in work/ are clobbered with each invocation of build_bladerf.sh.
This revision introduces an FPGA-based ATSC transmitter to offload the
pilot insertion, filtering, and shift to baseband.
This design expects that 4-bit ATSC symbols are written to the device in
little-endian 32-bit words, as shown below.
|<------- 32 Bit Word ------->|
Bit |31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|12|11|10|09|08|07|06|05|04|03|02|01|00|
Symbol [ X| 7 ][X| 6 ][X| 5 ][X| 4 ][X| 3 ][X| 2 ][X| 1 ][X| 0 ]
The FPGA transmits Symbol 0 first, and Symbol 7 last. The three
least-significant bits in each symbol's nibble contain values 0 to 7,
mapping to values of -7 to 7, with the most-significant bit left unused.
This FPGA image may be built by specifying the "atsc_tx" image to the
build_bladerf.sh script. The resulting output files will be
atsc_txx40.rbf and atsc_txx115.rbf for the x40 and the x115,
respectively.
Transmitting a pre-made stream on channel 14-1 can be achieved with the
following commands in the bladeRF-cli:
set frequency 473000000
set samplerate 32286713 2867 10000
set txvga1 -4
set txvga2 20
tx config file=<path to file> repeat=0 delay=0
tx start
Bug in Quartus causes the java location to not be well defined when using
the nios2_command_shell in Windows, but works fine in linux.
Problem reported to Altera.
ARST_LVL was inadvertantly changed to be a '0' instead of a '1' during the renaming of oc_i2c_master to bladerf_oc_i2c_master. This is moved back.
Updated to using Quartus II 13.1, and with that discovered that Qsys now outputs '1' or '0' into a Verilog file which should be 1'b0 or 1'b1, so now there is a small sed replacement after generating the Qsys components to handle this problem.
Modified the build system for the FPGA, the following commands should be run
from the Quartus command line shell
$ cd hdl/quartus && mkdir work && cd work
$ quartus_sh -t ../bladerf.tcl && quartus_sh -t build -rev hosted
Should build the USB3.0 bridge FPGA. New architectures are easy to modify
to create new functionality.
- build_bladerf.sh
- bladerf.tcl
Make sure quartus_sh is in your path and run:
$ cd hdl/quartus ; ./build_bladerf.sh
Should generate the appropriate Qsys synthesis files as well
as build the FPGA image.
Current FPGA image fails timing due to clock constraints
feeding into the SignalTap block.