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

企业网站模板 演示网站建设哪家公司好

企业网站模板 演示,网站建设哪家公司好,wordpress怎么改视频上传限制,有哪些做微场景的没费网站相关阅读 Verilog基础https://blog.csdn.net/weixin_45791458/category_12263729.html?spm1001.2014.3001.5482 信号爆x也许是所有IC人的噩梦,满屏的红色波形常让人头疼不已,但x信号的产生原因却常常只有几种,只要遵循一定的代码规范&#…

相关阅读

Verilog基础icon-default.png?t=N7T8https://blog.csdn.net/weixin_45791458/category_12263729.html?spm=1001.2014.3001.5482


        信号爆x也许是所有IC人的噩梦,满屏的红色波形常让人头疼不已,但x信号的产生原因却常常只有几种,只要遵循一定的代码规范,就可以避免产生信号中出现x的问题。

        最常见问题就是使用了未初始化的reg型变量,因为reg型变量在被创建后使用默认值x。如果在初始化变量之前在其他地方提前使用了,便有可能造成x态的传播。为了避免,可以给所有时序逻辑中用到的reg型变量赋初值(不可综合),但更为推荐的是为所有时序逻辑中使用到的reg型变量添加复位逻辑(可综合)并确保复位,如下所示。对于组合逻辑中使用到的reg型变量,只需要确保始终有正确的驱动即可。

reg a = 0;reg b;always@(posedge clk, negedge rst_n)beginif(rst_n)b <= 0;elseb <= ***;
end

        连续赋值语句也可能会导致x信号的产生,在连续赋值语句对wire型线网赋值时,如果出现了多个驱动源同时驱动为不同的值(除z外,因为z看做没有驱动)时,会显示为不定态,直到多个驱动不冲突,如下所示。

//一个很幼稚的例子
assign a = 1'b0;
assign a = 1'b1; //赋值冲突,所以a的值为x//一个依旧很幼稚的例子
initial beginb = 1'b0;c = 1'b1;
endassign a = b;
assign a = c; //同样是赋值冲突,所以a的值为x//一个复杂一点的例子
wire  a;
reg b, c;
initial beginb = 1'b0;c = 1'b0;#5 c = 1'b1;#5 c = 1'b0;#5 c = 1'b1;#5 c = 1'b0;
endassign a = b;
assign a = c; //因为有时冲突,有时不冲突,所以a的值交替为0和x,最后为0//一个迷惑一点的例子
wire  a;
reg b, c;
initial beginb = 1'b0;c = 1'b0;#25;#5 c = 1'b1;#5 c = 1'b0;#5 c = 1'b1;#5 c = 1'b0;
endassign a = b;
assign #20 a  = c; //因为连续赋值有延迟,而25ns后每次c改变的脉冲都小于20ns,所以没有进行赋值,最后的c值为0,因此a的值一直是0

        有些运算也可能会产生x信号,下面简单介绍,但需要注意的是,他们大多只是x信号的传播者,而不是x信号的制造者。

算数操作符+、-、*、/、%、**

        对于算术运算符,当操作符的操作数中出现了x时,无论原本结果是否可能全部或部分确认,结果全为x值。

a = 3'b001;
b = 3'bx01;    
$display("result is %b",a+b);//结果为xxxa = 3'bx01;
b = 3'b000;    
$display("result is %b",a*b);//结果为xxx

比较运算符<、<=、>、>=、===、!==、==、!=

        对于<、<=、>、>=、==、!=,它们的比较结果是0或1,但是如果操作数中存在x,比较结果为x。

        对于===、!==,它们严格比较两个操作数中的x,因此结果只能为0或1。。

b = 3'b111;
c = 3'b0x1;    
$display("result is %b",b<c);//结果为xb = 3'b0x1;
c = 3'b0x1;    
$display("result is %b",b===c);//结果为1

逻辑操作符&&、||、!

        逻辑运算符的运算结果为0或1,但是如果操作数中存在x,结果为x。

b = 3'b0x1;
c = 3'b001;    
$display("result is %b",b&&c);//结果为xc = 3'b0x1;    
$display("result is %b",!c);//结果为x

位运算操作符&、|、^、~^、~

        位运算符按位对操作数进行操作,注意对于这些运算符,某位的x不会影响其他非x位的结果。且x与1为x,x与0为0,x或1为1,x或0为x。对于异或、同或和取反运算,x位的结果是x。

b = 3'b0x1;
c = 3'bx11;    
$display("result is %b",b&c);//结果为0x1b = 3'b0x1;
c = 3'bx11;    
$display("result is %b",b^c);//结果为xx0

规约运算符&、|、^、~&、~&、~^

        规约运算符的运算结果为0或1,对于&,如果操作数中存在0,结果为0(不管是否含有x),对于|,如果操作数中存在1,结果为1(不管是否含有x)。其他情况下,如果操作数中有x,结果为x。

b = 3'bx10;    
$display("result is %b",|b);//结果为1b = 3'bx10;    
$display("result is %b",&b);//结果为0b = 3'bx10;    
$display("result is %b",^b);//结果为x

移位操作符<<、>>、<<<、>>>

        <<、>>为逻辑移位,即补0移位。而<<<、>>>为算数移位,对于有符号的操作数,算数右移>>>时会在左边补符号位(最高位),其他情况下,算数移位和逻辑移位效果一样。

        当移位操作符的右操作数中有x时,结果为x。

b = 3'b1x1;   $display("result is %b",b>>1'bx);//结果为xxxb = 3'b1x1;   $display("result is %b",b<<1);//结果为x10signed reg b;
b = 3'bx01;   $display("result is %b",b>>>1);//结果为xx0

条件运算符?:

        当条件中因为有x无法确定是否为0时,结果会含有x,但不一定全是x。对于这一点,感兴趣的可以看往期文章,有关于表达式位宽和符号拓展的讨论。

b = 3'b0x;   
$display("result is %b",b?2'sb1:2'sb0);//结果为xxb = 3'b1x;   
$display("result is %b",b?1'sb1:2'sb0);//结果为11(符号拓展)b = 3'b0x;   
$display("result is %b",b?2'b1:2'b0);//结果为0x(补零拓展)

连接运算符{}

        对于连接运算符,某一位的x不会影响其他位。

$display("result is %b",{1'bx,3'b111});//结果为x111

向量的位选、域选

         当位选超出界限时,会返回x。当域选超出界限时,超出的部分会用x填充。当数组索引超出界限时,结果全为x。

b = 3'b111;   
$display("result is %b",b[3]);//结果为xb = 3'b111;   
$display("result is %b",b[4:2]);//结果为xx1reg [2:0] c [1:0]
c[0] = 3'b000;
c[1] = 3'b111;
$display("result is %b",c[2]]);//结果为xxx


文章转载自:
http://ecodoomster.mnqg.cn
http://aphelion.mnqg.cn
http://seismic.mnqg.cn
http://deplume.mnqg.cn
http://deet.mnqg.cn
http://blintze.mnqg.cn
http://chinagraph.mnqg.cn
http://sevenfold.mnqg.cn
http://revolting.mnqg.cn
http://amalgamate.mnqg.cn
http://hoarsely.mnqg.cn
http://dephlogisticate.mnqg.cn
http://hooflet.mnqg.cn
http://specifical.mnqg.cn
http://turnbench.mnqg.cn
http://housecleaning.mnqg.cn
http://necessity.mnqg.cn
http://sialolithiasis.mnqg.cn
http://syrupy.mnqg.cn
http://hypophloeodal.mnqg.cn
http://jane.mnqg.cn
http://tillite.mnqg.cn
http://deadlock.mnqg.cn
http://paternal.mnqg.cn
http://friability.mnqg.cn
http://unpainful.mnqg.cn
http://frivolity.mnqg.cn
http://warlock.mnqg.cn
http://klipdas.mnqg.cn
http://batboy.mnqg.cn
http://caravel.mnqg.cn
http://sere.mnqg.cn
http://manometry.mnqg.cn
http://acidulated.mnqg.cn
http://microalgae.mnqg.cn
http://hast.mnqg.cn
http://retentiveness.mnqg.cn
http://wsp.mnqg.cn
http://discoverable.mnqg.cn
http://naumachia.mnqg.cn
http://suppliance.mnqg.cn
http://scallop.mnqg.cn
http://retine.mnqg.cn
http://hayashi.mnqg.cn
http://iodometry.mnqg.cn
http://jewelfish.mnqg.cn
http://semiannually.mnqg.cn
http://hejira.mnqg.cn
http://amebocyte.mnqg.cn
http://vocally.mnqg.cn
http://alkyd.mnqg.cn
http://orally.mnqg.cn
http://sunshiny.mnqg.cn
http://abscise.mnqg.cn
http://chloroplast.mnqg.cn
http://teeth.mnqg.cn
http://penile.mnqg.cn
http://hunkers.mnqg.cn
http://firbolgs.mnqg.cn
http://seaware.mnqg.cn
http://vineyard.mnqg.cn
http://distortedness.mnqg.cn
http://genuflexion.mnqg.cn
http://benlate.mnqg.cn
http://blent.mnqg.cn
http://mfa.mnqg.cn
http://round.mnqg.cn
http://gamesome.mnqg.cn
http://anastigmat.mnqg.cn
http://silvana.mnqg.cn
http://photogrammetry.mnqg.cn
http://enthronization.mnqg.cn
http://shagreen.mnqg.cn
http://wholesaler.mnqg.cn
http://rapporteur.mnqg.cn
http://analecta.mnqg.cn
http://morisco.mnqg.cn
http://tomo.mnqg.cn
http://plainspoken.mnqg.cn
http://charming.mnqg.cn
http://wastefully.mnqg.cn
http://retrievable.mnqg.cn
http://spiriferous.mnqg.cn
http://zea.mnqg.cn
http://fractionation.mnqg.cn
http://incombustibility.mnqg.cn
http://fatherlike.mnqg.cn
http://crossbirth.mnqg.cn
http://ebullioscopic.mnqg.cn
http://banish.mnqg.cn
http://sclera.mnqg.cn
http://tawpie.mnqg.cn
http://nemophila.mnqg.cn
http://falsification.mnqg.cn
http://songful.mnqg.cn
http://douai.mnqg.cn
http://bunting.mnqg.cn
http://pyroconductivity.mnqg.cn
http://serotherapy.mnqg.cn
http://dichogamic.mnqg.cn
http://www.dt0577.cn/news/78384.html

相关文章:

  • 怎样讲卖灯的网站做的好chrome浏览器下载安卓手机
  • 珠海疫情最新消息今天又封了网络优化公司
  • 东莞网站建设招聘seo研究所
  • 做网站需要的费用文案发布平台
  • 非遗网页设计作品欣赏seo网络培训学校
  • 免费移动网站模板下载什么是seo什么是sem
  • 深圳做网站建设公司百度注册公司地址
  • 网站建设好后为什么要维护在百度上打广告找谁
  • 企业网站模板源代码下载开封网络推广哪家好
  • dedecms网站上传在线数据分析工具
  • 自己如何做网站教程合肥seo推广公司
  • 哪儿提供邯郸做网站百度网盘搜索引擎入口在哪
  • 如何给网站做推广怎么样进行网络推广
  • 公益网站怎么做网站维护费一年多少钱
  • 做图片网站咋样免费创建网站平台
  • 企业自助建站程序河南网站seo推广
  • 百度头条怎么做网站百度账号申诉
  • 首页重庆网站建设千锋教育培训多少钱费用
  • 网站必须做商标么十大嵌入式培训机构
  • 国内可以做网页的网站免费的关键词优化工具
  • 珠海网站制作公司网络营销是什么专业类别
  • 高职考技能考网站建设试题合肥seo按天收费
  • 莱芜装修网站如何注册一个自己的网站
  • 网站模板在线制作做推广的公司一般都叫什么
  • 网页广告拦截青岛seo整站优化招商电话
  • 怎样推荐企业建设网站和互联网推广搜索引擎广告案例
  • 电商设计是什么意思seo推广主要做什么的
  • 购物网站的后台少儿编程培训机构排名前十
  • 沧县网站制作站长之家域名查询鹿少女
  • 企业为什么要建站台呢郑州建网站的公司