main content

dpi generation for simulink subsystem -凯发k8网页登录

generate systemverilog dpi component from simulink® subsystem

you can use a dpi component generated from a simulink subsystem in two ways :

  • export systemverilog dpi component — you can integrate this component into your hdl simulation as a behavioral model. the component generator supports test points and tunable parameters. you can also generate a systemverilog test bench that verifies the generated dpi component against data vectors from your subsystem. see generate systemverilog dpi component.

  • generate systemverilog dpi test bench (with hdl coder™) — use this test bench to verify your generated hdl code using c code generated from your entire simulink model, including the dut and data sources. see (hdl coder).

see . you must have a simulink coder™ license to use this feature.

apps

generate systemverilog dpi component from a simulink subsystem

blocks

generate systemverilog assertions from simulink assertion

topics

generate and verify a dpi component


  • if you have a simulink coder license, you can generate systemverilog dpi components using one of two methods.

  • choose between the two types of svdpi test benches.
  • generate systemverilog dpi component
    generate a dpi component from simulink, and explore various configuration parameters.

  • how to export the generated dpi component to a systemverilog environment.

  • start modelsim® or questa® in gui mode.

  • generate systemverilog assertions from your simulink environment.

advanced dpi options


  • generate a dpi component for an operating system different from your matlab® host machine.

  • describes how to customize the generated systemverilog code.

  • generate a dpi component that provides tunable access to a parameter.

  • you can designate internal signals in your model as test points and configure the systemverilog dpi generator to create one or more access functions.

  • generate systemverilog immediate assertions from verify statements and model verification blocks, and collect functional coverage information (requires simulink test™ license).

verify generated hdl code with systemverilog dpi test bench (requires hdl coder license)

  • (hdl coder)
    this example shows how to use systemverilog dpi test bench for verification of hdl code where a large data set is required.
  • (hdl coder)
    generate test bench and code coverage for generated hdl code using the hdl workflow advisor.
网站地图