vizpal
Member level 2
![Member level 2](/styles/images/ranks/dlevel2.gif)
I have the following code...
genvar 1;
generate
for (i = 0; i < num_chan; i = i+1)
begin : loop_label
a1 : assert property(p_req_gets_resp(i));
if (i < 5)
c1 : cover property (p_max_latency(i));
end
endgenerate
My Doubt is --> What is the use of generate statement here ??? How does it differ from the for loop???
genvar 1;
generate
for (i = 0; i < num_chan; i = i+1)
begin : loop_label
a1 : assert property(p_req_gets_resp(i));
if (i < 5)
c1 : cover property (p_max_latency(i));
end
endgenerate
My Doubt is --> What is the use of generate statement here ??? How does it differ from the for loop???