waveform_editor.ids_fill

Helpers for writing values into an IDS at a given DD path.

Filling is two steps: size_arrays() grows every array of structure to the largest size any waveform requires (so a : slice later expands against the final size, and each array is resized once regardless of declaration order), then fill_nodes() writes each waveform's values. The resolver reuses fill_nodes() for structural imports, which size themselves as they copy.

Functions

fill_nodes(node, path, values[, path_index])

Write values at path in node, growing arrays of structure crossed on the way to fit (so it is correct without a prior size_arrays() pass too).

resize_slice(ids_node, slice_)

Resize ids_node to cover slice_ and return its (start, stop).

size_arrays(node, paths, time_len[, path_index])

Resize every array of structure crossed by paths to the size it needs.


Last update: 2026-07-16