The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 6:40am
Pages: 1
Send Topic Print
Defining vector variable in veriloga (hspice simulator) (Read 623 times)
neoflash
Community Fellow
*****
Offline

Mixed-Signal
Designer

Posts: 397

Defining vector variable in veriloga (hspice simulator)
Oct 29th, 2009, 9:02am
 
Hello:

Some verilogA functions, such as noise_table, require a vector for content of the function.

For example, function noise_table(vector, noise_name).

The variable vector is required to be a two column vector, one is for frequency, the other is for noise power. Currently, I can only manually input the data points inside the noise_table function in below way:

noise_table({1,2,3,4},"name");

My question is that how I define this vector in a text file and load it into the verilogA model (inside hspice test bench).

Thanks,
Neo
Back to top
 
« Last Edit: Oct 29th, 2009, 7:55pm by neoflash »  
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Defining vector variable in veriloga (hspice simulator)
Reply #1 - Nov 2nd, 2009, 5:49am
 
Please see
http://www.designers-guide.org/Forum/YaBB.pl?num=1202431856/0#7

(Triple-posting your question! I'm guessing you forgot to do a search before posting this, and later found some old threads that were related (though didn't answer your question).)
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
neoflash
Community Fellow
*****
Offline

Mixed-Signal
Designer

Posts: 397

Re: Defining vector variable in veriloga (hspice simulator)
Reply #2 - Nov 2nd, 2009, 6:05am
 
Geoffrey_Coram wrote on Nov 2nd, 2009, 5:49am:
Please see
http://www.designers-guide.org/Forum/YaBB.pl?num=1202431856/0#7

(Triple-posting your question! I'm guessing you forgot to do a search before posting this, and later found some old threads that were related (though didn't answer your question).)

Somehow like you guessed. But I do hope the replies notification can call people with related experience here.

Thanks for the reply.
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.