Skip to content

Rules conflict with nested constant declaration #1502

@psi-chuffine

Description

@psi-chuffine

Using this snippet, constant_400 and constant_016 conflict

    constant c_reg_desc : t_reg_descriptor_array(c_reg_count - 1 downto 0) :=
    (
        c_core_id_and_rev_reg_idx => (
                                         addr_offset => c_core_id_and_rev_reg_idx * 4,
                                         size_words  => 1,
                                         writable    => false,
                                         readable    => true,
                                         reset_val   => (others => '0')
                                     ),
        c_control_reg_idx         => (
                                         addr_offset => c_control_reg_idx * 4,
                                         size_words  => 1,
                                         writable    => true,
                                         readable    => true,
                                         reset_val   => (others => '0')
                                     )
    );

constant_016 configured as such

  constant_016:
    first_paren_new_line : 'yes'
    last_paren_new_line : 'yes'
    assign_on_single_line: 'ignore'
    open_paren_new_line: 'yes'
    close_paren_new_line: 'yes'

constant_400 wants the first layer element to align with the second layer, but then constant_016 shifts it in further.
Running --fix will result in the second layer shifting right every cycle with constant_400 errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions