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
Question: generate statement for instances -> supported? #1078
Comments
Original Redmine Comment Supported in what sense? They should indent properly. They AUTO as if not in a generate which should be sufficient. |
Original Redmine Comment Will AUTO_TEMPLATE work as well? |
Original Redmine Comment Try it. Please generally experiment first, then post if you are stuck. |
Original Redmine Comment Here is an example:
As you could see, the instance name contains a number (7980), which was interpreted as an instance number (not a part of the instance name). So, how to handle the situation where a number is a part of the instance and should not be interpenetrated by AUTOs as an instance number? |
Original Redmine Comment You didn't say why this is in any way unexpected. I hypothesize you expected 1..31 for the at sign? As documented the at sign is from the instance name. It would be impossible to expand generates as they are not known until elaboration time. If you have a simply 32 instances, an alternative is just put down 32 cells manually and let the auto expansion uniquely hook them up. |
Original Redmine Comment "As documented the at sign is from the instance name" - where is it documented/described? Is in the LISP language? Is there a short manual/user guide of LISP language for Emacs Verilog-Mode users? Thank you |
Original Redmine Comment In a Verilog-mode buffer, see the Help menu Verilog topic. Or read the documentation tab on this site. http://www.veripool.org/projects/verilog-mode/wiki/Documentation |
Author Name: John John John
Original Redmine Message: 1964 from https://www.veripool.org
Hello,
Does the Emacs Verilog-Mode support the "generate" statement for instances?
For Example:
genvar i;
for (i = 0; i < 5; i++)
begin
module_name instance_name(
.a (...)
.b (...)
);
end
If it's supported, could you please provide a code example?
Thank you
The text was updated successfully, but these errors were encountered: