Main Content

DUC and DDC System Objects

You can generate HDL code for Digital Up Converter (DUC) and Digital Down Converter (DDC) System objects. This capability is limited to code generation at the command line only.

When calling generatehdl for a System object™, you must specify the data type of the input signal. Set the InputDataType property to a numerictype object.

hDDC = dsp.DigitalDownConverter('Oscillator','NCO')

The software generates a data valid signal at the top DDC or DUC level:

  • For DDC, the signal is named ce_out. Filter Design HDL Coder™ software ties that signal to the corresponding ce_out signal from the decimating filtering cascade.

  • For DUC, the signal is named ce_out_valid. The coder software ties that signal to the corresponding ce_out_valid signal from the interpolating filtering cascade.


You cannot set the input and output port names. These ports have the default names of ddc_in and ddc_out. The coder inserts registers on input and output signals. If you attempt to turn them off, the coder returns a warning.

You can implement filtering stages in DDC and DUC with the default fully parallel architecture only. For these objects, the coder software does not support optimization and architecture-specific properties such as: