当前位置: 首页 > news >正文

学校营销型网站sem 优化价格

学校营销型网站,sem 优化价格,国家对于学校网站建设,张家界市网站建设设计1 基本概念 在 SystemVerilog 中,unique if是一种条件判断结构。它用于检查多个互斥的条件,以确保在给定的情况下只有一个条件分支被执行。这有助于提高代码的可读性和可维护性,同时也能帮助发现潜在的逻辑错误,报错原因有以下两个…

1 基本概念

        在 SystemVerilog 中,unique if是一种条件判断结构。它用于检查多个互斥的条件,以确保在给定的情况下只有一个条件分支被执行。这有助于提高代码的可读性和可维护性,同时也能帮助发现潜在的逻辑错误,报错原因有以下两个

        当所有的 “if” 条件都不匹配时且无else语句,会报错。
        当在 “if-else” 条件中发现有不止一个条件匹配时,会报错。

2 语法

unique if (condition1) begin// 执行语句块1
end else if (condition2) begin// 执行语句块2
end else if (condition3) begin// 执行语句块3
end else {// 可选的else语句块,当所有前面条件都不满足时执行
}

3 示例

1 No else block for unique-if(无else,且都不匹配)

module tb;int x = 4;initial begin// This if else if construct is declared to be "unique"// Error is not reported here because there is a "else"// clause in the end which will be triggered when none of// the conditions matchunique if (x == 3)$display ("x is %0d", x);else if (x == 5)$display ("x is %0d", x);else$display ("x is neither 3 nor 5");// When none of the conditions become true and there// is no "else" clause, then an error is reportedunique if (x == 3)$display ("x is %0d", x);else if (x == 5)$display ("x is %0d", x);end
endmodule//------------- simulation log-------------------//
ncsim> run
x is neither 3 nor 5
ncsim: *W,NOCOND: Unique if violation:  Every if clause was false.File: ./testbench.sv, line = 18, pos = 13Scope: tbTime: 0 FS + 1ncsim: *W,RNQUIE: Simulation is complete.

2 Multiple matches in unique-if(匹配多次)

module tb;int x = 4;initial begin// This if else if construct is declared to be "unique"// When multiple if blocks match, then error is reportedunique if (x == 4)$display ("1. x is %0d", x);else if (x == 4)$display ("2. x is %0d", x);else$display ("x is not 4");end
endmodule//--------------- simulation log-----------------//
ncsim> run
1. x is 4
ncsim: *W,MCONDE: Unique if violation:  Multiple true if clauses at {line=8:pos=15 and line=10:pos=13}.File: ./testbench.sv, line = 8, pos = 15Scope: tbTime: 0 FS + 1ncsim: *W,RNQUIE: Simulation is complete.

https://www.chipverify.com/systemverilog/systemverilog-unique-priority-if-ele

http://www.jinmujx.cn/news/117634.html

相关文章:

  • o2o手机维修网站那个公司做的免费的推广软件下载
  • 摄影网站采用照片做宣传 版权费是多少百度下载
  • 可以做线路板网站的背景图站长工具外链查询
  • 网站如何优化推广今日足球赛事数据
  • 做的网站浏览器提示不安全问题日照网络推广公司
  • 乌鲁木齐市网站制作公司凤凰网台湾资讯
  • 网游在线玩seo推广服务
  • 建设银行杭州分行网站搜索引擎排名优化方法
  • 网站开发制作公司优化设计答案五年级下册
  • h5 网站开发福州百度快照优化
  • 安全网站建设情况网站热度查询
  • 3g网站开发代运营一家店铺多少钱
  • 佛山建设网站公司吗网站优化塔山双喜
  • 天津企商网站建设公司软文推广是什么意思
  • 视频网站开发教程图片识别 在线识图
  • 上海做网站的公司哪个好有没有免费的seo网站
  • 免费域名注册教程武汉seo报价
  • 外贸独立站saas建站搜索引擎营销的特点是什么
  • 精美的微网站武汉楼市最新消息
  • 知乎 上海做网站的公司app开发定制
  • 网站开发框架有哪些360收录提交入口
  • 网站设计不需要考虑seo中国
  • 网架公司推荐网站怎么优化关键词排名
  • 使用jquery的网站it培训机构学费一般多少
  • 上海b2b做网站网络平台怎么推广
  • 静态网页模板免费网站广州竞价托管
  • 哪个网站可以做身份证ip反查域名网站
  • 如何制作社交网站中国新闻最新消息
  • vk社交网站做婚介引流推广公司
  • shopex网站首页空白google play下载安卓