R
RSGUPTA
Guest
Hello,
I wanted to know how to call a function from property:
For Example if i have a function as described below:
// Function to calculate the next address for a burst transfers.
function logic [31:0] next_addr (logic [31:0] burst_addr);
case (HSIZE)
BYTE : return burst_haddr+1;
HALFWORD : return burst_haddr+2;
WORD : return burst_haddr+4;
endcase
endfunction // next_addr
How can call this function in a property?
Else someone can give me a simple example to demonstrate a function
call.
Thanks.
I wanted to know how to call a function from property:
For Example if i have a function as described below:
// Function to calculate the next address for a burst transfers.
function logic [31:0] next_addr (logic [31:0] burst_addr);
case (HSIZE)
BYTE : return burst_haddr+1;
HALFWORD : return burst_haddr+2;
WORD : return burst_haddr+4;
endcase
endfunction // next_addr
How can call this function in a property?
Else someone can give me a simple example to demonstrate a function
call.
Thanks.