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

tc_sram: Remove 'X initialization for SimInit = "none" #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

micprog
Copy link
Member

@micprog micprog commented Jan 18, 2022

This removes any form of initialization for the sram simulation in case the default "none" is set for SimInit. This allows for memory initialization from a tb by hierarchically accessing the module in an initial block, as is done in HERO, see also pulp-platform/hero@c88efca. In case this is not done, the default behavior should not change drastically, as the initial value will still be 'X, however will not be reset on rst_ni. If the current behavior is desired, a value other than "none", "zeros", "ones", or "random" should be set for SimInit.

@meggiman
Copy link
Contributor

It looks to me like this PR is implementing the same behavior as #23. However, having the if condition within the always_ff block makes the tc_sram no longer synthesizable nor verilatable. Right?

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