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

Add interface for fp16 mul #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

IanBoyanZhang
Copy link
Owner

@IanBoyanZhang IanBoyanZhang commented Aug 9, 2022

Attempt to test and harden fp16 mul input/output

Signed-off-by: ianboyanzhang

End-to-End sim

Signed-off-by: ianboyanzhang <[email protected]>
while (1){
if (reg_la0_data_in >= 0x05) {
// 1.126105 * 0.407351 >= 0.45
if ((reg_la0_data_in & 0x0000FFFF) >= 0x00003733) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change the comparison value to 0x3785 (0.47 in fp16). The test would fail. This is expected result.

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

Successfully merging this pull request may close these issues.

2 participants