The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 8:18am
Pages: 1
Send Topic Print
syntax? (Read 1559 times)
colorcircle
New Member
*
Offline



Posts: 2

syntax?
Apr 23rd, 2010, 12:08pm
 
Hii
does someone knows how to use clock in veriloga
i need to do the simulation by giving a frequency of 100hz
am new to this thing,so would be nice if someone tells

you can take my program as this(example)
`include "disciplines.vams"
module equation(y,x);
output y;
input x;
voltage x,y;
analog begin
 V(y)<+V(x)  
end
endmodule

i know theres no need for clock in above,,but just explain how i would write syntax,if i need to make simulation for above program with 100Hz clock,,the code for that..(at falling edge of clock)

thank you
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: syntax?
Reply #1 - Apr 26th, 2010, 4:41am
 
Do you want to generate the clock within the module, or have an external clock that comes in through another port?

Did you look through the Functional Models on the Verilog-AMS page (click "Verilog-AMS" in the header bar of this web site, between Forum and Analysis)?
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   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.