The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 8:12am
Pages: 1
Send Topic Print
analog signals in busses (Read 2001 times)
Riad KACED
Community Member
***
Offline



Posts: 93
Swindon, UK
analog signals in busses
Nov 02nd, 2009, 1:10pm
 
Dear All,

Can someone shed some light on the following passage from the 'THE DESIGNER’S GUIDE TO VERILOG-AMS', page 86:
Quote:
For reasons that are more difficult to explain, from within analog processes any access to the analog signals in busses also must be statically associated, and so can only be included in loops that are restricted by having a genvar index.


I am pretty much sure Ken has left the details for good reasons, I'm a bit curious to know those details though ...

Thank you very much in advance.
Regards,
Riad.

Back to top
 
 

Riad KACED
PDK, EDA Support Engineer.
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: analog signals in busses
Reply #1 - Nov 6th, 2009, 12:00pm
 
Don't forget the next sentence, "This is true regardless of whether the signals are being observed or driven."

I(out) <+ V(bus([i]);

I(bus[i]) <+ V(in);

In either case, there needs to be a matrix entry in the circuit (Jacobian) matrix, reflecting the fact that a change in the "sensed" value (RHS) causes a change in the driven value (LHS).  In a sparse matrix, one only allocates matrix entries that are needed, and the genvar construction allows the compiler/simulator to know which matrix entries are needed.

On the other hand, it seems the bus is of a fixed width, so a pessimistic compiler could allocate all the matrix entries (and, in many modules, one can probably access any signal in the bus, so it's not too pessimistic).

I also expect one could "observe" a bus value using $strobe without a genvar index, no matrix entry is needed.
Back to top
 
 

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



Posts: 93
Swindon, UK
Re: analog signals in busses
Reply #2 - Nov 9th, 2009, 11:43am
 
Hi Geoffrey,

Thank you very much for your explanation, that's clearer in my mind.
I haven't tried the $strobe and i think I'd stick at the genvars anyway.

Cheers,
Riad.
Back to top
 
 

Riad KACED
PDK, EDA Support Engineer.
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.