<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[H265 2.0代码存在BUG]]></title><description><![CDATA[<p dir="auto">rtl/rec/rec_tq/mod.v：<br />
此模块输入qp，计算qp % 6，并进一步按照公式计算量化中需要的参数<br />
如果输入qp=6，正确的计算应该为6 % 6 = 0。但是此模块计算6 % 6 = 6，<br />
这会导致后续参数计算全部为0，量化后系数也全部为0。</p>
<p dir="auto">问题原因：<br />
always@(*) begin<br />
next_state=IDLE;<br />
case(state)<br />
IDLE:<br />
if((qp_r != qp)&amp;&amp;(qp&gt;6))<br />
next_state=MODE_STATE;<br />
else<br />
next_state=IDLE;<br />
MODE_STATE:<br />
if(opi&lt;6+6)<br />
next_state=IDLE;<br />
else<br />
next_state=MODE_STATE;<br />
endcase<br />
end</p>
<p dir="auto">此always块中的“if((qp_r != qp)&amp;&amp;(qp&gt;6))”语句有误，当qp=6时不会进行mod操作以及状态跳转，建议修改。</p>
]]></description><link>http://www.openasic.org/topic/88/h265-2-0代码存在bug</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 06:21:37 GMT</lastBuildDate><atom:link href="http://www.openasic.org/topic/88.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Mar 2020 06:00:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to H265 2.0代码存在BUG on Fri, 20 Mar 2020 09:14:54 GMT]]></title><description><![CDATA[<p dir="auto">我发了pull request，请查收</p>
]]></description><link>http://www.openasic.org/post/378</link><guid isPermaLink="true">http://www.openasic.org/post/378</guid><dc:creator><![CDATA[lunning]]></dc:creator><pubDate>Fri, 20 Mar 2020 09:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to H265 2.0代码存在BUG on Thu, 19 Mar 2020 07:15:39 GMT]]></title><description><![CDATA[<p dir="auto">非常感谢！！<br />
近期我们会将2.0版本代码放到github托管，到时候一并更新！</p>
]]></description><link>http://www.openasic.org/post/371</link><guid isPermaLink="true">http://www.openasic.org/post/371</guid><dc:creator><![CDATA[bo]]></dc:creator><pubDate>Thu, 19 Mar 2020 07:15:39 GMT</pubDate></item></channel></rss>