Jun 3, 2011 #1 V vlsi_freak Full Member level 2 Joined Sep 3, 2007 Messages 127 Helped 14 Reputation 28 Reaction score 8 Trophy points 1,298 Activity points 2,041 Hi, My verilog code is shown below, Code: module tq ( input a, output reg b); always (*) b = #5 a; endmodule I am unable to make out the waveform, what actually this statement does. Can anyone share your thoughts. Regards, freak
Hi, My verilog code is shown below, Code: module tq ( input a, output reg b); always (*) b = #5 a; endmodule I am unable to make out the waveform, what actually this statement does. Can anyone share your thoughts. Regards, freak
Jun 4, 2011 #2 blooz Advanced Member level 2 Joined Dec 29, 2010 Messages 560 Helped 121 Reputation 242 Reaction score 116 Trophy points 1,343 Location India Activity points 4,985 vlsi_freak said: Hi, My verilog code is shown below, Code: module tq ( input a, output reg b); always (*) b = #5 a; endmodule I am unable to make out the waveform, what actually this statement does. Can anyone share your thoughts. Regards, freak Click to expand... Above code has syntax errors and it won't compile If you make some slight changes It should work ... Code: module tq ( input a, output reg b); always b = #5 a; endmodule Output will be a delayed form of a ... Another way to make it work Code: module tq ( input a, output reg b); always @(*) b = #5 a; endmodule here are some good material on verilog delay modeling 1.h**p://www.see.ed.ac.uk/~gerard/Teach/Verilog/mjta/Gateway/html/delays.html 2.h**p://inst.eecs.berkeley.edu/~cs152/fa04/handouts/CummingsHDLCON1999_BehavioralDelays_Rev1_1.pdf Last edited: Jun 4, 2011
vlsi_freak said: Hi, My verilog code is shown below, Code: module tq ( input a, output reg b); always (*) b = #5 a; endmodule I am unable to make out the waveform, what actually this statement does. Can anyone share your thoughts. Regards, freak Click to expand... Above code has syntax errors and it won't compile If you make some slight changes It should work ... Code: module tq ( input a, output reg b); always b = #5 a; endmodule Output will be a delayed form of a ... Another way to make it work Code: module tq ( input a, output reg b); always @(*) b = #5 a; endmodule here are some good material on verilog delay modeling 1.h**p://www.see.ed.ac.uk/~gerard/Teach/Verilog/mjta/Gateway/html/delays.html 2.h**p://inst.eecs.berkeley.edu/~cs152/fa04/handouts/CummingsHDLCON1999_BehavioralDelays_Rev1_1.pdf
Jun 27, 2011 #3 D dhaval4987 Full Member level 3 Joined Oct 17, 2009 Messages 161 Helped 12 Reputation 24 Reaction score 12 Trophy points 1,298 Location AZ Activity points 2,325 I have a question. I am trying to understanding this statement. Its a part of specifying delays of standard cells. ******** specify (A1 => ZN) = (x1, y1); (A2 => ZN) = (x2, y2); endspecify ************ I understand thats rising and falling delays respectively. But does this mean that x1 is rising delay of A1 and y1 is falling delay of A1 or x1 is rising delay of ZN and y1 is falling delay of ZN, while input is A1? I am confsed!
I have a question. I am trying to understanding this statement. Its a part of specifying delays of standard cells. ******** specify (A1 => ZN) = (x1, y1); (A2 => ZN) = (x2, y2); endspecify ************ I understand thats rising and falling delays respectively. But does this mean that x1 is rising delay of A1 and y1 is falling delay of A1 or x1 is rising delay of ZN and y1 is falling delay of ZN, while input is A1? I am confsed!
Jun 28, 2011 #4 D dhaval4987 Full Member level 3 Joined Oct 17, 2009 Messages 161 Helped 12 Reputation 24 Reaction score 12 Trophy points 1,298 Location AZ Activity points 2,325 Found the answer of the question posted above. x1 rising delay of ZN and y1 is falling delay of ZN while input is A1. Thanks.
Found the answer of the question posted above. x1 rising delay of ZN and y1 is falling delay of ZN while input is A1. Thanks.