user3409814
user3409814

Reputation: 245

Verilog error for 2d array declaration

Upvotes: 0

Views: 1088

Answers (3)

JYasir
JYasir

Reputation: 43

The given array syntax is supported in SystemVerilog .sv reg [31:0] data [3:0];

Upvotes: -1

venkat pasumarti
venkat pasumarti

Reputation: 128

insert a semicolon after the clkwrite. like this

 reg clkwrite; 
reg [31:0] data [3:0];

and remove the instantiation of submodule inside the always block

Upvotes: 0

Ciano
Ciano

Reputation: 554

Looks like you have a typo. There's a comma after the clkwrite declaration.

Upvotes: 1

Related Questions