Apr 29, 2014 #1 P phaneendra.raguru Newbie level 1 Joined Apr 29, 2014 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 6 Hi, i need an array of static values such as Code: reg [7:0] s_box [0:3][0:3] = '{'{8'h0,8'h1,8'h2,8'h3}, '{8'h10,8'h11,8'h12,8'h13}, '{8'h20,8'h21,8'h22,8'h23}, '{8'h30,8'h31,8'h32,8'h33}}; It is compiling in System Verilog but not in Verilog. Please suggest me the suitable synthesisable verilog code where i can initialize static values Last edited by a moderator: Apr 29, 2014
Hi, i need an array of static values such as Code: reg [7:0] s_box [0:3][0:3] = '{'{8'h0,8'h1,8'h2,8'h3}, '{8'h10,8'h11,8'h12,8'h13}, '{8'h20,8'h21,8'h22,8'h23}, '{8'h30,8'h31,8'h32,8'h33}}; It is compiling in System Verilog but not in Verilog. Please suggest me the suitable synthesisable verilog code where i can initialize static values
Apr 30, 2014 #2 J jbeniston Advanced Member level 1 Joined May 5, 2005 Messages 460 Helped 106 Reputation 214 Reaction score 73 Trophy points 1,308 Activity points 3,494 Verilog 1995 or 2001? They have different support for multidimensional arrays. You can try to split out the initialisation. wire [] x[]; assign x[0] = ....; assign x[1] = ....;
Verilog 1995 or 2001? They have different support for multidimensional arrays. You can try to split out the initialisation. wire [] x[]; assign x[0] = ....; assign x[1] = ....;