<?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>
  </categories>
  <description>ベクトル命令における、LMUL&gt;1の対応というのは結構難易度の高い問題だ。 今回はその解決方法として、LMULの値がVSETVL命令で変更されると、例外を出して物理レジスタの構成を整列し直す方式を考えたい。 ここでは、Spikeの実装のみを示すが、同様にハードウェア側も実装を変更する。 前回に続いて、もうちょっと調整が必要だ。まず、基本的にRISC-Vの例外は例外復帰後に例外を発生させた命令をもう一度実行する想定だが、このVSETVLI命令の例外は、もう一度は実行せずに次の命令に進める。 したがって、MEPCを自分の命令の1つ前に進めておく必要がある。 if (t.cause() == CAU…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmsyksphinz.hatenablog.com%2Fentry%2F2023%2F11%2F23%2F040000&quot; title=&quot;自作CPUにベクトル命令を追加する実装検討 (21. LMUL&amp;gt;1への対応実装) - 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://cdn-ak.f.st-hatena.com/images/fotolife/m/msyksphinz/20231119/20231119015633.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-11-23 04:00:00</published>
  <title>自作CPUにベクトル命令を追加する実装検討 (21. LMUL&gt;1への対応実装)</title>
  <type>rich</type>
  <url>https://msyksphinz.hatenablog.com/entry/2023/11/23/040000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
