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

青岛主流网站seo优化大公司排名

青岛主流网站,seo优化大公司排名,射洪网站建设工作室,做网站线上线下价格混乱1 基本概念 在 SystemVerilog 中,priority - if是一种条件判断结构。它和普通的if - else语句类似,但在条件评估和错误检查方面有自己的特点,主要用于按顺序评估多个条件,并且对不符合预期的情况进行报错。报错如下两点 当所有条件…

1 基本概念

        在 SystemVerilog 中,priority - 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 clause in priority-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 matchpriority 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 reportedpriority 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: Priority if violation:  Every if clause was false.File: ./testbench.sv, line = 18, pos = 15Scope: tbTime: 0 FS + 1ncsim: *W,RNQUIE: Simulation is complete.

2 Multiple matches in unique-if(匹配多个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 reportedpriority 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: priority 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.

http://www.mmbaike.com/news/85874.html

相关文章:

  • 重庆招标建设信息网站互联网营销推广
  • 广告传媒网站模板长春seo优化
  • 手机自助建站平台线上推广有哪些
  • 佛山禅城百度网站优化软件
  • 做平台网站需要多少钱想要推广网页正式版
  • 网站空间有什么用网络推广方法有哪几种
  • dw做网站基础广告点击一次多少钱
  • 免费域名解析网站建设网络营销的特点是什么?
  • 六灶网站建设做网站用什么编程软件
  • 做网站几个步骤谷歌sem服务商
  • 设计专业知名企业网站友情链接又称
  • 动态域名做网站班级优化大师官方网站
  • android 解析 wordpress石家庄seo关键词
  • 进出长春最新规定济南新站seo外包
  • 网站建设黄页吉林网络推广公司
  • 深圳网站建设易佰讯搜索引擎优化的基本原理
  • 学校网站搭建百度seo培训班
  • 自己怎么做点击量好的网站今天中国新闻
  • 攀枝花网站建设兼职seo视频教程
  • 做文艺文创产品的网站网络建站公司
  • jquery 网站框架抖音seo软件工具
  • 公司网站推广计划书怎么做怎样在百度上推广
  • 青岛商城网站建设百度 营销推广费用
  • 台州高端网站建设郑州网站设计有哪些
  • wordpress+手工网站如何做网站网页
  • wordpress适合建什么网站吗公司百度官网优化
  • 网站做三个月收录100深圳网站制作哪家好
  • 网站制作行业越来越难做安卓手机优化
  • 广东个人 网站备案获客
  • 网站策划过程百度平台客服人工电话