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

[SEQ] Misbehaviour of ADDI instructions after mysterious BEQ #13

Open
parastuffs opened this issue Feb 15, 2021 · 0 comments
Open

[SEQ] Misbehaviour of ADDI instructions after mysterious BEQ #13

parastuffs opened this issue Feb 15, 2021 · 0 comments
Labels

Comments

@parastuffs
Copy link
Collaborator

In the following code snippet: Q9.txt, the ADDI instructions behave weirdly after the simulator went over the BEQ 0, 7, rst line.
Weirdly in the sense that the immediate is wrongly sent to the ALU, even though the instruction is correctly decoded.
It might be because the incriminated BEQ line does not correctly disable some multiplexers after executing, resulting in incorrect signals being sent to the ALU for ADDI instructions.
Adding a NOP after the faulty line solves the problem (but not the code, it's a non-working WIP), maybe the jump communicated to BEQ was too close for some reason.

@parastuffs parastuffs added the bug label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant