Skip to content

[Question] cic_int module's state register initialization is non-portable and non-resettable. #1787

Description

@QinlinChen

In the cic_int module (library/util_cic/cic_int.v), the state register's initial value depends entirely on its declaration assignment: reg [DATA_WIDTH-1:0] state = 'h00.

While this may work in FPGA implementations, it is non-portable (relies on vendor-specific initialization behavior) and non-resettable (lacks a proper reset mechanism)

Is this an intentional design choice or an oversight? If the latter, I recommend adding a reset to ensure predictable initialization and improve library reusability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions