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

Checking validity of data when reading from scratch-pad #8

Open
mohsen-mohammadi opened this issue Nov 14, 2018 · 0 comments
Open

Checking validity of data when reading from scratch-pad #8

mohsen-mohammadi opened this issue Nov 14, 2018 · 0 comments

Comments

@mohsen-mohammadi
Copy link

When reading from the scratch-pad, the valid bit is apparently checked, however, it doesn't matter if the valid bit is set or not, the same thing happens and the data is actually read from the scratch-pad.

I'd appreciate if you could please elaborate on this.

if(!(s->valid[address + i]))
{
buf[i] = s->data[address+i];
}
else
buf[i] = s->data[address + i];

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