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

Dictionary #4

Open
JimLewis opened this issue Feb 3, 2021 · 1 comment
Open

Dictionary #4

JimLewis opened this issue Feb 3, 2021 · 1 comment
Assignees
Labels

Comments

@JimLewis
Copy link

JimLewis commented Feb 3, 2021

entry.data.all := data;

The package is instrumented up to support different sized std_logic_vectors.
In Set, when a key is found, it is "assumed" to be the same size as the current value.
Is this an ok assumption? Could the set value be a different size?

@tmeissner
Copy link
Member

tmeissner commented Feb 3, 2021

Uh, it's long time ago, that I wrote this code 😄
Do you mean that the memory, needed for the new value, maybe has to allocated new because the new value has another size?
You're right, the assumption that values are of same size is probably not okay.

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

3 participants