You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying the following RTL (a simple memory equivalence with clockgating):
always_ff @(posedge clk_g or posedge rst)
if (rst) begin
for (int i=0;i<16;i++) mem[i] <= 'd0;
out <= 'd0;
end
else if (clk_en) begin
if (wr) mem[addr] <= din;
else if (rd) out <= mem[addr];
end
I get the following error:
SBY 8:48:18 [memory_equiv_async] nomem: memory_equiv_async.sv:77: ERROR: syntax error, unexpected TOK_INT, expecting TOK_ID or ATTR_BEGIN or '{'
Are SV local var "for loops" supported like in the context above, for shorthand async reset of arrays.
The text was updated successfully, but these errors were encountered:
I am trying the following RTL (a simple memory equivalence with clockgating):
always_ff @(posedge clk_g or posedge rst)
if (rst) begin
for (int i=0;i<16;i++) mem[i] <= 'd0;
out <= 'd0;
end
else if (clk_en) begin
if (wr) mem[addr] <= din;
else if (rd) out <= mem[addr];
end
I get the following error:
SBY 8:48:18 [memory_equiv_async] nomem: memory_equiv_async.sv:77: ERROR: syntax error, unexpected TOK_INT, expecting TOK_ID or ATTR_BEGIN or '{'
Are SV local var "for loops" supported like in the context above, for shorthand async reset of arrays.
The text was updated successfully, but these errors were encountered: