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

网站百科推广怎么做宝塔搭建wordpress网站

网站百科推广怎么做,宝塔搭建wordpress网站,海阳市城建设局网站,PC网站开发的意义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.yayakq.cn/news/951519/

相关文章:

  • 苏州市建设局招标网站开网店 建网站要钱吗
  • 网站制作编辑软件windows 做网站服务器吗
  • 网站营销优化山西网络建站代运营
  • 校园网站开发需求建设小说网站
  • 产品结构设计网站wordpress自媒体博客主题
  • 长春网站建设培训班自己建的网站如何推广
  • 如何建设网站pdf商城网站架构
  • 网站建设网站建设平台站长工具2023最新国产
  • 免费优化网站东营免费网站制作
  • 做门户网站开发的技术地方门户网站的出路
  • 企业网站管理系统|cms系统|手机网站建设|企业建站|cms建站系统防邪办网站建设方案文档
  • 做网站的步骤流程罗湖实惠的网站建设费用
  • 安康北京网站建设常德红网官网网站
  • frontpage做网站做网站需注意事项
  • 多导航织梦网站模板下载建设兵团12师教育局网站
  • 哪家网络营销好360站长工具seo
  • 网站开发工具概述与比较wordpress auth key
  • 鹿城做网站wordpress 获取分类列表
  • 建网站跟建网店的区别wordpress大学主题教程
  • 成功网站案例分析做亚马逊运营要看哪些网站
  • 微餐饮网站建设比较好菜鸟html在线编辑器
  • 烟台网站制作厂家电话网站做推广 建设哪种类型合适
  • 响应式网站建设模板下载seo刷点击软件
  • 怎么做微信辅助的网站自动发布到wordpress
  • 南京玄武网站建设有哪些小公司网站
  • 舞钢市城乡建设局网站定制床需要多少钱
  • 网站建设岗位主要做什么国外做化工网站
  • 做网站开发的有哪些公司定制wordpress主题多少钱
  • 成都品牌建设网站公司软件外包公司人数
  • 做网站没有手机端网站建设金手指排名稳定