Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Confusion about how LZA module works? #12

@qleenju

Description

@qleenju

hello:
I have some questions about how LZA module works? As leading zero anticipator, it serves to predict the leading zero counts of result while adding, so that normalization can be directly implemented after addition is completed.
However, in the module "fmac.sv", the input of LZA is A_LZA_D and B_LZA_D, instead of Csa_sum_D and Csa_carry_D. What's more, the value of A_LZA_D is always consistent with Sum_pos_D, which is the sum of Csa_sum_D and Csa_carry_D, and the value of B_LZA_D is always 0. In this case, the leading zero anticipation can not play a role at all, even though the out of fmac is correct.
I would also like to ask about the exact role of "LZA" module, since I found that it is not always accurate in predicting the leading zero of the sum of two inputs.
Looking forward to your response.
Best wishes!
Qiong Li, a student from Nanjing University.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions