<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>msyksphinz</author_name>
  <author_url>https://blog.hatena.ne.jp/msyksphinz/</author_url>
  <blog_title>FPGA開発日記</blog_title>
  <blog_url>https://msyksphinz.hatenablog.com/</blog_url>
  <categories>
    <anon>FIRRTL</anon>
    <anon>Chisel</anon>
  </categories>
  <description>ChiselからVerilogを生成すると、配列参照の記述は最終的に除去され、とんでもないVerilogが生成されることはよくある。 これをVerilogでそのまま配列で出力する方法を探しているのだが、試行錯誤でなかなかうまく進まない。 まず、passes.RemoveAccessesパスを除去すると、配列アクセスが除去出るが、それだけで話は終わらない。 例えば、入力ポートに対してVecを使っているとVerilog生成時にVecがすべて分解されてしまう。 すると、配列参照のために残していたin_a[in]というコードに対して、in_aがin_a_0, in_a_1, in_a_2, in_a_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmsyksphinz.hatenablog.com%2Fentry%2F2019%2F11%2F23%2F040000&quot; title=&quot;FIRRTLに入門する (11. 配列参照のコードを残したままVerilogを出したい) - FPGA開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://raw.githubusercontent.com/freechipsproject/firrtl/master/doc/images/firrtl_logo.svg?sanitize=true</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-23 04:00:00</published>
  <title>FIRRTLに入門する (11. 配列参照のコードを残したままVerilogを出したい)</title>
  <type>rich</type>
  <url>https://msyksphinz.hatenablog.com/entry/2019/11/23/040000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
