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

parameters #38

Closed
veripoolbot opened this issue Oct 21, 2008 · 1 comment
Closed

parameters #38

veripoolbot opened this issue Oct 21, 2008 · 1 comment
Assignees
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800

Comments

@veripoolbot
Copy link
Contributor


Author Name: Rafael Shirakawa
Original Redmine Issue: 38 from https://www.veripool.org
Original Date: 2008-10-21
Original Assignee: Wilson Snyder (@wsnyder)


Hi,

Verilator is not able to unroll generators loops like this:

module example;

wire clk;
wire a [9:0];
reg [1:0] b [9:0];
integer j;

generate
     genvar i;
     for (i=0; i<2; i=i+1) begin
         always @(posedge clk) begin
             for (j=0; j<10; j=j+1) begin
                 if (a[j])
                     b[i][j] <= 1'b0;
                 else
                     b[i][j] <= 1'b1;
             end
         end
     end
endgenerate

endmodule


@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2008-10-29T01:38:13Z


I assume you got

%Error: t/t_gen_alw.v:78: V3Task should have removed standard FORs

or similar. There was a simple bug caused with any normal for's under generate for's.

This is fixed in GIT and will be in the next release. Can you give it a try on your larger test? Thanks.

@veripoolbot veripoolbot added resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800 labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800
Projects
None yet
Development

No branches or pull requests

2 participants