-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fixes bug in verilog name generation logic #1016
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. So I need to use serializeToFile
to dump the generator information?
->getMetaData()["verilog"]; | ||
module_name = make_name(instance_module->getName(), verilog_json); | ||
} | ||
if (instance_module->isGenerated() && instance_module->getGenerator()->getMetaData().count("verilog") > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After testing with clockwork, I need to change this line of code into
if (instance_module->isGenerated() && instance_module->getMetaData().count("verilog") > 0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rdaly525 I think this means you need to check two separate cases here:
- the instance_module has
"verilog"
metadata - the instance_module->getGenerator() has
"verilog"
metadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks fine, but I think there's one extra case needed for Joey's use case
->getMetaData()["verilog"]; | ||
module_name = make_name(instance_module->getName(), verilog_json); | ||
} | ||
if (instance_module->isGenerated() && instance_module->getGenerator()->getMetaData().count("verilog") > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rdaly525 I think this means you need to check two separate cases here:
- the instance_module has
"verilog"
metadata - the instance_module->getGenerator() has
"verilog"
metadata
Fixes #941