s(N,1).*R.*( Cint + Cload );

    <span class="comment">% create timing constraints</span>
    <span class="keyword">for</span> gate = 1:N
      <span class="keyword">if</span> ~ismember( FI{gate}, primary_inputs )
        <span class="keyword">for</span> j = FI{gate}
          <span class="comment">% enforce T_j + D_j &lt;= T_i over all gates j that drive i</span>
          D(gate) + T(j) &lt;= T(gate);
        <span class="keyword">end</span>
      <span class="keyword">else</span>
        <span class="co