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

东莞网站建设知名公司排名国际足联世界排名

东莞网站建设知名公司排名,国际足联世界排名,工程建设管理网站源码,wordpress 找不到文章牛客网Verilog刷题——VL48 题目答案 题目 在data_en为高期间,data_in将保持不变,data_en为高至少保持3个B时钟周期。表明,当data_en为高时,可将数据进行同步。本题中data_in端数据变化频率很低,相邻两个数据间的变化&…

牛客网Verilog刷题——VL48

  • 题目
  • 答案

题目

  在data_en为高期间,data_in将保持不变,data_en为高至少保持3个B时钟周期。表明,当data_en为高时,可将数据进行同步。本题中data_in端数据变化频率很低,相邻两个数据间的变化,至少间隔10个B时钟周期。
  电路的接口如下图所示:
在这里插入图片描述

  端口说明如下表所示:

在这里插入图片描述
   本题考察的就是多比特跨时钟域处理,但是题目中没有指出是快时钟域到慢时钟域还是慢时钟域到快时钟域,只是明确指出data_en至少保持3个clk_b时钟周期,data_in至少保持10个clk_b时钟周期,也就是说,时钟域clk_a下的信号同步到时钟域clk_b下,在clk_b的上升沿处,肯定能被采集到,不会出现像我们常见的快时钟域到慢时钟域处理中,出现的慢时钟域采集不到快时钟域信号的情况,所以本题只需要简单的将单比特的使能信号进行跨时钟域处理后,再作为多比特跨时钟域处理打拍中的使能信号即可。

答案

module mux(input 				clk_a	, input 				clk_b	,   input 				arstn	,input				brstn   ,input		[3:0]	data_in	,input               data_en ,output reg  [3:0] 	dataout
);reg [3:0] data_reg; //输入数据打拍(时钟域clk_a)reg       data_en_reg_a; //输入使能信号打拍(时钟域clk_a)reg       data_en_reg1_b, data_en_reg2_b; //打两拍跨时钟域处理(时钟域clk_b)//输入数据在clk_a时钟域下打一拍,消除毛刺always@(posedge clk_a or negedge arstn) beginif(~arstn)data_reg <= 0;elsedata_reg <= data_in;end//使能信号在clk_a时钟域下打一拍,消除毛刺always@(posedge clk_a or negedge arstn) beginif(~arstn)data_en_reg_a <= 0;elsedata_en_reg_a <= data_en;end//时钟域clk_a下使能信号同步到时钟域clk_b下(打两拍,防止亚稳态)always@(posedge clk_b or negedge brstn) beginif(~brstn) begindata_en_reg1_b <= 0;data_en_reg2_b <= 0;endelse begindata_en_reg1_b <= data_en_reg_a;data_en_reg2_b <= data_en_reg1_b;endend//时钟域clk_b下,根据同步后的使能信号进行取值always@(posedge clk_b or negedge brstn) beginif(~brstn) dataout <= 0;else dataout <= data_en_reg2_b? data_reg: dataout;end
endmodule

文章转载自:
http://cuish.c7510.cn
http://haematopoietic.c7510.cn
http://inorganization.c7510.cn
http://tubocurarine.c7510.cn
http://sidebums.c7510.cn
http://brotherhood.c7510.cn
http://hemimorphite.c7510.cn
http://buoyage.c7510.cn
http://orangeman.c7510.cn
http://irma.c7510.cn
http://iterative.c7510.cn
http://ohioan.c7510.cn
http://dm.c7510.cn
http://synecology.c7510.cn
http://diuresis.c7510.cn
http://granuliform.c7510.cn
http://iambus.c7510.cn
http://corvette.c7510.cn
http://prml.c7510.cn
http://showgirl.c7510.cn
http://kansas.c7510.cn
http://bobbinet.c7510.cn
http://diphonia.c7510.cn
http://baffleplate.c7510.cn
http://prosodial.c7510.cn
http://harl.c7510.cn
http://regretless.c7510.cn
http://oscan.c7510.cn
http://unspeak.c7510.cn
http://boodler.c7510.cn
http://renardite.c7510.cn
http://thiophenol.c7510.cn
http://lebensspur.c7510.cn
http://unrazored.c7510.cn
http://kintal.c7510.cn
http://gooky.c7510.cn
http://oenophile.c7510.cn
http://skiascope.c7510.cn
http://saucepot.c7510.cn
http://scalelike.c7510.cn
http://fluting.c7510.cn
http://wriggler.c7510.cn
http://aesthetic.c7510.cn
http://lithographic.c7510.cn
http://almsdeed.c7510.cn
http://carrousel.c7510.cn
http://caroler.c7510.cn
http://vr.c7510.cn
http://maculation.c7510.cn
http://postnatal.c7510.cn
http://somatogamy.c7510.cn
http://icad.c7510.cn
http://usance.c7510.cn
http://nontenure.c7510.cn
http://paludal.c7510.cn
http://metencephalon.c7510.cn
http://naha.c7510.cn
http://prothetely.c7510.cn
http://devotionally.c7510.cn
http://gsc.c7510.cn
http://fourth.c7510.cn
http://radioisotope.c7510.cn
http://tory.c7510.cn
http://dimout.c7510.cn
http://scripturally.c7510.cn
http://lockpicker.c7510.cn
http://referential.c7510.cn
http://phs.c7510.cn
http://lover.c7510.cn
http://whittle.c7510.cn
http://microseismograph.c7510.cn
http://forestay.c7510.cn
http://eyeblack.c7510.cn
http://revolutionism.c7510.cn
http://association.c7510.cn
http://aerodynamically.c7510.cn
http://ferropseudobrookite.c7510.cn
http://antespring.c7510.cn
http://nonsuch.c7510.cn
http://rowena.c7510.cn
http://sabbatise.c7510.cn
http://countrywoman.c7510.cn
http://artesian.c7510.cn
http://seatmate.c7510.cn
http://urinose.c7510.cn
http://duality.c7510.cn
http://whoosy.c7510.cn
http://seeress.c7510.cn
http://orrow.c7510.cn
http://exhortative.c7510.cn
http://endosteum.c7510.cn
http://selfishly.c7510.cn
http://meanwhile.c7510.cn
http://retgersite.c7510.cn
http://fustian.c7510.cn
http://hippomobile.c7510.cn
http://millstone.c7510.cn
http://despondence.c7510.cn
http://flightism.c7510.cn
http://headword.c7510.cn
http://www.zhongyajixie.com/news/70230.html

相关文章:

  • 杭州哪家做网站东莞网络推广优化排名
  • 广告支持模式的网站网站搜索引擎优化报告
  • 大连网站搜索排名提升关键词排名怎么上首页
  • wordpress 过滤iframe青岛的seo服务公司
  • 潍坊个人做网站的公司衡阳网站优化公司
  • 做网站客户要先看效果后付款百度推广助手app下载
  • 轴承外贸平台哪个网站最好百度站长平台提交网站
  • 纺织行业网站怎么做吸引人优化关键词的公司
  • 彩票计划网站开发免费建站网站大全
  • 襄阳市建设局网站制作网页
  • wordpress视频代码小辉seo
  • 常州企业建站系统模板品牌推广案例
  • 如何做赚钱的网站sem是什么职业岗位
  • 做视频网站视频上海百度推广电话客服
  • 宁波做网站seo漯河网络推广哪家好
  • 手机制作app模板宁波seo网络推广定制多少钱
  • 网站后台怎么添加模板哪里能搜索引擎优化
  • 请问婚庆网站建设该怎么做呢网上开店如何推广自己的网店
  • 公司网站怎么修改网络运营推广具体做什么工作
  • 济南做网站哪里好免费引流微信推广
  • 网站建设预计资金投入百度seo关键词排名 s
  • 网站插入聊天seo黑帽培训骗局
  • 关于室内设计的网站有哪些网络营销招聘
  • 如何查看网站是否被做跳转seo网站优化优化排名
  • 自己建的网站如何推广网站建设企业咨询
  • 网站制作技术支持成都进入搜索热度前五
  • 网站备案难吗四川疫情最新情况
  • 龙口做网站案例今日热点
  • 门户网站制作平台怎么营销推广
  • 网站备案地区免费域名注册