FPGA Design and Codesign
MATLAB® and Simulink® enable hardware-software codesign by providing C/C++ and HDL code generation. These tools offer flexibility in targeting a variety of FPGA prototyping boards from Xilinx® and Altera® as well as xPC Target™ Turnkey real-time machines while accelerating functional verification of hardware-software codesigns.
With Simulink, you create a system design, including component models that describe the software and hardware subsystems. You can explore design alternatives, create detailed representations, and verify elaborated models. For example, you can discretize a continuous-time model and convert floating-point math operations to fixed-point math operations for hardware implementation.
You can use Fixed-Point Designer™ to help automate the conversion and compare functional results with the original model. When you achieve acceptable results, you generate C/C++ and HDL code for your hardware-software codesign implementation targeting SoC FPGA devices such as Xilinx® Zynq®.
With Embedded Coder®, you generate C/C++ for your software model and use HDL Coder™ to generate Verilog and VHDL for your hardware model. Using optimizations provided with the coders, you customize generated code for your target MCU, DSP, or FPGA device. For example, you can use resource sharing and distributed pipelining from HDL Coder to improve the efficiency of your FPGA implementation. Similarly, you can use configuration options and processor-specific optimizations provided with Embedded Coder to improve MCU and DSP execution performance. Finally, you integrate generated C/C++ and HDL code into your hardware-software codesign implementation using your existing procedures.
HDL Coder Overview 1:55
You prototype your hardware-software codesign application on xPC target. Using xPC Target with Simulink Coder™ and HDL Coder, you can automatically generate C/C++ and HDL code to create an xPC Target application. Using Simulink Coder, you generate and compile C/C++ code for your software subsystem.
With an Ethernet connection from the host computer to the target computer, you then download the target application. To optimize performance, you can also use Embedded Coder for this step.
Using HDL Coder, you program FPGA boards within xPC Target Turnkey systems. You build reconfigurable I/O or execute high-speed algorithms on an FPGA board connected to a hardware model running in real time with xPC Target. To automate hardware implementation, HDL Coder provides HDL Workflow Advisor.
After downloading code generated from your software and hardware models, xPC Target automates the integration of your hardware-software codesign implementation. You can immediately perform your real-time testing and experimentation with the connected I/O.
Real-Time Testing with FPGAs (Webinar)
FPGA Design for Altera DevicesWebinar anzeigen