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

网站备案信息是什么企业网站建设方案流程

网站备案信息是什么,企业网站建设方案流程,济南建设网站平台,商业网站的规划和设计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/343170/

相关文章:

  • php做彩票网站吗国家备案网
  • 律师做网络推广哪个网站好做别人一样的网站吗
  • 网站开发个人博客网页美工主要做什么
  • 滕州市建设局网站域名网
  • 珠海市香洲区建设局网站Wordpress怎么装到服务器
  • 广州网站建设咨询电话莱芜新闻片头
  • 网络小说网站建设网站开发开发需求文档模板
  • 营销型网站的目标是免费下载官方百度
  • html网站开发语言上海网上推广
  • 网站后台有安全狗网站建设板块建议
  • 做网站广告Dw怎么做网站往里面加标题和字
  • 温州大军建设有限公司网站久久建筑网账号
  • 网站广告接入江苏哪家做网站排名比较好
  • 南宁网站建设外包做啥网站
  • 焦作网站开发东莞网站建设制作价格
  • 昆明做网站哪家水墨风logo一键制作
  • 网站图标怎么做网站上官网标识怎么做
  • 网站如何维护直播网站建设开发
  • 医疗机构网站以患者做宣传网站建设数据库是什么意思
  • flash做网站网站建设公司销售经理职责
  • 网站报错解析盘锦市政建设集团网站
  • 营销网站建设阿凡达公司网站seo优化的
  • 不到网站是为什么个人论坛类网站
  • 网站备案号码查询华容县住房和城乡建设局网站
  • 包头网站建设优化vs做的网站怎么让局域网的看到
  • 网站的全栈建设网络营销方式的选择
  • 网站建设项目分析长沙做网站的公司对比
  • 网站制定手机界面设计教程
  • 成都网站建设优化企业排名浙江省建设监理协会网站
  • 城市建设投资公司 网站北京网页设计师培训