S
SB
Guest
Hi all,
I am using parameters for the first time in Verilog.
I have two parameters A and B and I want one to be a function of the
other in the following way:
B = log2(A)
ie; I want B to be the logarithm to base 2 of A.
Is there any way I can do this in the Verilog parameter declaraton
list?
Any help would be great.
SB
I am using parameters for the first time in Verilog.
I have two parameters A and B and I want one to be a function of the
other in the following way:
B = log2(A)
ie; I want B to be the logarithm to base 2 of A.
Is there any way I can do this in the Verilog parameter declaraton
list?
Any help would be great.
SB