Hi All,
I want to assign a value to some property variables. I want to assign values to variables wdata, wdata_f0, wdata_f1 as per the following:
wdata = DATA,
if (//condition1)
wdata_f0 = DATA
else if (//condition2)
wdata_f1 = DATA
So I tried to replicate the above inside the property as follows:
property data_check (//arguments);
int wdata = 0;
int wdata_f0 = 0;
int wdata_f1 = 0;
@(clk)
(//a sequence),
**wdata = DATA,
wdata_f0 = (//condition) ? DATA : wdata_f0,
wdata_f1 = (//condition) ? DATA : wdata_f1**
)
|->
//property sequences
endproperty
But the assertion fails since the logic is not being replicated properly.