Skip to content

Commit

Permalink
Deploying to gh-pages from @ ad33d0f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
qpavsmi committed Jun 10, 2024
1 parent 590fb6d commit 7d8166e
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 69 deletions.
12 changes: 8 additions & 4 deletions _modules/kqcircuits/chips/chip.html
Original file line number Diff line number Diff line change
Expand Up @@ -943,14 +943,13 @@ <h1>Source code for kqcircuits.chips.chip</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">kqcircuits.test_structures.stripes_test</span> <span class="kn">import</span> <span class="n">StripesTest</span>
<span class="kn">from</span> <span class="nn">kqcircuits.util.groundgrid</span> <span class="kn">import</span> <span class="n">make_grid</span>
<span class="kn">from</span> <span class="nn">kqcircuits.elements.tsvs.tsv</span> <span class="kn">import</span> <span class="n">Tsv</span>
<span class="kn">from</span> <span class="nn">kqcircuits.elements.flip_chip_connectors.flip_chip_connector_dc</span> <span class="kn">import</span> <span class="n">FlipChipConnectorDc</span>
<span class="kn">from</span> <span class="nn">kqcircuits.elements.flip_chip_connectors.flip_chip_connector_rf</span> <span class="kn">import</span> <span class="n">FlipChipConnectorRf</span>
<span class="kn">from</span> <span class="nn">kqcircuits.elements.flip_chip_connectors.flip_chip_connector</span> <span class="kn">import</span> <span class="n">FlipChipConnector</span>


<div class="viewcode-block" id="Chip">
<a class="viewcode-back" href="../../../api/kqcircuits.chips.chip.html#kqcircuits.chips.chip.Chip">[docs]</a>
<span class="nd">@add_parameters_from</span><span class="p">(</span><span class="n">Tsv</span><span class="p">,</span> <span class="s2">&quot;tsv_type&quot;</span><span class="p">)</span>
<span class="nd">@add_parameters_from</span><span class="p">(</span><span class="n">FlipChipConnectorRf</span><span class="p">,</span> <span class="s2">&quot;connector_type&quot;</span><span class="p">)</span>
<span class="nd">@add_parameters_from</span><span class="p">(</span><span class="n">FlipChipConnector</span><span class="p">,</span> <span class="s2">&quot;bump_type&quot;</span><span class="p">)</span>
<span class="nd">@add_parameter</span><span class="p">(</span><span class="n">ChipFrame</span><span class="p">,</span> <span class="s2">&quot;box&quot;</span><span class="p">,</span> <span class="n">hidden</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="nd">@add_parameters_from</span><span class="p">(</span>
<span class="n">ChipFrame</span><span class="p">,</span>
Expand Down Expand Up @@ -1359,6 +1358,11 @@ <h1>Source code for kqcircuits.chips.chip</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">make_grid_locations</span><span class="p">(</span><span class="n">bump_box</span><span class="p">,</span> <span class="n">delta_x</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">bump_grid_spacing</span><span class="p">,</span> <span class="n">delta_y</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">bump_grid_spacing</span><span class="p">)</span></div>


<span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">_get_ground_bump_element</span><span class="p">(</span><span class="bp">cls</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return the element which will be used for the ground bumps&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">FlipChipConnector</span>

<span class="k">def</span> <span class="nf">_produce_ground_bumps</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">faces</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">]):</span> <span class="c1"># pylint: disable=dangerous-default-value</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Produces a grid of indium bumps between given faces.</span>

Expand All @@ -1373,7 +1377,7 @@ <h1>Source code for kqcircuits.chips.chip</h1><div class="highlight"><pre>
<span class="n">existing_bump_count</span> <span class="o">=</span> <span class="n">existing_bump_region</span><span class="o">.</span><span class="n">merged</span><span class="p">()</span><span class="o">.</span><span class="n">count</span><span class="p">()</span>

<span class="c1"># Specify bump element, filter regions, and locations</span>
<span class="n">bump</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">add_element</span><span class="p">(</span><span class="n">FlipChipConnectorDc</span><span class="p">,</span> <span class="n">face_ids</span><span class="o">=</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">face_ids</span><span class="p">[</span><span class="n">face</span><span class="p">]</span> <span class="k">for</span> <span class="n">face</span> <span class="ow">in</span> <span class="n">faces</span><span class="p">])</span>
<span class="n">bump</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">add_element</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_get_ground_bump_element</span><span class="p">(),</span> <span class="n">face_ids</span><span class="o">=</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">face_ids</span><span class="p">[</span><span class="n">face</span><span class="p">]</span> <span class="k">for</span> <span class="n">face</span> <span class="ow">in</span> <span class="n">faces</span><span class="p">])</span>
<span class="n">shape_layers</span> <span class="o">=</span> <span class="p">[(</span><span class="s2">&quot;underbump_metallization&quot;</span><span class="p">,</span> <span class="n">face</span><span class="p">)</span> <span class="k">for</span> <span class="n">face</span> <span class="ow">in</span> <span class="n">faces</span><span class="p">]</span>
<span class="n">filter_regions</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_filter_regions</span><span class="p">(</span>
<span class="p">[(</span><span class="s2">&quot;ground_grid_avoidance&quot;</span><span class="p">,</span> <span class="n">face</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span> <span class="k">for</span> <span class="n">face</span> <span class="ow">in</span> <span class="n">faces</span><span class="p">]</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,9 @@ <h1>Source code for kqcircuits.elements.flip_chip_connectors.flip_chip_connector
<span class="c1"># and organizations (meetiqm.com/iqm-organization-contributor-license-agreement).</span>

<span class="kn">from</span> <span class="nn">kqcircuits.elements.element</span> <span class="kn">import</span> <span class="n">Element</span>
<span class="kn">from</span> <span class="nn">kqcircuits.util.geometry_helper</span> <span class="kn">import</span> <span class="n">circle_polygon</span>
<span class="kn">from</span> <span class="nn">kqcircuits.util.parameters</span> <span class="kn">import</span> <span class="n">Param</span><span class="p">,</span> <span class="n">pdt</span>
<span class="kn">from</span> <span class="nn">kqcircuits.defaults</span> <span class="kn">import</span> <span class="n">default_bump_parameters</span>
<span class="kn">from</span> <span class="nn">kqcircuits.defaults</span> <span class="kn">import</span> <span class="n">default_bump_type</span><span class="p">,</span> <span class="n">default_bump_parameters</span>
<span class="kn">from</span> <span class="nn">kqcircuits.elements.flip_chip_connectors</span> <span class="kn">import</span> <span class="n">connector_type_choices</span>


<div class="viewcode-block" id="FlipChipConnector">
Expand All @@ -934,25 +934,19 @@ <h1>Source code for kqcircuits.elements.flip_chip_connectors.flip_chip_connector
<span class="sd"> Origin is at the geometric center.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">default_type</span> <span class="o">=</span> <span class="n">default_bump_type</span>
<span class="n">ubm_diameter</span> <span class="o">=</span> <span class="n">Param</span><span class="p">(</span>
<span class="n">pdt</span><span class="o">.</span><span class="n">TypeDouble</span><span class="p">,</span> <span class="s2">&quot;Under-bump metalization diameter&quot;</span><span class="p">,</span> <span class="n">default_bump_parameters</span><span class="p">[</span><span class="s2">&quot;under_bump_diameter&quot;</span><span class="p">],</span> <span class="n">unit</span><span class="o">=</span><span class="s2">&quot;μm&quot;</span>
<span class="p">)</span>
<span class="n">bump_diameter</span> <span class="o">=</span> <span class="n">Param</span><span class="p">(</span><span class="n">pdt</span><span class="o">.</span><span class="n">TypeDouble</span><span class="p">,</span> <span class="s2">&quot;Bump diameter&quot;</span><span class="p">,</span> <span class="n">default_bump_parameters</span><span class="p">[</span><span class="s2">&quot;bump_diameter&quot;</span><span class="p">],</span> <span class="n">unit</span><span class="o">=</span><span class="s2">&quot;μm&quot;</span><span class="p">)</span>
<span class="n">bump_type</span> <span class="o">=</span> <span class="n">Param</span><span class="p">(</span><span class="n">pdt</span><span class="o">.</span><span class="n">TypeString</span><span class="p">,</span> <span class="s2">&quot;Bump type&quot;</span><span class="p">,</span> <span class="n">default_bump_type</span><span class="p">,</span> <span class="n">choices</span><span class="o">=</span><span class="n">connector_type_choices</span><span class="p">)</span>

<div class="viewcode-block" id="FlipChipConnector.create_bump_connector">
<a class="viewcode-back" href="../../../../api/kqcircuits.elements.flip_chip_connectors.flip_chip_connector.html#kqcircuits.elements.flip_chip_connectors.flip_chip_connector.FlipChipConnector.create_bump_connector">[docs]</a>
<span class="k">def</span> <span class="nf">create_bump_connector</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">ubm_shape</span> <span class="o">=</span> <span class="n">circle_polygon</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">ubm_diameter</span> <span class="o">/</span> <span class="mi">2</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">n</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;underbump_metallization&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">ubm_shape</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;underbump_metallization&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">ubm_shape</span><span class="p">)</span>

<span class="n">avoidance_shape</span> <span class="o">=</span> <span class="n">circle_polygon</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">ubm_diameter</span> <span class="o">/</span> <span class="mi">2</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">margin</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">n</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;ground_grid_avoidance&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">avoidance_shape</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;ground_grid_avoidance&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">avoidance_shape</span><span class="p">)</span>

<span class="n">bump_shape</span> <span class="o">=</span> <span class="n">circle_polygon</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">bump_diameter</span> <span class="o">/</span> <span class="mi">2</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">n</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;indium_bump&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">bump_shape</span><span class="p">)</span> <span class="c1"># bottom In bump</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;indium_bump&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">bump_shape</span><span class="p">)</span> <span class="c1"># top In bump</span></div>
<div class="viewcode-block" id="FlipChipConnector.create">
<a class="viewcode-back" href="../../../../api/kqcircuits.elements.flip_chip_connectors.flip_chip_connector.html#kqcircuits.elements.flip_chip_connectors.flip_chip_connector.FlipChipConnector.create">[docs]</a>
<span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">create</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">layout</span><span class="p">,</span> <span class="n">library</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">bump_type</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="o">**</span><span class="n">parameters</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Create a bump cell in layout.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">cls</span><span class="o">.</span><span class="n">create_subtype</span><span class="p">(</span><span class="n">layout</span><span class="p">,</span> <span class="n">library</span><span class="p">,</span> <span class="n">bump_type</span><span class="p">,</span> <span class="o">**</span><span class="n">parameters</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span></div>
</div>

</pre></div>
Expand Down
Loading

0 comments on commit 7d8166e

Please sign in to comment.