OpenCores
Issue List
Wrong Branch-Conditions #7
Closed stony opened this issue over 14 years ago
stony commented over 14 years ago

Hi!

We have encountered a problem with the branch-conditions. A BGT takes the branch even if the operand is zero. We looked into "execute.vhd" and hopefully fixed it:

Lines 205f should be altered to this: WHEN BGT => v.branch := NOT dat_a(CFG_DMEM_WIDTH - 1) AND NOT zero; WHEN BGE => v.branch := NOT dat_a(CFG_DMEM_WIDTH - 1);

Obviously you handled the ZERO in the BG-branches like in the BL-branches, which is lightly wrong ;)

Greetings

takar commented over 14 years ago

You are very right! Thanks for noting and adding it to the bugtracker. I have just committed several updates.

takar closed this over 14 years ago

Assignee
No one
Labels
Bug