Rom inference in Verilog

Status
Not open for further replies.

amolgupta87

Newbie level 4
Joined
Aug 11, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
I have a logic function to implement. It's quite an odd/irregular one and large. I have a truth table to represent it. In order to implement it i would like to have a constant array having. How can I have an array in verilog which also gets synthesized(what construct / keyword). The value of array will not change.

P.S. my synthesis tool is rc from cadence.
 

Am not sure try this
Declare 2d array

assign a[0] = 5'd1;
assign a[1] = 5'd2;

since we are driving the constant, i felt that tool may infer this as ROM.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…