Chapter 3
Reusing Reference Models in Design Verification
Use HDL Cosimulation to Verify RTL Implementation
Once the MATLAB or Simulink reference model has been completed, hardware designers write or generate RTL to implement the reference model.
HDL cosimulation lets you simulate the RTL back-to-back with the reference model so you can automatically compare results. Portions of the design coded in Verilog® or VHDL® are simulated using HDL simulators from Siemens EDA or Cadence®, with the balance of the design simulated in MATLAB or Simulink.
HDL cosimulation serves as a powerful tool during RTL development since you can use the HDL simulator’s debug environment to identify issues. HDL cosimulation can also be used to assess Verilog or VHDL code coverage, helping you measure your progress toward verification.
Generate SystemVerilog Testbench Components from MATLAB or Simulink
You can connect algorithm development to existing verification environments from MATLAB or Simulink.
With direct programming interface (DPI) generation, you specify a MATLAB function or Simulink model as a source, typically for the stimulus or checker of the testbench. You can then generate C code from the source along with a SystemVerilog wrapper that interfaces to simulators from Siemens EDA, Cadence, Synopsys, and AMD through the DPI.
Automatic generation of SystemVerilog testbenches reduces the time that verification engineers spend developing unit tests in SystemVerilog and allows any changes to MATLAB or Simulink golden reference models to be quickly incorporated into RTL testbenches.
Generate UVM Environments from Simulink Models
Adopting the Universal Verification Methodology (UVM) can be challenging and time consuming. With the uvmbuild
function, you can generate complete UVM environments directly from reference models in Simulink, speeding your adoption of UVM.
Through the use of parameterized testbenches, you can generate testbenches that implement constrained-random verification using HDL simulators including Cadence Xcelium™, Synopsys® VCS®, Siemens® Questa®, and the AMD® Vivado® simulator.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)