Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classify operation output giving incorrect value #62

Open
Agha786 opened this issue Jul 21, 2022 · 0 comments
Open

Classify operation output giving incorrect value #62

Agha786 opened this issue Jul 21, 2022 · 0 comments

Comments

@Agha786
Copy link

Agha786 commented Jul 21, 2022

I am running the CLASSIFY operation on the following configuration:

FEATURES = '{
Width: 64,
EnableVectors: 1'b1,
EnableNanBox: 1'b1,
FpFmtMask: 5'b11111,
IntFmtMask: 4'b1111};

IMPLEMENTATION = '{
PipeRegs: '{default: 0},
UnitTypes: '{'{default: fpnew_pkg::MERGED},
'{default: fpnew_pkg::MERGED},
'{default: fpnew_pkg::PARALLEL},
'{default: fpnew_pkg::MERGED}},
PipeConfig: fpnew_pkg::BEFORE};

I am providing inputs in a two FP32 element format and according to the RISC-V spec a classify instruction is supposed to give a 10-bit mask output therefore in this case I was expecting two 10-bit masks one for each of the input elements however I am getting a strange result value as seen in the image attached.

Classify snip

The inputs I have provided are positive normal numbers therefore I would expect two identical masks with hex values "0x0000004000000040" but the output is "0x0000000000004242".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant