<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Ryuz88</author_name>
  <author_url>https://blog.hatena.ne.jp/Ryuz88/</author_url>
  <blog_title>Ryuz's tech blog</blog_title>
  <blog_url>https://blog.rtc-lab.com/</blog_url>
  <categories>
    <anon>FPGA</anon>
  </categories>
  <description>なにが起きたのか 下記のようなシーンで何やら Verilator が Operator NOT expects 5 bits on the LHS, but LHS's VARREF 'b' generates 4 bits. というワーニングを出してきた。 logic [3:0] a; logic [3:0] b; logic [4:0] c; assign c = a + ~b; 4bit同士の加算を5bit に入れるので何の問題も無かろうと思っていたら、問題ありありだったという話です。 どういうことか 下記のようなコードだと少しわかりやすいかと思います。 logic [3:0] a = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.rtc-lab.com%2Fentry%2F2024%2F05%2F23%2F125328&quot; title=&quot;Verilog の演算時の幅拡張でしくじった話 - Ryuz&amp;#39;s tech blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-23 12:53:28</published>
  <title>Verilog の演算時の幅拡張でしくじった話</title>
  <type>rich</type>
  <url>https://blog.rtc-lab.com/entry/2024/05/23/125328</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
