Main Content

specifyReset

Assign reset ports to cosimulation block or System object

Since R2022b

    Description

    specifyReset(cosimConfigObj,name) explicitly maps the HDL port named name as a reset port in the generated block or system object. The attributes for the reset signal inherit default values from the 'default_reset_definition' row of the ResetPorts table.

    specifyReset(__ ,Name=Value) sets properties using one or more name-value arguments in addition to the input arguments in the previous syntax. Unspecified arguments inherit the value from 'default_reset_definition'.

    To change the default reset attributes, specify values for the 'default_reset_definition'.

    specifyCReset(__ ,name,[]) clears the definition for the reset port (or ports) specified in name. For example: specifyReset(c,'rst1',[]) clears the definition for the reset named rst1 in the ResetPorts table.

    Input Arguments

    collapse all

    Cosimulation configuration, specified as a cosimulationConfiguration object.

    Name of the HDL port to map as a reset port in the generated HDL Cosimulation block or hdlverifier.HDLCosimulation System object™, specified as a string or a character vector. For multiple outputs, specify a cell array of port names.

    Example: name='reset_in'

    Example: name={'rst1','rst2','rst3'}

    Data Types: char | string

    Name-Value Arguments

    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: specifyReset(c,'rst',InitialValue=1,Duration=54); creates a reset signal with an initial value of 1 and duration of 54.

    Initial value of reset signal, specified as 0 or 1.

    Duration of the reset signal, specified as a positive integer of HDLTimeUnit units.

    Version History

    Introduced in R2022b