title: VHDL - Conditional attribute declaration depending on a generic
body: <p>How do I write a code segment which would evaluate a generic and create (or not create) an attribute accordingly?</p>
  
  <p>Example :</p>
  
  <pre><code>if G_MY_GENERIC then
      attribute my_attribute_typ : string;
      attribute my_attribute_typ of signal_having_an_attr : signal is "value";
  else
      --nothing is created
  end if;
  </code></pre>