The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 12:31pm
Pages: 1
Send Topic Print
unable to display verilogA waveform (Read 4061 times)
supermoment
Senior Member
****
Offline



Posts: 167

unable to display verilogA waveform
Jun 14th, 2010, 8:30pm
 
when I simulate verilogA xor gate (copied from desinger-guide.org), Cadence CIW shows that "wave3 is not a waveform object tat can be displayed and will be turned OFF automatically"

There is no error on the code and I could simulate other verilogA code like latch.

xor verilogA code:

Code:
`include "constants.vams"
`include "disciplines.vams"

module axor (out, in1, in2);
//Copied from designers-guide.org

	  output out; voltage out;
	  input in1, in2; voltage in1, in2;

	  parameter real vh = 1;			// output voltage in high state
	  parameter real vl = 0;			// output voltage in low state
	  parameter real vth = (vh + vl)/2;	 // threshold voltage at inputs
	  parameter real td = 0 from [0:inf);     // delay to start of output transition
	  parameter real tt = 0 from [0:inf);     // transition time of output signals

	  analog begin
		    @(cross(V(in1) - vth) or cross(V(in2) - vth))
		    ;

		    V(out) <+ transition( ((V(in1) > vth) ^ (V(in2) > vth)) ? vh : vl, td, tt );
	  end
endmodule 




May I know why? I am new to verilogA.
I am using cadence 5141, mmsim61 spectreRF
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: unable to display verilogA waveform
Reply #1 - Jun 15th, 2010, 4:47am
 
I don't see "wave3" in the Verilog-A code.  Perhaps you have a typo in your netlist?
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Marq Kole
Senior Member
****
Offline

Hmmm. That's
weird...

Posts: 122
Eindhoven, The Netherlands
Re: unable to display verilogA waveform
Reply #2 - Jun 15th, 2010, 2:51pm
 
Indeed, as Geoffrey suggests the test bench for this Verilog-A model will give more information about the origins of the error message. The xor gate model is fine and would not give rise to the kind of error you indicated.

Marq
Back to top
 
 
View Profile   IP Logged
supermoment
Senior Member
****
Offline



Posts: 167

Re: unable to display verilogA waveform
Reply #3 - Jun 15th, 2010, 10:02pm
 
thx for your reply.

it works after restarting the icfb..
but dont know why..

wave3 is the out of the xor in the test bench.
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.