IMPORTANT NOTICE: Please be advised that the Verification Academy Forums will be offline for scheduled maintenance on Sunday, April 6th at 2:00 US/Pacific.
I want to control our channel timing during data transfer with assertion and also i create a assertion with genvar up to channel number.
proerty ch_timing(param1,param2,param3);
@(posedge clk)
.... condition.....
endpropery
generate
for(genvar i = 0; i<ch_number; i++) begin: gen_label_name
label_name: assert_property(ch_timing(...));
end
endgenerate
in the above code, when i look at the assertion, assertion seems to be “…/gen_label_name[0/1/2]/label_name”.
i want to see label_name such as gen_label_name[0/1/2**].
when i try to add this assertion to test plan, each of them seems to be same, how can i identify which one channel_1.
In your example i reach this string “assert__asert_name” for all assertion.
In reply to asvn:
That’s a tool dependent thing. gen_blok[i].asssertion_label // i==1, 2, 3, …
Ben
Is there are any solution to identify which one is channel_1, because when i try to add assertions to test plan, i only reach same assertion name for all assertions.
In reply to asvn:
With the tool I am using I see the path.assertion_label For example,
/top/genblk[0]/my_assertion_label
/top/genblk[1]/my_assertion_label
/top/genblk[7]/my_assertion_label
Why can’t your testplan use the [i] and make more generic; after all, it’s English
Ben