正在加载图片...
System tasks:Interaction Control (Cont.) Hierarchical Naming. initial #24 reset=0; Display occurs when an event occurs on one of the variables of the task's arguments. initial repeat(19)#5 clock=~clock; Display with initial forever @(posedge clock)#3 x=$random; the time unit initial $monitor("New state is %b and occurs at %t",MUT.current,$time); always @(z)$display("Output changes at %t to %b",Stime,z); Uses Smonitorto display current New state is x and occurs at 0 register in the background. Output changes at 50to0 New state is 0 and occurs at 50 Currentstate and z output New state is 1 and occurs at 250 are displayed when they New state is 2 and occurs at 850 Output changes at 950to1 receive new values. New state is 3 and occurs at 950 ASIC Design,by Yan BoASIC Design, by Yan Bo New state is x and occurs at 0 Output changes at 50 to 0 New state is 0 and occurs at 50 New state is 1 and occurs at 250 New state is 2 and occurs at 850 Output changes at 950 to 1 New state is 3 and occurs at 950 17 initial #24 reset=0; initialrepeat(19) #5 clock=~clock; initial forever @(posedge clock) #3 x=$random; initial $monitor("New state is %b and occurs at %t", MUT.current, $time); always @(z) $display("Output changes at %t to %b", $time, z); System tasks: Interaction Control (Cont.) ➢ Hierarchical Naming. ➢ Display occurs when an event occurs on one of the variables of the task’s arguments . Uses $monitor to display current register in the background. Display with the time unit . Current state and z output are displayed when they receive new values
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有