The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 8th, 2024, 7:29am
Pages: 1
Send Topic Print
[q] verilog-a in hspice (Read 2033 times)
kidhyun
Junior Member
**
Offline



Posts: 14

[q] verilog-a in hspice
Nov 07th, 2006, 12:35pm
 
Hi,

  Pleae let me know how to pass parameters when I instantiate verilog-a module in hspice.
  For example, there is a resistor module in verilog-a.
  Then in hspice I have to do
   .hdl 'resistor.va'
   x1 a b resistor    // when resistor is the module name

   The how can I pass a parameter value (resistor value) here?
   Do I have to make seperate verilog-a module for each resistor with different resistance?

  Thank You

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



Posts: 1998
Massachusetts, USA
Re: [q] verilog-a in hspice
Reply #1 - Nov 8th, 2006, 10:27am
 
Did you try

x1 a b resistor r=10k

where "r" is the parameter declared in the module?

I believe the HSpice implementation also allows model cards, eg

x1 a b myres
.model myres resistor r=10k
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.