R
romi
Guest
Hi, I'm wondering if the label "label" put on the generate conditional
below is legal (I think it is based on the LRM)? I'm using a mixture
of Cadence and Synopsys tools and they seem to support the label, but
depending on the tool create different names for the hierarchy. I'm
seeing mod_inst0 from some tools and label.mod_inst0 from others. I
think it should be label.mod_inst0, agree?
For other reasons, I need the the hierarchical names to be the same
both with and w/o PARAM set which is why I used the label "label" on
both parts of the conditional.
generate if (PARAM=0) begin:label
some_mod mod_inst0 ();
end else begin:label
some_other_mod mod_inst0 ();
end endgenerate
below is legal (I think it is based on the LRM)? I'm using a mixture
of Cadence and Synopsys tools and they seem to support the label, but
depending on the tool create different names for the hierarchy. I'm
seeing mod_inst0 from some tools and label.mod_inst0 from others. I
think it should be label.mod_inst0, agree?
For other reasons, I need the the hierarchical names to be the same
both with and w/o PARAM set which is why I used the label "label" on
both parts of the conditional.
generate if (PARAM=0) begin:label
some_mod mod_inst0 ();
end else begin:label
some_other_mod mod_inst0 ();
end endgenerate