Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Synthesisable Array initialization of static values in Verilog

Status
Not open for further replies.

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:

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] = ....;
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top