The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 5:58am
Pages: 1
Send Topic Print
signal updating (Read 41 times)
Mark Burford
Guest




signal updating
Oct 19th, 2004, 8:25am
 
I want to have a signal that updates from the quantity v across i through p1 to p2.

I have a process running also that I want the quantity in the sensitivity list, this is not allowed so I declared a signal ...
signal v_last : real;
v_last <= v;

v_last only seems to update once, no matter where I put the statement.

I want it to follow v.
Any ideas?

Thanks
Mark
Back to top
 
 
  IP Logged
Paul
Community Fellow
*****
Offline



Posts: 351
Switzerland
Re: signal updating
Reply #1 - Oct 27th, 2004, 9:09am
 
Hi Mark,

I had to convert an analog signal into a digital one. I used a process sensitive to ana_sig'above(vth) in which I affected dig_sig to either '0' or '1'... I don't know if there is a more elegant way to do this, in case I am interested to learn.

In your case, you may try to write a process sensitive to
ana_sig'above(vth)
where vth is ana_sig(k-1)+ana_step

and ana_step will define your vertical tracking resolution (and so your simulation time).

Let me know if this works, I didn't try it.

Paul
Back to top
 
 
View Profile WWW   IP Logged
Mark Burford
Guest




Re: signal updating
Reply #2 - Feb 14th, 2005, 10:22am
 
Hi Paul, thanks for feedback ages ago, I soved the problem, see code below:

;D

threshold <= not vs'above(v_last-delta_v) or vs'above(v_last+delta_v);

fdr_p1 : process (threshold) is
my process code
end process

v == expression dependant on stuff in process.

It allows good resolution and accuracy control.  Ihad actually figured this before reading your response just now ages back.gtrea minds and all that!
Mark
Back to top
 
 
  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.