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

Supporting external writes to registers #1875

Closed
wants to merge 1 commit into from
Closed

Supporting external writes to registers #1875

wants to merge 1 commit into from

Conversation

rachitnigam
Copy link
Contributor

Support adding @external to std_reg. However, I'm holding off the merge because it requires changing what register's encoding looks like which might make synthesis tools freak out. @andrewb1999 thoughts on this new encoding of registers?

Without this, $readmemh and $writememh do not actually work since they expect memories.

@andrewb1999
Copy link
Collaborator

This looks like it will work fine. I don't think there will be any difference after synthesis because essentially all you're doing is making the register explicit instead of using the system verilog feature that allows output logics to be promoted to registers.

@sampsyo
Copy link
Contributor

sampsyo commented Jan 28, 2024

Agreed; this hopefully should not affect what synthesis tools do. I guess I have learned never to trust synthesis tools to do anything, however, so it would of course be even nicer to check and see what Vivado does, for example… but that seems like a hassle and probably unnecessary here.

It might be nice to have a small test that uses an @external std_reg?

@andrewb1999
Copy link
Collaborator

Can we take another look at this soon? Would be a useful feature to have.

@rachitnigam
Copy link
Contributor Author

Yeah, something is borked with the CI that needs to be fixed...

Copy link
Contributor

This pull request has been marked as stale due to inactivity.

Copy link
Contributor

This stale PR is being closed because it has not seen any activity in 7 days. If you're planning to continue work on it, please reopen it and mention how to make progress on it.

@github-actions github-actions bot closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants