ISE错误:“Cannot mix blocking and non blocking assignments on signal ”

news/2024/5/19 1:16:23 标签: signal, div, 语言
<div id="article_content" class="article_content clearfix"> <div id="content_views" class="htmledit_views">

环境:ISE 10.1 语言:verilog HDL

 

出现的错误如下:

 ERROR:Xst:880 - "mst_pulse_calculation.v" line 124: Cannot mix blocking and non blocking assignments on signal <Res_in_div>.
ERROR:Xst:880 - "mst_pulse_calculation.v" line 125: Cannot mix blocking and non blocking assignments on signal <DiffCnt_in_div>.

 

看英文的意思是不能对信号同时进行阻塞和非阻塞赋值。

 

看一下程序,是这样的:

reg [31:0] Res_in_div;
reg [15:0] DiffCnt_in_div;
//assign Res_wire = Res_reg;
//assign DiffCntWire = MeasureDiffCnt;
always @ (posedge clk_200m)
 if(!rst)
  begin
   Res_in_div <= 0;
   DiffCnt_in_div <= 0;

  end
 else
  begin
   Res_in_div = Res_reg;
   DiffCnt_in_div = MeasureDiffCnt;

  end
注意一下红色加粗的部分,一个赋值时用的是阻塞赋值“<=”,而另一处用的是非阻塞赋值“=”,改正即可解决,一般我们都用阻塞赋值。

 

div> div> <div id="treeSkill">div>

http://www.niftyadmin.cn/n/717117.html

相关文章

瞬时极性法对正负反馈的判断方法_各种晶体管的检测方法大全

晶体管的检测&#xff1a;1、检测小功率晶体二极管A、判别正、负电极(a)、观察外壳上的的符号标记。通常在二极管的外壳上标有二极管的符号&#xff0c;带有三角形箭头的一端为正极&#xff0c;另一端是负极。(b)、观察外壳上的色点。在点接触二极管的外壳上&#xff0c;通常标…

Web GIS离线解决方案

1、背景 在离线环境下&#xff08;局域网中&#xff09;的GIS系统中如何使用地图&#xff1f;这里的地图主要指的是地图底图&#xff0c;有了底图切片数据&#xff0c;我们就可以看到地图&#xff0c;在上面加上自己的业务数据图层&#xff0c;进行相关操作。 要在离线环境下看…

easymybatis——mybatis开发利器

easymybatis是一个mybatis增强类库&#xff0c;目的为简化mybatis的开发&#xff0c;让开发更高效。 git地址&#xff1a;easymybatisdemo地址&#xff1a;demo with springbooteasymybatis的特性如下&#xff1a; 无需编写xml文件即可完成CRUD操作。支持多表查询、聚合查询、分…

wo-27s管理员账户和密码_某数据监测与分析系统可被撞库出登录密码

点击蓝字 关注我们01漏洞标题某数据监测与分析系统可被撞库出登录密码02漏洞类型逻辑漏洞03漏洞等级中危04漏洞地址http://xx.xx.xx.xx:8000/User/UpdatePWD05漏洞详情0x01登录页面没有验证码&#xff0c;存在可被撞库的风险http://xx.xx.xx.xx:8000http://xx.xx.xx.xx:8003然…

优化逻辑时序的几个办法——verilog语言

1&#xff09;逻辑条件判断“AB”和“A&#xff01;B”全部换成“!(A^B)”和“A^B” 2&#xff09;复杂的逻辑条件判断全部单独用一个时钟去判断&#xff0c;如&#xff1a; if(A>1000 && A<1000000 && B>1000 && B<10000) 改为如下&…

使用web3js编写脚本,实现以太的自动交易

注&#xff1a;必须在安装有web3的环境下运行脚本&#xff0c;若未安装web3&#xff0c;请参照以下博文 CentOS 7 环境 web3安装 及 对象的创建_m0_47233175的博客-CSDN博客https://blog.csdn.net/m0_47233175/article/details/121960931脚本代码如下 var Web3 require(web3)…

090620 T The events of HttpApplication

An application raises events that can be handled by custom modules that implement the IHttpModule interface or by event handler code that is defined in the Global.asax file.

JAVA基础(9)——容器(3)——并发容器

转载&#xff1a;http://blog.csdn.net/weitry/article/details/52964509 JAVA基础系列规划&#xff1a; JAVA基础&#xff08;1&#xff09;——基本概念JAVA基础&#xff08;2&#xff09;——数据类型JAVA基础&#xff08;3&#xff09;——容器&#xff08;1&#xff09;—…