wireless communications design for asics, fpgas, and socs
deploying algorithmic models to asic, fpga, or soc hardware makes it possible to do over-the-air testing and verification. however, designing wireless communications systems for hardware requires design tradeoffs between hardware resources and throughput. you can speed up hardware design and deployment by using hdl-optimized blocks that have hardware-suitable interfaces and architectures, reference applications that implement portions of the lte, 5g nr, satellite communication, wlan, and custom ofdm-based communications physical layer, and automatic hdl code generation. you can also use hardware support packages to assist with deploying and verifying your design on real hardware.
mathworks® hdl products, such as wireless hdl toolbox™, allow you to start with a mathematical model, such as matlab® code from lte toolbox™, 5g toolbox™, wlan toolbox™, or satellite communications toolbox and design a hardware implementation of that algorithm that is suitable for asics, fpgas, and socs.
from mathematical algorithm to hardware implementation
wireless communications design often starts with algorithm development and testing using matlab functions. matlab code, which usually operates on matrices of floating-point data, is good for developing mathematical algorithms, manipulating large data sets, and visualizing data.
hardware engineers typically receive a mathematical specification from an algorithm team, and reimplement the algorithm for hardware. hardware designs require tradeoffs of resource usage for clock speed and overall throughput. usually this tradeoff means operating on streaming data, and using some logic to control the storage and flow of data. hardware engineers usually work in hardware description languages (hdls), like vhdl and verilog, that provide cycle-based modeling and parallelism.
to bridge this gap between mathematical algorithm and hardware implementation, use the matlab algorithm model as a starting point for hardware implementation. make incremental changes to the design to make it suitable for hardware, and progress towards a simulink® model that you can use to automatically generate hdl code by using hdl coder™.
this diagram shows the design progression from mathematical algorithm in matlab, to hardware-compatible implementation in simulink, and then the generated vhdl code.
while both matlab and simulink support automatic generation of hdl code, you must construct your design with hardware requirements in mind, and simulink is better-suited for cycle-based modeling for hardware. it can represent parallel data paths and streaming data with control signals to manage the timing of the data stream. to aid in fixed-point type choices, it clearly visualizes data type propagation in the design. it also allows for easy pipelining of mathematical operations to improve maximum clock frequency in hardware.
while you create your hardware-ready design, use the matlab algorithm as a "golden reference" to verify that each version of the design still meets the mathematical requirements. the workflow shown in the diagram uses matlab and simulink as collaboration and communication tools between the algorithm and hardware design teams.
for instance, when designing for lte, 5g, wlan, and satellite communication wireless standards, you can use lte toolbox, 5g toolbox, wlan toolbox, and satellite communications toolbox functions to create a golden reference in matlab. then transition to simulink and create a hardware-compatible implementation by using library blocks from wireless hdl toolbox and dsp hdl toolbox™ that support hdl code generation. you can reuse test and data generation infrastructure from matlab by importing data from matlab to your simulink model and returning the output of the model to matlab to verify it against the "golden reference".
hdl-optimized blocks
library blocks from wireless hdl toolbox implement encoders, decoders, modulators, demodulators, and sequence generators for use in an lte, 5g, wlan, satellite communications, or custom ofdm-based wireless communications system. these blocks use a standard streaming data interface for hardware. this interface makes it easy to connect parts of the algorithm together, and includes control signals that manage the flow of data and mark frame boundaries. these blocks support automatic hdl code generation with hdl coder. you can also use blocks from dsp hdl toolbox that support hdl code generation.
the blocks provide hardware-suitable architectures that optimize resource use, such as including adder and multiplier pipelining to fit well into fpga dsp slices. they also support automatic and configurable fixed-point data types. using predefined blocks also allows you to try different parameter configurations without changing the rest of the design.
for lists of blocks that support hdl code generation, see (wireless hdl toolbox) and (dsp hdl toolbox).
reference applications
wireless hdl toolbox provides reference applications that contain hardware-ready implementations of large parts of the lte, 5g nr, satellite, wlan, and custom ofdm-based communications physical layer. the subsystems in these reference applications have also been tested on hardware boards. these designs are verified against the "golden reference" functions provided by lte toolbox, 5g toolbox, wlan toolbox, or satellite communications toolbox. they are designed to be modular, scalable, and extensible so you can insert additional physical channels.
these reference applications can be used as-is to deliver packet information to your unique application and to generate synthesizable vhdl or verilog with hdl coder. they also serve as examples to illustrate recommended practices for implementing communications algorithms on fpga or asic hardware.
generate hdl code and prototype on fpga
wireless hdl toolbox provides blocks that support hdl code generation. to generate hdl code from designs that use these blocks, you must have an hdl coder license. hdl coder produces device-independent code with signal names that correspond to the simulink model. hdl coder also provides a tool to drive the fpga synthesis and targeting process, and enables you to generate scripts and test benches for use with third-party hdl simulators.
to assist with the setup and targeting of programmable logic on a prototype board, and to verify your wireless communications system design on hardware, download required hardware support packages communications toolbox™ support package for xilinx® zynq®-based radio or soc blockset™ support package for xilinx devices.
external websites
related topics
- (wireless hdl toolbox)