m2isar.transforms.merge_always_blocks

Lower always blocks into instruction behavior for legacy backends.

Functions

merge_always_blocks(model_obj)

Prepend each model component's always blocks to all its instructions.

Module Contents

merge_always_blocks(model_obj)[source]

Prepend each model component’s always blocks to all its instructions.

The transform mutates and returns model_obj. It is idempotent: consumed always blocks are removed after lowering.