<font face="微软雅黑"><font style="font-size:18px">使用modelsim进行仿真时,在延一拍处理过程中,出现数据采集不到,pix_data_1d的数据采集不到,代码如下:</font></font><pre style="max-width: 100%;"><code class="cpp hljs" codemark="1">reg fram_h1d;
reg fram_h2d;
reg fram_h3d;
reg fram_h4d;
reg fram_h5d;
reg fram_hpose_2d;
reg fram_hnege_1d;
reg fram_hnege_2d;
reg fram_hnege_3d;
reg [ <span class="hljs-number">9</span>:<span class="hljs-number">0</span>] pix_data_1d;
reg [ <span class="hljs-number">9</span>:<span class="hljs-number">0</span>] pix_data_2d;
reg [ <span class="hljs-number">9</span>:<span class="hljs-number">0</span>] pix_data_3d;
reg [ <span class="hljs-number">9</span>:<span class="hljs-number">0</span>] pix_data_4d;
always@( posedge CLK or negedge RST_N )
<span class="hljs-function">begin
<span class="hljs-title">IF</span><span class="hljs-params">( RST_N == <span class="hljs-number">1</span><span class="hljs-string">'b0 )
begin
fram_h1d <= 1'</span>b0 ;
fram_h2d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_h3d <= 1'</span>b0 ;
fram_h4d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_h5d <= 1'</span>b0 ;
fram_v1d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_v2d <= 1'</span>b0 ;
fram_v3d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_v4d <= 1'</span>b0 ;
fram_v5d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_v6d <= 1'</span>b0 ;
fram_hpose_2d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_hnege_1d <= 1'</span>b0 ;
fram_hnege_2d <= <span class="hljs-number">1</span><span class="hljs-string">'b0 ;
fram_hnege_3d <= 1'</span>b0 ;
end
<span class="hljs-keyword">else</span>
begin
fram_h1d <= FRAME_HI ;
fram_h2d <= fram_h1d ;
fram_h3d <= fram_h2d ;
fram_h4d <= fram_h3d ;
fram_h5d <= fram_h4d ;
fram_v1d <= FRAME_VI ;
fram_v2d <= fram_v1d ;
fram_v3d <= fram_v2d ;
fram_v4d <= fram_v3d ;
fram_v5d <= fram_v4d ;
fram_v6d <= fram_v5d ;
fram_hnege_2d <= fram_hnege_1d ;
fram_hnege_3d <= fram_hnege_2d ;
fram_hpose_2d <= fram_h1d && ( !fram_h2d )</span> </span>;
fram_hnege_1d <= fram_h1d && ( !FRAME_HI ) ;
end
end</code></pre><p>
<br>
<br>
<br>
<ignore_js_op>
</ignore_js_op></p><dl class="tattl attm">
<dd>
<img src="data/attach/1911/yoiw5lcloz5jigofsnoa7d6kixyukj1c.png" alt="采集.PNG" title="采集.PNG">
</dd>
</dl>
<p><br></p><p></p><p><br></p>
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>