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

generate/endgenerate should not be optional in Verilog 2001 #576

Closed
veripoolbot opened this issue Nov 7, 2012 · 1 comment
Closed

generate/endgenerate should not be optional in Verilog 2001 #576

veripoolbot opened this issue Nov 7, 2012 · 1 comment
Labels
area: lint Issue involves SystemVerilog lint checking resolution: wontfix Closed; work won't continue on an issue or pull request

Comments

@veripoolbot
Copy link
Contributor


Author Name: Jeremy Bennett (@jeremybennett)
Original Redmine Issue: 576 from https://www.veripool.org
Original Date: 2012-11-07


@generate@/@endgenerate@ are required in Verilog 2001, but not in 2005. So the following code should generate an error with Verilog 2001.

// This is a Verilog 2005 test (generate/endgenerate omitted).
genvar i;
for (i=0; i<2; i=i+1) begin
always @(posedge clk) begin
res[i:i] <= in;
end
end

However this code compiles with Verilog 2001 set as the language (@--language 1364-2001@).

It's not terribly important. I found it trying to construct a test of new language extension options. Added here for the record.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-11-29T02:40:32Z


Closing due to age; not easy to fix in current parser, and Verilog 2001 is getting pretty old.

@veripoolbot veripoolbot added area: lint Issue involves SystemVerilog lint checking resolution: wontfix Closed; work won't continue on an issue or pull request labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: lint Issue involves SystemVerilog lint checking resolution: wontfix Closed; work won't continue on an issue or pull request
Projects
None yet
Development

No branches or pull requests

1 participant