The Designer's Guide Community
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines. Mar 23rd, 2018, 1:49pm
  HomeHelpSearchLoginRegisterPM to admin  
Pages: 1
Send Topic Print
pss sweep with veriloga (Read 188 times)
New Member

Posts: 6

pss sweep with veriloga
Nov 20th, 2017, 5:00am
I am simulating an oscillator 24MHz with trimming (8-bit) ability. There is a variable called "TRIM_CODE" as decimal value in my test bench. I use a veriloga model to translate TRIM_CODE into binary code and connect them to my oscillator. Then I use pss to check frequency and some times it can't convergence.
TO solve convergence problem, I remove veriloga model, and make 8 vdc by setting 8 variable D7...D0 in global variable from TRIM_CODE by equations. It seems convergence problem solved, however, if I sweep TRIM_CODE in pss, the result doesn't change. Only default value of TRIM_CODE is calculated by pss.

I just want to know how I can sweep TRIM_CODE in pss without such strange problem ? Is there any one can help ?

Thanks !
Back to top
View Profile   IP Logged
Senior Fellow

Posts: 1926
Massachusetts, USA
Re: pss sweep with veriloga
Reply #1 - Nov 20th, 2017, 7:48am
You should probably post the code for your veriloga model; I can think of a couple ways you might be converting a design variable to binary.
Back to top

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

Posts: 742

Re: pss sweep with veriloga
Reply #2 - Dec 1st, 2017, 5:30pm

  Not sure I understand what you are saying in Q2. It seems like you
are saying that you are tuning the oscillator during a PSS simulation.
In that case, there would be multiple steady-state solutions, one for
each sweep value. Not sure that this use model will work.

Back to top
View Profile   IP Logged
Pages: 1
Send Topic Print
Trouble viewing this site? Copyright © 2002-2014 Designer's Guide Consulting. 'Designer's Guide' is a registered trademark of Designer's Guide LLC. All rights reserved.

Our colleges are not as safe as they seem. Sexual assault is pervasive and the treatment of the victim by the adminstration is often as damaging as the assault: Campus Survivors, Campus Survivors Forum.

Some of our other sites that you might find useful: Avendesora, Inform and QuantiPhy.