Contenido principal

export

R2026b

Generate script that recreates the workflow configuration

Description

export(hWC) generates MATLAB® commands that can recreate the current workflow configuration and displays them in the Command Window.

example

export(hWC,Name=Value) generates MATLAB commands that can recreate the current workflow configuration, with additional options specified by one or more Name=Value arguments.

example

Examples

collapse all

  • Create a workflow configuration object and export the configuration commands to the Command Window.

    hWC = hdlcoder.WorkflowConfig(SynthesisTool="Xilinx Vivado",TargetWorkflow="Generic ASIC/FPGA");
    export(hWC);
  • Create a workflow configuration object and export the configuration to a script file.

    hWC = hdlcoder.WorkflowConfig(SynthesisTool="Xilinx Vivado",TargetWorkflow="Generic ASIC/FPGA");
    export(hWC,Filename=fullfile(tempdir,"hdlworkflow.m"),Overwrite=true);

Input Arguments

collapse all

HDL code generation and deployment workflow configuration, specified as an hdlcoder.WorkflowConfig object.

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: Filename="L:\sandbox\work\hdlworkflow.m"

Full path to the exported MATLAB script file, specified as a character vector. If the path is empty, the MATLAB commands are displayed in the Command Window, but not saved in a file.

Example: 'L:\sandbox\work\hdlworkflow.m'

Specify whether to overwrite the existing file as a logical.

Specify whether to include comments in the command list or script as a logical.

Specify whether to include a header in the command list or script as a logical.

Full path to the DUT, specified as a character vector.

Example: 'hdlcoder_led_blinking/led_counter'

Version History

Introduced in R2015b