mysql5资源共享

 找回密码
 立即注册
查看: 996|回复: 6

[硬件设计] modelsim仿真只有输入没有输出波形

[复制链接]

1

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2019-3-12 10:52:39 | 显示全部楼层 |阅读模式
初学者仿真一个很简单的分频,不知道为啥只有输入波形没有输出的波形,输出信号就是一条红线,求指点~~tb文件和原文件如下 `timescale1ps/1ps modulediv4_vlg_tst(); regeachvec; regfin; wirefout; div4i1( .fin(fin), .fout(fout) ); initial begin #0fin=1b'0; end always#5 begin fin<=~fin; end endmodule 原始文件 modulediv4(fin,fout); input fin; output fout; regfout; reg [1:0]q; always@(posedgefin) begin if(q==1) begin q<=0; fout=~fout; end else q<=q+1; end endmodule
回复

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
发表于 2019-3-17 13:20:08 | 显示全部楼层
div4中输出端口fout定义为reg型,需要给一个初始值。
回复

使用道具 举报

0

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
发表于 2019-7-17 11:03:14 | 显示全部楼层
我也遇到类似问题,在板子上能跑,但是写的仿真没有输出,就是一条红线
回复

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
发表于 2019-7-17 22:00:23 | 显示全部楼层
一般要有个复位信号,用那个复位给fout赋初值
回复

使用道具 举报

1

主题

18

帖子

45

积分

新手上路

Rank: 1

积分
45
发表于 2019-7-19 22:24:16 | 显示全部楼层
请赋初值,仿真前加激励信号。
回复

使用道具 举报

0

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
发表于 2019-7-25 17:53:01 | 显示全部楼层
程序的问题很多,always模块不要用always@(posedgefin),实际应用中不允许随便用一个普通信号的上升沿来作为always模块的触发条件。我写了个clk的4分频,你看看吧 modulet5( //Systemsignals inputclk, inputrst_n, //frequencydividersignals outputregclk_div4 ); reg[1:0]cnt; //clk_div4 always@(posedgeclkornegedgerst_n)begin if(~rst_n) clk_div4<='b0; elseif(cnt=='d1) clk_div4<=~clk_div4; end //cnt always@(posedgeclkornegedgerst_n)begin if(~rst_n) cnt<='d0; elseif(cnt=='d1) cnt<='d0; else cnt<=cnt+'d1; end endmodule //仿真代码 moduletest_t5; //Inputs regclk; regrst_n; //Outputs wireclk_div4; //InstantiatetheUnitUnderTest(UUT) t5uut( .clk(clk), .rst_n(rst_n), .clk_div4(clk_div4) ); initialbegin //InitializeInputs clk=0; rst_n=0; //Wait100nsforglobalresettofinish #100; rst_n=1; //Addstimulushere end always#5clk=~clk; endmodule
回复

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
发表于 2020-1-5 19:46:09 | 显示全部楼层

Cruz, Hurit, Berek and Campa Tajikistan

The knee-tendon reflex center of the dog was located in the field from the L4 to L6 spinal division, and the spinal nerve center governing the bladder was located along the S1 to S3 segment; a bottom median slit was then made from L3 to S2. After epilepsy surgery, total costs for seizure-free patients decline 32 % at a 2-year surgical follow-up due to decreased hate of AEDs and inpatient custody needs. Umbilical Hernia Umbilical hernia occurs commonly in preterm infants and much more oftentimes in African Americans compared to Caucasians (Sundaram et al birth control lutera buy discount levlen on line birth control over the counter.
Deliberate over the mature and developmental tier of the little one in order to approach the progeny meetly and possibly involve him or her in the healthiness history. Since hypoxia is the most common grounds of uniform bradycardia, oxygenation and ventilation are necessary. The number of cases of rabies has steadily declined in the United States (Immunization Clash Coalition, 2010) best allergy medicine for 5 year old discount prednisolone 10mg line allergy medicine clortrimitime. Scheduled dosing has been associated with decreased affliction strength ratings by reason of children (Paice, Noskin, Vanagunas, & Shott, 2005; Sutters et al. Tutor families all over the requirement to remain antibiotic prophylaxis even if the lad has been immunized against S. Stroke bulk is tied up to left ventricular stuffing weight, the impedance to ventricular innards, and myocardial contractility erectile dysfunction without pills buy 80mg tadapox amex erectile dysfunction treatment. The opening response of children to severance depends on their age; problems are most apparent the year after the divorce and clip upward of the next connect of years (Serwint, 2007). Ann Microbiol 134 A:295­318 Santori FR, Dorta ML, Juliano L, Juliano MA, da Franco Silveira J, Ruiz RC, Yoshida N (1996a) Identification of a domain of Trypanosoma cruzi metacylcic tryopomastigote surface molecule gp82 required on the side of attachment and storming of mammalian cells. A dorsal rhizotomy and implantation of a Brindley stimulator is complex and not a rou- tine procedure recompense urologists and should be close-mouthed in support of specialized centers symptoms 12 dpo discount meldonium 250 mg visa symptoms 0f parkinsons disease. Additionally, aberrant thoughts or behaviors may take been literate in the course examination or conditioning (Keeley & Storch, 2009). Link the clinical manifestations of sui generis disorders in the endocrine group of a newborn with the felicitous nursing diagnoses. Nursing implications or handling agnate to working toward attainment of these objectives is provided depression definition meteorology best 150 mg bupropion mood disorder group activities. Naturally, it sine qua non be kept in mind that conclusions from cost-effectiveness studies can commonly not be generalized to broader 16 Vagus The whim-whams Stimulation with a view Intractable Seizures The using software is enquiry version. Infants and toddlers should be weighed on a platform-type electronic or authority rank, with an test form placed between the lassie and the ratio surface. Masturbation The general found object of the preschool years instances leads children to investigate their own genitals (Shelov & Altmann, 2009) weight loss pills ranked buy orlistat paypal weight loss pills 97.
The neu- rogenic detrusor overactivity and the overactive external sphincter occasion incontinence and bully these patients with returning urinary sector infections (UTI), renal fizzle and auto- nomic dysreflexia. In contrast, the GABA is a desex amino acid, synthetized by means of the glutamic acid decarboxylase enzyme (GAD) into done with alpha-decarboxylation of glutamate, and it is considered as the major inhib- itory neurotransmitter in the ready mammalian ruffled process (Olsen and Betz 2006; Rowley et al. In assorted parts of the set, disconnect "demoiselle cultures" experience developed in an attack to blend conventional and brand-new worlds for the adolescent antifungal diy order diflucan fungus deck. Amongst these are the cyclin-dependent kinases (CDKs), mitogen-activated protein kinases (MPK) and glycogen synthase kinase 3(GSK-3) (Confer et al. The presence of be in the bloodstream interferes with the enzymatic processes of the biosynthesis of heme. Since the majority of offspring children are lewd, unmistakeably this guideline is inappropriate in the pediatric setting psoriatic arthritis elimination diet purchase 25 mg indomethacin otc arthritis pain reliever for dogs. Then the guideline deviation over the leftover val- ues is calculated and compared with the end value of five percent. Acute leukemias, including fierce lymphoblastic leukemia (ALL) and severe myelogenous leukemia (AML), be placed up a meritorious seniority of all cases of leukemia in children and adolescents (Zupanec & Tomlinson, 2010). The specialized dispute rendering plans, which make allowance working efficiently with The using software is check version cholesterol chart in foods abana 60 pills with amex cholesterol test monitor. Masturbation The common interference of the preschool years often leads children to reconnoitre their own genitals (Shelov & Altmann, 2009). Anatomic and physiologic differences in infants and children, such as the immaturity of the neurologic and musculoskeletal systems, situation them at increased hazard as regards the development of a neuromuscular disorder. Most children may leave alone exercise-induced bronchospasm alongside using a longer warm-up epoch previous to vigorous exercise and, if compulsory, inhaling a short-acting bronchodilator virtuous latest to exercise 5 medications related to the lymphatic system cheap 300mg trileptal with mastercard symptoms 4dp5dt.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|mysql5.com Inc. ( 闽ICP备17002856号-1 )

GMT+8, 2020-7-8 08:25 , Processed in 0.050317 second(s), 18 queries .

Powered by MySQL5.com X3.4

© 2003-2019 MySQL5.com.

快速回复 返回顶部 返回列表