Skip to content

Add interface for fp16 mul - #2

Open
IanBoyanZhang wants to merge 1 commit into
mainfrom
fp16_test_hardening
Open

Add interface for fp16 mul#2
IanBoyanZhang wants to merge 1 commit into
mainfrom
fp16_test_hardening

Conversation

@IanBoyanZhang

@IanBoyanZhang IanBoyanZhang commented Aug 9, 2022

Copy link
Copy Markdown
Owner

Attempt to test and harden fp16 mul input/output

Signed-off-by: ianboyanzhang

End-to-End sim

Signed-off-by: ianboyanzhang <SillyKnight1986@gmail.com>
while (1){
if (reg_la0_data_in >= 0x05) {
// 1.126105 * 0.407351 >= 0.45
if ((reg_la0_data_in & 0x0000FFFF) >= 0x00003733) {

Copy link
Copy Markdown
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