Products & Services Solutions Academia Support User Community Company

HDL Coder Pane: General

HDL Coder Top-Level Pane Overview

The top-level HDL Coder pane contains buttons that initiate code generation and compatibility checking, and sets parameters that affect overall operation of code generation.

Buttons in the HDL Coder Top-Level Pane

The buttons in the HDL Coder pane perform important functions related to code generation and control file linkage and maintenance. These buttons are:

Generate: Initiates code generation for the system selected in the Generate HDL for menu. See also makehdl.
Run Compatibility Checker: Invokes the compatibility checker to examine the system selected in the Generate HDL for menu for any compatibility problems. See also checkhdl.
Browse: Lets you navigate to and select the target directory to which generated code and script files are written. The path to the target directory is entered into the Target directory field.
Load: Opens a standard file selection dialog box so that you can navigate to and select a control file and load it into memory. See also Using Control Files in the Code Generation Process.
Save: Opens a standard file save dialog box so that you can save current HDL code generation settings to a specified control file. See also Using Control Files in the Code Generation Process
Restore Factory Defaults: Clears the File Name field and unlinks the current control file from the model. See also Using Control Files in the Code Generation Process.

File name

Displays the file name of the currently selected control file (if any). This is a display-only field.

Settings

Default: No control file name displayed.

Command-Line Information

Property: HDLControlFiles
Type: string
Value: Pass in a cell array containing a string that specifies a control file to be attached to the current model.
Default: No control file is specified.

See Also

Using Control Files in the Code Generation Process

Generate HDL for

Select the subsystem or model from which code is generated. The list includes the path to the root model and to all root-level subsystems in the model.

Settings

Default: The root model is selected.

Command-Line Information

Pass in the path to the model or subsystem for which code is to be generated as the first argument to makehdl.

See Also

makehdl

Language

Select the language (VHDL or Verilog) in which code is generated. The selected language is referred to as the target language.

Settings

Default: VHDL

VHDL

Generate VHDL code.

Verilog

Generate Verilog code.

Command-Line Information

Property: TargetLanguage
Type: string
Value: 'VHDL' | 'Verilog'
Default: 'VHDL'

See Also

Directory

Enter a path to the directory into which code is generated. Alternatively, click Browse to navigate to and select a directory. The selected directory is referred to as the target directory.

Settings

Default: The default target directory is a subdirectory of your working directory, named hdlsrc.

Command-Line Information

Property: TargetDirectory
Type: string
Value: A valid path to your target directory
Default: 'hdlsrc'

See Also

Code Generation Output

This option button group contains options related to the creation and display of generated models. Click the desired button to select an option.

Settings

Default: Generate HDL code

Command-Line Information

Property: CodeGenerationOutput
Type: string
Value: 'GenerateHDLCode' | 'GenerateHDLCodeAndDisplayGeneratedModel' | 'DisplayGeneratedModelOnly'
Default: 'GenerateHDLCode'

See Also

Defaults and Options for Generated Models

Generate traceability report

Enable or disable generation of an HTML code generation report with hyperlinks from code to model and model to code.

Settings

Default: Off

On

Create and display an HTML code generation report. See Creating and Using a Code Generation Report.

Off

Do not create an HTML code generation report.

Command-Line Information

Property: Traceability
Type: string
Value: 'on' | 'off'
Default: 'off'

See Also

Traceability

Include requirements in block comments

Enable or disable generation of requirements comments as comments in code or code generation reports

Settings

Default: On

On

If the model contains requirements comments, include them as comments in code or code generation reports.See Requirements Comments and Hyperlinks.

Off

Do not include requirements as comments in code or code generation reports.

Command-Line Information

Property: RequirementComments
Type: string
Value: 'on' | 'off'
Default: 'on'

See Also

RequirementComments

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS