Alternative of “can not set both range and type on function declaration” in verilog?

Status
Not open for further replies.
D

daskk62

Guest
I am writing a verilog code for calculation of variance, in my verilog code I am calling a definition file, the definition file is as follows
but in the line function reg [MAXIMUM_FUNC_WIDTH-1:0] pow(input integer base, input integer index); it is showing error like can not set both range and type on function declaration. In think this is related to system verilog. But how can I use the same line for verilog only. What will be the modefication?
 

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