mc_navman
Member level 1
- Joined
- Aug 27, 2003
- Messages
- 35
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- New Zealand
- Activity points
- 479
clog2 clogb2
Hi,
I want to set arraysize based on the max value to be represented. Is this possible in verilog?
i.e.
parameter CLK_DIV = 27210;
reg [14..0]CLK_DIV_REG; //<<-- how do I set this array size automatically for when I change the parameter.
Hi,
I want to set arraysize based on the max value to be represented. Is this possible in verilog?
i.e.
parameter CLK_DIV = 27210;
reg [14..0]CLK_DIV_REG; //<<-- how do I set this array size automatically for when I change the parameter.