shparekh
Newbie
- Joined
- Mar 5, 2013
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,303
Hi,
I have a following statement in my code -
The psuedo code to assign MAX_SLITE_GRP1 is
SLITE_NUM is a parameter which can be overridden at the time instantiating the block.
Can you please suggest how I can write this in system verilog?
Thanks.
Best regards,
SP
I have a following statement in my code -
Code:
genvar sliteIfIter_grp1
generate for ( sliteIfIter_grp1=0;
sliteIfIter_grp1<MAX_SLITE_GRP1;
sliteIfIter_grp1+=1)
The psuedo code to assign MAX_SLITE_GRP1 is
Code:
if (SLITE_NUM > 4)
localparam MAX_SLITE_GRP1 = 4
else
localparam MAX_SLITE_GRP1 = SLITE_NUM
SLITE_NUM is a parameter which can be overridden at the time instantiating the block.
Can you please suggest how I can write this in system verilog?
Thanks.
Best regards,
SP